Class BooleanAction

    • Constructor Detail

      • BooleanAction

        public BooleanAction(String name,
                             String description)
        Create a new boolean action.
        Parameters:
        name - the name of the action.
        description - the description of the action.
    • Method Detail

      • getState

        public abstract boolean getState()
        Returns:
        whether this action is enabled.
      • toggleState

        public abstract void toggleState()
        implement what happens when the state is toggled.
      • actionPerformed

        public void actionPerformed(ActionEvent e)