Interface Feature

    • 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 Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getFeatureID()  
      java.lang.String getName()  
      boolean isOn()  
      boolean isTwoState()
      Indicates whether the feature can be either on or off, without any other states.
      void turnOn​(boolean tf)  
      • Methods inherited from interface javax.swing.Action

        accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
      • Methods inherited from interface java.awt.event.ActionListener

        actionPerformed
      • Methods inherited from interface java.beans.PropertyChangeListener

        propertyChange
    • Method Detail

      • getFeatureID

        java.lang.String getFeatureID()
      • isOn

        boolean isOn()
      • isTwoState

        boolean isTwoState()
        Indicates whether the feature can be either on or off, without any other states. This is used by the tool bar and menu-bar menus to determine whether the feature's enable/disable button or menu item should be displayed with an indicator that it's either on or off. In the case of a menu the indicator is a check box. In the case of a tool bar button the indicator is a dot above the button.
        Returns:
        true if the feature has only two states, otherwise off.
      • turnOn

        void turnOn​(boolean tf)
      • getName

        java.lang.String getName()