Package com.im.ijc.core.api.actions
Class AbstractSearchByValueAction
- 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
-
- com.im.ijc.core.api.actions.AbstractBrowseFieldSelectionAwareAction
-
- com.im.ijc.core.api.actions.AbstractSearchByValueAction
-
- 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:
SearchByValueAction
,SearchByValueAddAction
public abstract class AbstractSearchByValueAction extends AbstractBrowseFieldSelectionAwareAction
Action which fills the query mode and query builder with the selected value(s).- 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 AbstractSearchByValueAction()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static boolean
canUseContains()
Returns true ifOperators.EQUALS
is forced to be used as a default operator for text fields.protected abstract boolean
clearPreviousQuery()
boolean
enable(org.openide.nodes.Node[] activatedNodes)
boolean
enableAccordingToCurrentSelection(IJCWidget widget)
protected boolean
enableWhenNoRows()
void
performAction(org.openide.nodes.Node[] activatedNodes)
-
Methods inherited from class com.im.ijc.core.api.actions.AbstractFieldSelectionAwareAction
addListenerTo, enableForFieldsFromDifferntVertexStates, findFields, isEventInteresting, removeListenerFrom
-
Methods inherited from class com.im.ijc.core.api.actions.AbstractIJCWidgetCookieAction
cookieClasses, enableAccordingTo, mode
-
Methods inherited from class com.im.ijc.core.api.actions.AbstractIJCAction
asynchronous, enableAccordingToBasic, enableOnlyInBrowseMode, enableWhenNoResultSet, 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, 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
-
-
-
-
Method Detail
-
performAction
public void performAction(org.openide.nodes.Node[] activatedNodes)
- Specified by:
performAction
in classorg.openide.util.actions.NodeAction
-
clearPreviousQuery
protected abstract boolean clearPreviousQuery()
-
enableWhenNoRows
protected boolean enableWhenNoRows()
- Overrides:
enableWhenNoRows
in classAbstractIJCAction
-
canUseContains
public static boolean canUseContains()
Returns true ifOperators.EQUALS
is forced to be used as a default operator for text fields. OtherwiseOperators.CONTAINS
should be used. This is based on command line switch "-ijc.useEqualsAsDefaultOperatorForText".- Returns:
- true for EQUALS, false for CONTAINS.
-
enableAccordingToCurrentSelection
public boolean enableAccordingToCurrentSelection(IJCWidget widget)
- Overrides:
enableAccordingToCurrentSelection
in classAbstractBrowseFieldSelectionAwareAction
-
enable
public boolean enable(org.openide.nodes.Node[] activatedNodes)
- Overrides:
enable
in classAbstractIJCAction
-
-