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, getType, isLabeled, isMessage, set, supports, updateModel
compareTo, getInfo, getPriority, setInfo, setPriority, toString
context, getContext, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getValue
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
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 © 2009–2015 SciJava. All rights reserved.