public class AWTMessageWidget extends AWTInputWidget<String> implements MessageWidget<Panel>
Constructor and Description |
---|
AWTMessageWidget() |
Modifier and Type | Method and Description |
---|---|
void |
doRefresh()
Performs the intended
AbstractUIInputWidget.refreshWidget() operation. |
String |
getValue()
Gets the current widget value.
|
boolean |
isLabeled()
Returns true iff the widget should be labeled with the parameter label.
|
boolean |
isMessage()
Returns true iff the widget should be considered a read-only "message"
rather than a bidirectional input widget.
|
void |
set(WidgetModel model)
Associates the given data object with this plugin.
|
boolean |
supports(WidgetModel model)
Gets whether this object is compatible with the given data object.
|
getComponent, getComponentType, ui
refreshWidget, ui
get, updateModel
getInfo, getPriority, setInfo, setPriority, toString
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
get, getType, refreshWidget, updateModel
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
getComponent, getComponentType
public String getValue()
InputWidget
getValue
in interface InputWidget<String,Panel>
public boolean isLabeled()
InputWidget
MessageWidget
s.isLabeled
in interface InputWidget<String,Panel>
WidgetModel.getWidgetLabel()
public boolean isMessage()
InputWidget
InputPanel.isMessageOnly()
method will return true iff this method
returns true for all of its widgets.isMessage
in interface InputWidget<String,Panel>
public void set(WidgetModel model)
WrapperPlugin
Typed.supports(T)
must return true).set
in interface WrapperPlugin<WidgetModel>
set
in interface InputWidget<String,Panel>
set
in class AWTInputWidget<String>
model
- The data object to associate with the plugin.public boolean supports(WidgetModel model)
Typed
By default, this method will return true
iff the data is assignable
to the associated type given by Typed.getType()
. But individual
implementations may have other requirements beyond class assignability.
supports
in interface Typed<WidgetModel>
supports
in interface InputWidget<String,Panel>
supports
in class AbstractInputWidget<String,Panel>
public void doRefresh()
AbstractUIInputWidget
AbstractUIInputWidget.refreshWidget()
operation.doRefresh
in class AbstractUIInputWidget<String,Panel>
Copyright © 2015–2022 SciJava. All rights reserved.