Package kiyut.sketsa.actions
Class AbstractEditorAction
- java.lang.Object
-
- org.openide.util.SharedClassObject
-
- org.openide.util.actions.SystemAction
-
- org.openide.util.actions.CallableSystemAction
-
- kiyut.sketsa.actions.AbstractEditorAction
-
- All Implemented Interfaces:
ActionListener,Externalizable,Serializable,EventListener,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.HelpCtx.Provider
- Direct Known Subclasses:
AbstractZoomAction,CAGExclusiveOrAction,CAGIntersectAction,CAGSubtractAction,CAGUnionAction,CanvasBackgroundAction,ConvertToPathAction,DuplicateIDFinderAction,ExportAsImageAction,FlipHorizontalAction,FlipVerticalAction,GroupAction,InsertImageAction,MoveBottomAction,MoveDownAction,MoveTopAction,MoveUpAction,NavigatorAction,ObjectToPathAction,PathBreakApartAction,PathCombineAction,PreviewAction,RefreshAction,SaveAsAction,SourceEditorAction,StrokeToPathAction,TransformDialogAction,UnGroupAction,ZoomAction
public abstract class AbstractEditorAction extends org.openide.util.actions.CallableSystemActionAbstractEditorAction which listen for the presence or absence ofSVGEditorCookieon theLookup, by default it listen the global lookup context- Author:
- Kiyut
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.openide.util.LookupcontextLookupprotected SVGEditorCookieeditorCookieSVGEditorCookieprotected org.openide.util.LookupListenereditorCookieLookupListenerLookup Listenerprotected org.openide.util.Lookup.Result<SVGEditorCookie>resultLookup.Result-
Fields inherited from interface javax.swing.Action
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 Summary
Constructors Constructor Description AbstractEditorAction()Creates a new instance of AbstractEditorAction By default it listen to global lookup contextAbstractEditorAction(org.openide.util.Lookup context)Creates a new instance of AbstractEditorAction
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanasynchronous()Overidden to return falseprotected voideditorCookieLookupListenerResultChanged(org.openide.util.LookupEvent evt)Listen for the presence or absence ofSVGEditorCookieon the lookup and set the enabled state for this action.org.openide.util.HelpCtxgetHelpCtx()Overidden to return HelpCtx.DEFAULT_HELP-
Methods inherited from class org.openide.util.actions.CallableSystemAction
actionPerformed, getMenuPresenter, getPopupPresenter, getToolbarPresenter, performAction
-
Methods inherited from class org.openide.util.actions.SystemAction
clearSharedData, createPopupMenu, createToolbarPresenter, get, getIcon, getIcon, getName, getValue, iconResource, initialize, isEnabled, linkActions, putValue, setEnabled, setIcon
-
Methods inherited from class org.openide.util.SharedClassObject
addNotify, addPropertyChangeListener, equals, finalize, findObject, findObject, firePropertyChange, getLock, getProperty, hashCode, putProperty, putProperty, readExternal, removeNotify, removePropertyChangeListener, reset, writeExternal, writeReplace
-
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, removePropertyChangeListener
-
-
-
-
Field Detail
-
context
protected org.openide.util.Lookup context
Lookup
-
result
protected org.openide.util.Lookup.Result<SVGEditorCookie> result
Lookup.Result
-
editorCookieLookupListener
protected org.openide.util.LookupListener editorCookieLookupListener
Lookup Listener
-
editorCookie
protected SVGEditorCookie editorCookie
SVGEditorCookie
-
-
Constructor Detail
-
AbstractEditorAction
public AbstractEditorAction()
Creates a new instance of AbstractEditorAction By default it listen to global lookup context
-
AbstractEditorAction
public AbstractEditorAction(org.openide.util.Lookup context)
Creates a new instance of AbstractEditorAction- Parameters:
context-Lookup
-
-
Method Detail
-
editorCookieLookupListenerResultChanged
protected void editorCookieLookupListenerResultChanged(org.openide.util.LookupEvent evt)
Listen for the presence or absence ofSVGEditorCookieon the lookup and set the enabled state for this action.- Parameters:
evt- the Event
-
getHelpCtx
public org.openide.util.HelpCtx getHelpCtx()
Overidden to return HelpCtx.DEFAULT_HELP- Specified by:
getHelpCtxin interfaceorg.openide.util.HelpCtx.Provider- Specified by:
getHelpCtxin classorg.openide.util.actions.SystemAction
-
asynchronous
protected boolean asynchronous()
Overidden to return false- Overrides:
asynchronousin classorg.openide.util.actions.CallableSystemAction
-
-