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, HasPluginInfo, RichPlugin, SciJavaPlugin, TypedPlugin<WidgetModel>, WrapperPlugin<WidgetModel>, Prioritized, Typed<WidgetModel>, InputWidget<T,W>, UIComponent<W>
public abstract class AbstractUIInputWidget<T,W>
- extends AbstractInputWidget<T,W>
Abstract superclass of InputWidget
implementations 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
have refreshWidget()
. A common abstract superclass
for each UserInterface type should be sufficient for
ui()
, which can delegate to ui(String)
with
the appropriate UI name.
- Author:
- Mark Hiner
AbstractUIInputWidget
public AbstractUIInputWidget()
refreshWidget
public void refreshWidget()
- Description copied from interface:
InputWidget
- Refreshes the widget to reflect the latest model value(s).
doRefresh
protected abstract void doRefresh()
- Performs the intended
refreshWidget()
operation.
ui
protected abstract UserInterface ui()
- Returns:
- The
UserInterface
instance associated
with this InputWidget.
ui
protected UserInterface ui(String uiName)
- Returns:
- the UserInterface matching the provided String
Copyright © 2009–2015 SciJava. All rights reserved.