Package org.scijava.ui
Class AbstractUIInputWidget<T,W>
- java.lang.Object
-
- org.scijava.AbstractContextual
-
- org.scijava.plugin.AbstractRichPlugin
-
- org.scijava.plugin.AbstractTypedPlugin<D>
-
- org.scijava.plugin.AbstractWrapperPlugin<WidgetModel>
-
- org.scijava.widget.AbstractInputWidget<T,W>
-
- org.scijava.ui.AbstractUIInputWidget<T,W>
-
- All Implemented Interfaces:
Comparable<Prioritized>,Contextual,Identifiable,Locatable,Logged,HasPluginInfo,RichPlugin,SciJavaPlugin,TypedPlugin<WidgetModel>,WrapperPlugin<WidgetModel>,Prioritized,Typed<WidgetModel>,Versioned,InputWidget<T,W>,UIComponent<W>
public abstract class AbstractUIInputWidget<T,W> extends AbstractInputWidget<T,W>
Abstract superclass ofInputWidgetimplementations that belong to a specific UI.refreshWidget()implementation determines if this widget needs to be refreshed on the EDT, and invokes it as needed if so.Subclasses should implement
doRefresh()as they would haverefreshWidget(). A common abstract superclass for each UserInterface type should be sufficient forui(), which can delegate toui(String)with the appropriate UI name.- Author:
- Mark Hiner
-
-
Constructor Summary
Constructors Constructor Description AbstractUIInputWidget()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddoRefresh()Performs the intendedrefreshWidget()operation.voidrefreshWidget()Refreshes the widget to reflect the latest model value(s).protected abstract UserInterfaceui()protected UserInterfaceui(String uiName)-
Methods inherited from class org.scijava.widget.AbstractInputWidget
get, set, supports, updateModel
-
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
getInfo, getPriority, setInfo, setPriority, toString
-
Methods inherited from class org.scijava.AbstractContextual
context, getContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
-
Methods inherited from interface org.scijava.widget.InputWidget
getType, getValue, isLabeled, isMessage
-
Methods inherited from interface org.scijava.Locatable
getLocation
-
Methods inherited from interface org.scijava.Prioritized
compareTo, getPriority, setPriority
-
Methods inherited from interface org.scijava.plugin.RichPlugin
getIdentifier, log
-
Methods inherited from interface org.scijava.widget.UIComponent
getComponent, getComponentType
-
Methods inherited from interface org.scijava.Versioned
getVersion
-
-
-
-
Method Detail
-
refreshWidget
public void refreshWidget()
Description copied from interface:InputWidgetRefreshes the widget to reflect the latest model value(s).
-
doRefresh
protected abstract void doRefresh()
Performs the intendedrefreshWidget()operation.
-
ui
protected abstract UserInterface ui()
- Returns:
- The
UserInterfaceinstance associated with this InputWidget.
-
ui
protected UserInterface ui(String uiName)
- Returns:
- the UserInterface matching the provided String
-
-