Package org.scijava
Class AbstractContextual
- java.lang.Object
-
- org.scijava.AbstractContextual
-
- All Implemented Interfaces:
Contextual
- Direct Known Subclasses:
AbstractDragAndDropData,AbstractInputHarvester,AbstractPostprocessorPlugin,AbstractPreprocessorPlugin,AbstractRichPlugin,ContextCommand,DefaultWidgetModel,ModuleRunner,SciJavaEvent,ScriptFinder,ServiceHelper,ShadowMenu
public abstract class AbstractContextual extends Object implements Contextual
Abstract base class forContextualobjects.Delegates to
Context.inject(Object)to do the actual work of setting the context, injecting service parameters, and registeringEventHandlermethods as event subscribers.- Author:
- Curtis Rueden
- See Also:
Context.inject(Object)
-
-
Constructor Summary
Constructors Constructor Description AbstractContextual()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Contextcontext()Gets the application context to which the object belongs.ContextgetContext()Gets the application context to which the object belongs, or null ifContextual.setContext(Context)has not yet been called on this object.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.scijava.Contextual
setContext
-
-
-
-
Method Detail
-
context
public Context context()
Description copied from interface:ContextualGets the application context to which the object belongs.- Specified by:
contextin interfaceContextual- See Also:
Contextual.getContext()
-
getContext
public Context getContext()
Description copied from interface:ContextualGets the application context to which the object belongs, or null ifContextual.setContext(Context)has not yet been called on this object.- Specified by:
getContextin interfaceContextual- See Also:
Contextual.context()
-
-