/** * Creates a new menu item based on the specified action. * * @param action the action. */ public ActionMenuItem(final Action action) { setAction(action); }
/** * Nreates an ActionButton and assigns the given action with the button. * * @param action the action. */ public ActionRadioButton(final Action action) { setAction(action); }
/** * Returns and initializes the PropertyChangehandler for this ActionButton. * The PropertyChangeHandler monitors the action and updates the button if necessary. * * @return the property change handler. */ private ActionEnablePropertyChangeHandler getPropertyChangeHandler() { if (this.propertyChangeHandler == null) { this.propertyChangeHandler = new ActionEnablePropertyChangeHandler(); } return this.propertyChangeHandler; }
/** * Nreates an ActionButton and assigns the given action with the button. * * @param action the action. */ public ActionButton(final Action action) { setAction(action); }
/** * Returns and initializes the PropertyChangehandler for this ActionButton. * The PropertyChangeHandler monitors the action and updates the button if necessary. * * @return the property change handler. */ private ActionEnablePropertyChangeHandler getPropertyChangeHandler() { if (this.propertyChangeHandler == null) { this.propertyChangeHandler = new ActionEnablePropertyChangeHandler(); } return this.propertyChangeHandler; }
/** * Returns and initializes the PropertyChangehandler for this ActionMenuItem. * The PropertyChangeHandler monitors the action and updates the menuitem if * necessary. * * @return the property change handler. */ private ActionEnablePropertyChangeHandler getPropertyChangeHandler() { if (this.propertyChangeHandler == null) { this.propertyChangeHandler = new ActionEnablePropertyChangeHandler(); } return this.propertyChangeHandler; }
/** * Returns the binding for <code>key</code>, messaging the * parent <code>ActionMap</code> if the binding is not locally defined. * * @param key the key to be queried. * @return the action for this key, or null if there is no such action. */ public Action get(final Object key) { final Action retval = (Action) this.actionMap.get(key); if (retval != null) { return retval; } if (this.parent != null) { return this.parent.get(key); } return null; }
/** * Enables and disables this button and if an action is assigned to this button the * propertychange is forwarded to the assigned action. * * @param b the new enable-state of this button */ public void setEnabled(final boolean b) { super.setEnabled(b); if (getAction() != null) { getAction().setEnabled(b); } }
/** * Creates a new menu item based on the specified action. * * @param action the action. */ public ActionMenuItem(final Action action) { setAction(action); }
/** * Nreates an ActionButton and assigns the given action with the button. * * @param action the action. */ public ActionRadioButton(final Action action) { setAction(action); }
/** * Returns and initializes the PropertyChangehandler for this ActionButton. * The PropertyChangeHandler monitors the action and updates the button if necessary. * * @return the property change handler. */ private ActionEnablePropertyChangeHandler getPropertyChangeHandler() { if (this.propertyChangeHandler == null) { this.propertyChangeHandler = new ActionEnablePropertyChangeHandler(); } return this.propertyChangeHandler; }
/** * Nreates an ActionButton and assigns the given action with the button. * * @param action the action. */ public ActionButton(final Action action) { setAction(action); }
/** * Returns and initializes the PropertyChangehandler for this ActionButton. * The PropertyChangeHandler monitors the action and updates the button if necessary. * * @return the property change handler. */ private ActionEnablePropertyChangeHandler getPropertyChangeHandler() { if (this.propertyChangeHandler == null) { this.propertyChangeHandler = new ActionEnablePropertyChangeHandler(); } return this.propertyChangeHandler; }
/** * Returns and initializes the PropertyChangehandler for this ActionMenuItem. * The PropertyChangeHandler monitors the action and updates the menuitem if * necessary. * * @return the property change handler. */ private ActionEnablePropertyChangeHandler getPropertyChangeHandler() { if (this.propertyChangeHandler == null) { this.propertyChangeHandler = new ActionEnablePropertyChangeHandler(); } return this.propertyChangeHandler; }
/** * Creates a new menu item based on the specified action. * * @param action the action. */ public ActionMenuItem(final Action action) { setAction(action); }
/** * Nreates an ActionButton and assigns the given action with the button. * * @param action the action. */ public ActionRadioButton(final Action action) { setAction(action); }
/** * Returns and initializes the PropertyChangehandler for this ActionButton. * The PropertyChangeHandler monitors the action and updates the button if necessary. * * @return the property change handler. */ private ActionEnablePropertyChangeHandler getPropertyChangeHandler() { if (this.propertyChangeHandler == null) { this.propertyChangeHandler = new ActionEnablePropertyChangeHandler(); } return this.propertyChangeHandler; }
/** * Nreates an ActionButton and assigns the given action with the button. * * @param action the action. */ public ActionButton(final Action action) { setAction(action); }
/** * Returns and initializes the PropertyChangehandler for this ActionButton. * The PropertyChangeHandler monitors the action and updates the button if necessary. * * @return the property change handler. */ private ActionEnablePropertyChangeHandler getPropertyChangeHandler() { if (this.propertyChangeHandler == null) { this.propertyChangeHandler = new ActionEnablePropertyChangeHandler(); } return this.propertyChangeHandler; }
/** * Returns and initializes the PropertyChangehandler for this ActionMenuItem. * The PropertyChangeHandler monitors the action and updates the menuitem if * necessary. * * @return the property change handler. */ private ActionEnablePropertyChangeHandler getPropertyChangeHandler() { if (this.propertyChangeHandler == null) { this.propertyChangeHandler = new ActionEnablePropertyChangeHandler(); } return this.propertyChangeHandler; }