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

Class AbstractViewAction

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String ENABLED_PROPERTY 
      static java.lang.String VIEW_PROPERTY 
      • 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
    • Constructor Summary

      Constructors 
      Constructor and Description
      AbstractViewAction(Application app, View view)
      Creates a new instance which acts on the specified view of the application.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      View getActiveView() 
      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

      • AbstractViewAction

        public AbstractViewAction(Application app,
                                  @Nullable
                                  View view)
        Creates a new instance which acts on the specified view of the application.
    • 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(), on the enabled state of the application, on the enabled state of the active view and whether there is an active view.
        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)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.