/** * Invoked when an action occurs. * * @param e the event. */ public void actionPerformed(final ActionEvent e) { attempExit(); }
/** * Creates a close action. * * @return A close action. */ protected Action createCloseAction() { return new ExitAction(); }
/** * Defines an <code>Action</code> object with a default * description string and default icon. */ public ExitAction() { putValue(NAME, "Exit"); }
/** * This method gets called when a bound property is changed. * * @param evt A PropertyChangeEvent object describing the event source * and the property that has changed. */ public void propertyChange(final PropertyChangeEvent evt) { if (evt.getPropertyName().equals(AbstractTabbedUI.JMENUBAR_PROPERTY)) { setJMenuBar(getTabbedUI().getJMenuBar()); } } }
/** * This method gets called when a bound property is changed. * * @param evt A PropertyChangeEvent object describing the event source * and the property that has changed. */ public void propertyChange(final PropertyChangeEvent evt) { if (evt.getPropertyName().equals(AbstractTabbedUI.JMENUBAR_PROPERTY)) { setJMenuBar(getTabbedUI().getJMenuBar()); } } }
/** * This method gets called when a bound property is changed. * * @param evt A PropertyChangeEvent object describing the event source * and the property that has changed. */ public void propertyChange(final PropertyChangeEvent evt) { if (evt.getPropertyName().equals(AbstractTabbedUI.JMENUBAR_PROPERTY)) { setJMenuBar(getTabbedUI().getJMenuBar()); } } }
/** * Sets the menu bar. * * @param menuBar the menu bar. */ protected void setJMenuBar(final JMenuBar menuBar) { final JMenuBar oldMenuBar = this.jMenuBar; this.jMenuBar = menuBar; firePropertyChange(JMENUBAR_PROPERTY, oldMenuBar, menuBar); }
/** * Sets the confirmed flag. * * @param confirmed the confirmed flag. */ protected void setConfirmed(final boolean confirmed) { final boolean oldConfirmed = this.confirmed; this.confirmed = confirmed; firePropertyChange("confirmed", oldConfirmed, confirmed); }
/** * This method gets called when a bound property is changed. * * @param evt A PropertyChangeEvent object describing the event source * and the property that has changed. */ public void propertyChange(final PropertyChangeEvent evt) { if (evt.getPropertyName().equals(AbstractTabbedUI.JMENUBAR_PROPERTY)) { setJMenuBar(getTabbedUI().getJMenuBar()); } } }
/** * This method gets called when a bound property is changed. * * @param evt A PropertyChangeEvent object describing the event source * and the property that has changed. */ public void propertyChange(final PropertyChangeEvent evt) { if (evt.getPropertyName().equals(AbstractTabbedUI.JMENUBAR_PROPERTY)) { setJMenuBar(getTabbedUI().getJMenuBar()); } } }
/** * Invoked when an action occurs. * * @param e the event. */ public void actionPerformed(final ActionEvent e) { attempExit(); }
/** * Creates a close action. * * @return A close action. */ protected Action createCloseAction() { return new ExitAction(); }
/** * Defines an <code>Action</code> object with a default * description string and default icon. */ public ExitAction() { putValue(NAME, "Exit"); }
/** * Sets the menu bar. * * @param menuBar the menu bar. */ protected void setJMenuBar(final JMenuBar menuBar) { final JMenuBar oldMenuBar = this.jMenuBar; this.jMenuBar = menuBar; firePropertyChange(JMENUBAR_PROPERTY, oldMenuBar, menuBar); }
/** * Sets the confirmed flag. * * @param confirmed the confirmed flag. */ protected void setConfirmed(final boolean confirmed) { final boolean oldConfirmed = this.confirmed; this.confirmed = confirmed; firePropertyChange("confirmed", oldConfirmed, confirmed); }
/** * Invoked when an action occurs. * * @param e the event. */ public void actionPerformed(final ActionEvent e) { attempExit(); }
/** * Creates a close action. * * @return A close action. */ protected Action createCloseAction() { return new ExitAction(); }
/** * Defines an <code>Action</code> object with a default * description string and default icon. */ public ExitAction() { putValue(NAME, "Exit"); }
/** * Sets the menu bar. * * @param menuBar the menu bar. */ protected void setJMenuBar(final JMenuBar menuBar) { final JMenuBar oldMenuBar = this.jMenuBar; this.jMenuBar = menuBar; firePropertyChange(JMENUBAR_PROPERTY, oldMenuBar, menuBar); }
/** * Sets the confirmed flag. * * @param confirmed the confirmed flag. */ protected void setConfirmed(final boolean confirmed) { final boolean oldConfirmed = this.confirmed; this.confirmed = confirmed; firePropertyChange("confirmed", oldConfirmed, confirmed); }