当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
BaseKit.InsertBreakAction (Editor Library) - NetBeans API Javadoc (Current Development Version)
org.netbeans.editor
Class BaseKit.InsertBreakAction
java.lang.Object
javax.swing.AbstractAction
javax.swing.text.TextAction
org.netbeans.editor.BaseAction
org.netbeans.editor.BaseKit.InsertBreakAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
- Enclosing class:
- BaseKit
public static class BaseKit.InsertBreakAction
- extends BaseAction
- See Also:
- Serialized Form
Fields inherited from class org.netbeans.editor.BaseAction |
ABBREV_RESET, CLEAR_STATUS_TEXT, ICON_RESOURCE_PROPERTY, LOCALE_DESC_PREFIX, LOCALE_POPUP_PREFIX, MAGIC_POSITION_RESET, NO_KEYBINDING, NO_RECORDING, POPUP_MENU_TEXT, SAVE_POSITION, SELECTION_REMOVE, UNDO_MERGE_RESET, updateMask, WORD_MATCH_RESET |
Methods inherited from class org.netbeans.editor.BaseAction |
actionPerformed, asynchonous, createDefaultValue, findValue, getDefaultShortDescription, getPopupMenuItem, getPopupMenuText, getValue, settingsChange, updateComponent, updateComponent |
BaseKit.InsertBreakAction
public BaseKit.InsertBreakAction()
actionPerformed
public void actionPerformed(ActionEvent evt,
JTextComponent target)
- Description copied from class:
BaseAction
- The target method that performs the real action functionality.
- Specified by:
actionPerformed
in class BaseAction
- Parameters:
evt
- action event describing the action that occuredtarget
- target component where the action occured. It's retrieved
by the TextAction.getTextComponent(evt).
beforeBreak
protected Object beforeBreak(JTextComponent target,
BaseDocument doc,
Caret caret)
- Hook called before any changes to the document. The value
returned is passed intact to the other hook.
afterBreak
protected void afterBreak(JTextComponent target,
BaseDocument doc,
Caret caret,
Object data)
- Hook called after the enter was inserted and cursor
repositioned. *data* is the object returned previously by
*beforeBreak* hook. By default null.
getShortDescriptionBundleClass
protected Class getShortDescriptionBundleClass()
- Description copied from class:
BaseAction
- Get the class in a package where resource bundle for localization
of the short description of this action resides.
By default this method returns null.
- Overrides:
getShortDescriptionBundleClass
in class BaseAction