public abstract class TextFieldAction extends AnAction implements CustomComponentAction, DumbAware
AnAction.TransparentUpdate
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JTextField |
myField |
ACTIONS_KEY, EMPTY_ARRAY
ACTION_KEY, COMPONENT_KEY
Modifier | Constructor and Description |
---|---|
protected |
TextFieldAction(java.lang.String text,
java.lang.String description,
javax.swing.Icon icon,
int initSize) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(AnActionEvent e)
Implement this method to provide your action handler.
|
javax.swing.JComponent |
createCustomComponent(Presentation presentation,
java.lang.String place) |
void |
perform() |
addTextOverride, applyTextOverride, beforeActionPerformedUpdate, copyFrom, copyShortcutFrom, displayTextInToolbar, getEventProject, getShortcutSet, getTemplatePresentation, getTemplateText, isDefaultIcon, isEnabledInModalContext, isInInjectedContext, isTransparentUpdate, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, registerCustomShortcutSet, setDefaultIcon, setEnabledInModalContext, setInjectedContext, setShortcutSet, startInTransaction, toString, unregisterCustomShortcutSet, update, useSmallerFontForTextInToolbar
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createCustomComponent
isDumbAware
protected TextFieldAction(java.lang.String text, java.lang.String description, javax.swing.Icon icon, int initSize)
public void actionPerformed(AnActionEvent e)
AnAction
actionPerformed
in class AnAction
e
- Carries information on the invocation placepublic void perform()
public javax.swing.JComponent createCustomComponent(Presentation presentation, java.lang.String place)
createCustomComponent
in interface CustomComponentAction
CustomComponentAction.COMPONENT_KEY
to retrieve current component from a Presentation instance in AnAction.update(AnActionEvent)
method.