jsyntaxpane.actions
Interface SyntaxAction

All Superinterfaces:
javax.swing.Action, java.awt.event.ActionListener, java.util.EventListener
All Known Implementing Classes:
ComboCompletionAction, CompleteWordAction, DefaultSyntaxAction, DeleteLinesAction, DuplicateLinesAction, FindNextAction, FindReplaceAction, GotoLineAction, HTMLPreviewAction, IndentAction, JIndentAction, JumpToPairAction, JUnindentAction, KreatorSwitchToConsoleViewAction, KreatorSwitchToReportViewAction, MapCompletionAction, PairAction, PythonIndentAction, QuickFindAction, RedoAction, ReflectCompletionAction, ScriptAction, ScriptRunnerAction, ShowAbbsAction, SmartHomeAction, SmartHomeSelectAction, TemplateAction, ToggleCommentsAction, ToggleComponentAction, UndoAction, UnindentAction, XmlPrettifyAction, XmlTagCompleteAction

public interface SyntaxAction
extends javax.swing.Action

All JSyntaxPane Keyboard related actions implement this class. These classes are created dynamically, and then registered to the SyntaxKit. A class may have multiple TextActions that may be related. Each EditorKit that is installed will have only one instance of each class, even if more than one action is specified. The key value pairs in the COnfiguration are of the form: [EditorKit.]Action.NAME = class, keyboard key

Author:
Ayman Al-Sairafi

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
 void config(Configuration config, java.lang.String name)
          Configure the actions in this class
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Method Detail

config

void config(Configuration config,
            java.lang.String name)
Configure the actions in this class

Parameters:
config -
name - Name of the action, (prefixed by Action.) will be obtained from the property Key as the text following the Action.