public static class ActionFactory.ToggleRectangularSelectionAction extends BaseAction implements Presenter.Toolbar, ContextAwareAction, PropertyChangeListener, DocumentListener
Presenter.Menu, Presenter.Popup, Presenter.Toolbar
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
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
ToggleRectangularSelectionAction() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent evt,
JTextComponent target)
The target method that performs the real action functionality.
|
void |
changedUpdate(DocumentEvent e) |
Action |
createContextAwareInstance(Lookup actionContext) |
protected Class |
getShortDescriptionBundleClass()
Get the class in a package where resource bundle for localization
of the short description of this action resides.
|
Component |
getToolbarPresenter() |
void |
insertUpdate(DocumentEvent e) |
void |
propertyChange(PropertyChangeEvent evt) |
void |
removeUpdate(DocumentEvent e) |
actionNameUpdate, actionPerformed, asynchonous, createDefaultValue, findValue, getDefaultShortDescription, getPopupMenuItem, getPopupMenuText, getValue, putValue, updateComponent, updateComponent
augmentList, getFocusedComponent, getTextComponent
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, isEnabled, removePropertyChangeListener, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept, addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
actionPerformed
public void actionPerformed(ActionEvent evt, JTextComponent target)
BaseAction
actionPerformed
in class BaseAction
evt
- action event describing the action that occuredtarget
- target component where the action occured. It's retrieved
by the TextAction.getTextComponent(evt).public Component getToolbarPresenter()
getToolbarPresenter
in interface Presenter.Toolbar
public Action createContextAwareInstance(Lookup actionContext)
createContextAwareInstance
in interface ContextAwareAction
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public void insertUpdate(DocumentEvent e)
insertUpdate
in interface DocumentListener
public void removeUpdate(DocumentEvent e)
removeUpdate
in interface DocumentListener
public void changedUpdate(DocumentEvent e)
changedUpdate
in interface DocumentListener
protected Class getShortDescriptionBundleClass()
BaseAction
getShortDescriptionBundleClass
in class BaseAction