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, updateModel
getInfo, getPriority, setInfo, setPriority, toString
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getType, getValue, isLabeled, isMessage
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
getComponent, getComponentType
public void refreshWidget()
InputWidget
protected 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.