javax.swing.plaf.basic
Class BasicTextUI.TextActionWrapper
java.lang.Object
javax.swing.AbstractAction
javax.swing.text.TextAction
javax.swing.plaf.basic.BasicTextUI.TextActionWrapper
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable
- Enclosing class:
- BasicTextUI
- class BasicTextUI.TextActionWrapper
- extends TextAction
Wrapper for text actions to return isEnabled false in case editor is non editable
action
TextAction action
BasicTextUI.TextActionWrapper
public BasicTextUI.TextActionWrapper(TextAction action)
actionPerformed
public void actionPerformed(ActionEvent e)
- The operation to perform when this action is triggered.
- Parameters:
e
- the action event
isEnabled
public boolean isEnabled()
- Description copied from class:
AbstractAction
- Returns true if the action is enabled.
- Specified by:
isEnabled
in interface Action
- Overrides:
isEnabled
in class AbstractAction
- Returns:
- true if the action is enabled, false otherwise
- See Also:
Action.isEnabled()