public class SwingMessageWidget extends SwingInputWidget<String> implements MessageWidget<JPanel>
| Constructor and Description |
|---|
SwingMessageWidget() |
| 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, setToolTip, uirefreshWidget, uiget, updateModelgetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitget, getType, refreshWidget, updateModelgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiongetComponent, getComponentTypepublic String getValue()
InputWidgetgetValue in interface InputWidget<String,JPanel>public boolean isLabeled()
InputWidgetMessageWidgets.isLabeled in interface InputWidget<String,JPanel>WidgetModel.getWidgetLabel()public boolean isMessage()
InputWidgetInputPanel.isMessageOnly() method will return true iff this method
returns true for all of its widgets.isMessage in interface InputWidget<String,JPanel>public void set(WidgetModel model)
WrapperPluginTyped.supports(T) must return true).set in interface WrapperPlugin<WidgetModel>set in interface InputWidget<String,JPanel>set in class SwingInputWidget<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,JPanel>supports in class AbstractInputWidget<String,JPanel>public void doRefresh()
AbstractUIInputWidgetAbstractUIInputWidget.refreshWidget() operation.doRefresh in class AbstractUIInputWidget<String,JPanel>Copyright © 2015–2022 SciJava. All rights reserved.