Package com.im.ijc.core.api.actions
Class AbstractFieldSelectionAwareAction
- java.lang.Object
-
- org.openide.util.SharedClassObject
-
- org.openide.util.actions.SystemAction
-
- org.openide.util.actions.CallableSystemAction
-
- org.openide.util.actions.NodeAction
-
- org.openide.util.actions.CookieAction
-
- com.im.ijc.core.api.actions.AbstractToolbarCookieAction
-
- com.im.ijc.core.api.actions.AbstractIJCAction
-
- com.im.ijc.core.api.actions.AbstractIJCWidgetCookieAction
-
- com.im.ijc.core.api.actions.AbstractFieldSelectionAwareAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Externalizable
,java.io.Serializable
,java.util.EventListener
,javax.swing.Action
,org.openide.util.actions.Presenter
,org.openide.util.actions.Presenter.Menu
,org.openide.util.actions.Presenter.Popup
,org.openide.util.actions.Presenter.Toolbar
,org.openide.util.ContextAwareAction
,org.openide.util.HelpCtx.Provider
- Direct Known Subclasses:
AbstractBrowseFieldSelectionAwareAction
,ConditionalFormattingAction
,ConvertFieldTypeAction
,DeleteDFFieldAction
,RenameDFFieldAction
public abstract class AbstractFieldSelectionAwareAction extends AbstractIJCWidgetCookieAction
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.im.ijc.core.api.actions.AbstractToolbarCookieAction
AbstractToolbarCookieAction.ToolBarAction
-
-
Field Summary
-
Fields inherited from class com.im.ijc.core.api.actions.AbstractIJCAction
ALL_ICONS_PREFIX
-
-
Constructor Summary
Constructors Constructor Description AbstractFieldSelectionAwareAction()
Constructor for listening only onIJCWidget
changes.AbstractFieldSelectionAwareAction(boolean listenOnWidget, boolean listenOnVertexState)
Constructor by which subclass might convey in what changes it is interested.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addListenerTo(IJCWidget widget, java.beans.PropertyChangeListener selectionListener)
protected boolean
enableForFieldsFromDifferntVertexStates()
protected static java.util.List<com.im.df.api.ddl.DFField>
findFields(org.openide.nodes.Node[] activatedNodes)
protected boolean
isEventInteresting(java.beans.PropertyChangeEvent evt)
protected void
removeListenerFrom(IJCWidget widget, java.beans.PropertyChangeListener selectionListener)
-
Methods inherited from class com.im.ijc.core.api.actions.AbstractIJCWidgetCookieAction
cookieClasses, enableAccordingTo, enableAccordingToCurrentSelection, mode
-
Methods inherited from class com.im.ijc.core.api.actions.AbstractIJCAction
asynchronous, enable, enableAccordingToBasic, enableOnlyInBrowseMode, enableWhenNoResultSet, enableWhenNoRows, enableWhenNotBound, findVS, findWidget, getHelpCtx, getSelectedIds, getSelectedIdsSafely, getSelectedIdsSafely, getSelection, handleHookEvent, updateEnabledState
-
Methods inherited from class com.im.ijc.core.api.actions.AbstractToolbarCookieAction
findEntity, getToolbarPresenter
-
Methods inherited from class org.openide.util.actions.NodeAction
actionPerformed, addNotify, getActivatedNodes, initialize, isEnabled, performAction, performAction, removeNotify, setEnabled, surviveFocusChange
-
Methods inherited from class org.openide.util.actions.CallableSystemAction
getMenuPresenter, getPopupPresenter
-
Methods inherited from class org.openide.util.actions.SystemAction
clearSharedData, createPopupMenu, createToolbarPresenter, get, getIcon, getIcon, getName, getValue, iconResource, linkActions, putValue, setIcon
-
Methods inherited from class org.openide.util.SharedClassObject
addPropertyChangeListener, equals, finalize, findObject, findObject, firePropertyChange, getLock, getProperty, hashCode, putProperty, putProperty, readExternal, removePropertyChangeListener, reset, writeExternal, writeReplace
-
-
-
-
Constructor Detail
-
AbstractFieldSelectionAwareAction
public AbstractFieldSelectionAwareAction()
Constructor for listening only onIJCWidget
changes.
-
AbstractFieldSelectionAwareAction
public AbstractFieldSelectionAwareAction(boolean listenOnWidget, boolean listenOnVertexState)
Constructor by which subclass might convey in what changes it is interested.- Parameters:
listenOnWidget
- whether action should listen onwidget
changedlistenOnVertexState
- whether action should listen onVertexState
changes- Since:
- 15.7.27
-
-
Method Detail
-
isEventInteresting
protected boolean isEventInteresting(java.beans.PropertyChangeEvent evt)
- Overrides:
isEventInteresting
in classAbstractIJCAction
-
addListenerTo
protected void addListenerTo(IJCWidget widget, java.beans.PropertyChangeListener selectionListener)
- Overrides:
addListenerTo
in classAbstractIJCAction
-
removeListenerFrom
protected void removeListenerFrom(IJCWidget widget, java.beans.PropertyChangeListener selectionListener)
- Overrides:
removeListenerFrom
in classAbstractIJCAction
-
findFields
protected static java.util.List<com.im.df.api.ddl.DFField> findFields(org.openide.nodes.Node[] activatedNodes)
-
enableForFieldsFromDifferntVertexStates
protected boolean enableForFieldsFromDifferntVertexStates()
-
-