Documentation of 'org.jhotdraw.app.action.AbstractApplicationAction' Java class
AbstractApplicationAction
org.jhotdraw.app.action

Class AbstractApplicationAction

    • Field Summary

      • Fields inherited from interface javax.swing.Action

        ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void dispose()
      Disposes of all resources held by this object so that they can be garbage collected.
      Application getApplication() 
      boolean isEnabled()
      Returns true if the action is enabled.
      void setEnabled(boolean newValue)
      Enables or disables the action.
      • Methods inherited from class javax.swing.AbstractAction

        addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.awt.event.ActionListener

        actionPerformed
    • Constructor Detail

      • AbstractApplicationAction

        public AbstractApplicationAction(Application app)
        Creates a new instance.
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Returns true if the action is enabled. The enabled state of the action depends on the state that has been set using setEnabled() and on the enabled state of the application.
        Specified by:
        isEnabled in interface javax.swing.Action
        Overrides:
        isEnabled in class javax.swing.AbstractAction
        Returns:
        true if the action is enabled, false otherwise
        See Also:
        Action.isEnabled()
      • setEnabled

        public void setEnabled(boolean newValue)
        Enables or disables the action. The enabled state of the action depends on the value that is set here and on the enabled state of the application.
        Specified by:
        setEnabled in interface javax.swing.Action
        Overrides:
        setEnabled in class javax.swing.AbstractAction
        Parameters:
        newValue - true to enable the action, false to disable it
        See Also:
        Action.setEnabled(boolean)
      • dispose

        public final void dispose()
        Description copied from interface: Disposable
        Disposes of all resources held by this object so that they can be garbage collected.
        Specified by:
        dispose in interface Disposable

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.