Class JXEditorPane.Actions

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.util.EventListener, javax.swing.Action
    Enclosing class:
    JXEditorPane

    private class JXEditorPane.Actions
    extends UIAction
    A small class which dispatches actions. TODO: Is there a way that we can make this static? JW: these if-constructs are totally crazy ... we live in OO world!
    • 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
    • Constructor Summary

      Constructors 
      Constructor Description
      Actions​(java.lang.String name)  
    • Constructor Detail

      • Actions

        Actions​(java.lang.String name)
    • Method Detail

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent evt)
      • isEnabled

        public boolean isEnabled​(java.lang.Object sender)
        Description copied from class: UIAction
        Subclasses that need to conditionalize the enabled state should override this. Be aware that sender may be null.
        Overrides:
        isEnabled in class UIAction
        Parameters:
        sender - Widget enabled state is being asked for, may be null.