~ubuntu-branches/ubuntu/precise/classpath/precise

« back to all changes in this revision

Viewing changes to javax/swing/plaf/basic/BasicMenuBarUI.java

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2006-05-27 16:11:15 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060527161115-h6e39eposdt5snb6
Tags: 2:0.91-3
* Install header files to /usr/include/classpath.
* debian/control: classpath: Conflict with jamvm < 1.4.3 and
  cacao < 0.96 (Closes: #368172).

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
package javax.swing.plaf.basic;
40
40
 
 
41
import gnu.classpath.NotImplementedException;
 
42
 
41
43
import java.awt.Dimension;
42
44
import java.awt.event.ContainerEvent;
43
45
import java.awt.event.ContainerListener;
68
70
  protected ContainerListener containerListener;
69
71
  
70
72
  /*Property change listeners that listener to PropertyChangeEvent from menu bar*/
71
 
  protected PropertyChangeListener propertyChangeListener;
 
73
  private PropertyChangeListener propertyChangeListener;
72
74
 
73
75
  /* menu bar for which this UI delegate is for*/
74
76
  protected JMenuBar menuBar;
176
178
   * This method installs the keyboard actions for the JMenuBar.
177
179
   */
178
180
  protected void installKeyboardActions()
 
181
    throws NotImplementedException
179
182
  {
180
183
    // FIXME: implement
181
184
  }
223
226
   * This method reverses the work done in installKeyboardActions.
224
227
   */
225
228
  protected void uninstallKeyboardActions()
 
229
    throws NotImplementedException
226
230
  {
227
231
    // FIXME: implement. 
228
232
  }
252
256
    menuBar = null;
253
257
  }
254
258
 
255
 
  protected class ChangeHandler implements ChangeListener
 
259
  private class ChangeHandler implements ChangeListener
256
260
  {
257
261
    public void stateChanged(ChangeEvent event)
258
262
    {
264
268
   * This class handles ContainerEvents fired by JMenuBar. It revalidates
265
269
   * and repaints menu bar whenever menu is added or removed from it.
266
270
   */
267
 
  protected class ContainerHandler implements ContainerListener
 
271
  private class ContainerHandler implements ContainerListener
268
272
  {
269
273
    /**
270
274
     * This method is called whenever menu is added to the menu bar
292
296
  /**
293
297
   * This class handles PropertyChangeEvents fired from the JMenuBar
294
298
   */
295
 
  protected class PropertyChangeHandler implements PropertyChangeListener
 
299
  private class PropertyChangeHandler implements PropertyChangeListener
296
300
  {
297
301
    /**
298
302
     * This method is called whenever one of the properties of the MenuBar