|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scijava.AbstractContextual
org.scijava.plugin.AbstractRichPlugin
org.scijava.plugin.AbstractTypedPlugin<D>
org.scijava.plugin.AbstractWrapperPlugin<WidgetModel>
org.scijava.widget.AbstractInputWidget<T,W>
T
- The input type of the widget.W
- The type of UI component housing the widget.public abstract class AbstractInputWidget<T,W>
Base class for input widgets.
Constructor Summary | |
---|---|
AbstractInputWidget()
|
Method Summary | |
---|---|
WidgetModel |
get()
Gets the data object currently associated with this plugin. |
Class<WidgetModel> |
getType()
Gets the type associated with the object. |
boolean |
isLabeled()
Returns true iff the widget should be labeled with the parameter label. |
boolean |
isMessage()
Returns true iff the widget should be considered a read-only "message" rather than a bidirectional input widget. |
void |
set(WidgetModel model)
Associates the given data object with this plugin. |
boolean |
supports(WidgetModel model)
Gets whether this object is compatible with the given data object. |
void |
updateModel()
Updates the model to reflect the latest widget state. |
Methods inherited from class org.scijava.plugin.AbstractRichPlugin |
---|
compareTo, getInfo, getPriority, setInfo, setPriority, toString |
Methods inherited from class org.scijava.AbstractContextual |
---|
context, getContext, setContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.scijava.widget.InputWidget |
---|
getValue, refreshWidget |
Methods inherited from interface org.scijava.Contextual |
---|
context, getContext, setContext |
Methods inherited from interface org.scijava.Prioritized |
---|
getPriority, setPriority |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface org.scijava.plugin.HasPluginInfo |
---|
getInfo, setInfo |
Methods inherited from interface org.scijava.widget.UIComponent |
---|
getComponent, getComponentType |
Constructor Detail |
---|
public AbstractInputWidget()
Method Detail |
---|
public void updateModel()
InputWidget
updateModel
in interface InputWidget<T,W>
public boolean isLabeled()
InputWidget
MessageWidget
s.
isLabeled
in interface InputWidget<T,W>
WidgetModel.getWidgetLabel()
public boolean isMessage()
InputWidget
InputPanel.isMessageOnly()
method will return true iff this method
returns true for all of its widgets.
isMessage
in interface InputWidget<T,W>
public void set(WidgetModel model)
WrapperPlugin
Typed.supports(T)
must return true).
set
in interface WrapperPlugin<WidgetModel>
set
in interface InputWidget<T,W>
set
in class AbstractWrapperPlugin<WidgetModel>
model
- The data object to associate with the plugin.public WidgetModel get()
WrapperPlugin
get
in interface WrapperPlugin<WidgetModel>
get
in interface InputWidget<T,W>
get
in class AbstractWrapperPlugin<WidgetModel>
public boolean supports(WidgetModel model)
Typed
Typically, this will be the case when data.getClass()
is assignable
to the type associated with the object (i.e., the one returned by
Typed.getType()
). But individual implementations may have other
requirements beyond class assignability.
supports
in interface Typed<WidgetModel>
supports
in interface InputWidget<T,W>
supports
in class AbstractTypedPlugin<WidgetModel>
public Class<WidgetModel> getType()
Typed
getType
in interface Typed<WidgetModel>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |