public abstract class AbstractUIInputWidget<T,W> extends AbstractInputWidget<T,W>
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.
| Constructor and Description |
|---|
AbstractUIInputWidget() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doRefresh()
Performs the intended
refreshWidget() operation. |
void |
refreshWidget()
Refreshes the widget to reflect the latest model value(s).
|
protected abstract UserInterface |
ui() |
protected UserInterface |
ui(String uiName) |
get, set, supports, updateModelgetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetType, getValue, isLabeled, isMessagegetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiongetComponent, getComponentTypepublic void refreshWidget()
InputWidgetprotected abstract void doRefresh()
refreshWidget() operation.protected abstract UserInterface ui()
UserInterface instance associated
with this InputWidget.protected UserInterface ui(String uiName)
Copyright © 2015–2022 SciJava. All rights reserved.