Documentation of 'jas2.util.CommandSource' Java class
CommandSource
jas2.util

Interface CommandSource

  • All Known Implementing Classes:
    CommandButton, JASCheckboxMenuItem, JASMenuItem, JASRadioMenuItem, JASToolBarButton


    public interface CommandSource
    A CommandSource represents a source of a command, such as a MenuItem or Toolbar Button. A CommandSource may have a CommandTarget associated with it. The CommandTarget represents the command that will be fired when the CommandSource is activated. Typically a CommandTargetManager is responsible for setting the CommandTarget. The CommandSource will typically be dimmed out if either there is no CommandTarget associated with it, or if the CommandTarget is not enabled.
    • Method Detail

      • getCommand

        java.lang.String getCommand()
        Returns the command associated with the CommandSource
      • setTarget

        boolean setTarget(CommandTarget target)
        Sets a CommandTarget associated with the CommandSource
      • clearTarget

        void clearTarget()
        Clears the CommandTarget associated with the CommandSource
      • getTarget

        CommandTarget getTarget()
        Returns the current CommandTarget, or null of there isnt a current command target

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.