当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
ExtKit.GotoAction (Editor Library) - NetBeans API Javadoc (Current Development Version)
org.netbeans.editor.ext
Class ExtKit.GotoAction
java.lang.Object
javax.swing.AbstractAction
javax.swing.text.TextAction
org.netbeans.editor.BaseAction
org.netbeans.editor.ext.ExtKit.GotoAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
- Enclosing class:
- ExtKit
public static class ExtKit.GotoAction
- 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 |
ExtKit.GotoAction
public ExtKit.GotoAction()
getOffsetFromLine
protected int getOffsetFromLine(BaseDocument doc,
int lineOffset)
- This method is called by the dialog support
to translate the line offset to the document position. This
can be changed for example for the diff operations.
- Parameters:
doc
- document to operate overlineOffset
- the line offset to convert to position
- Returns:
- document offset that corresponds to the row-start
of the line with the line-number equal to (lineOffset + 1).
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).