Widgets discoverable at runtime must implement this interface and be annotated with @Plugin with attribute Plugin.type() = InputWidget.class. While it possible to create a widget merely by implementing this interface, it is encouraged to instead extend AbstractInputWidget, for convenience.
| WidgetModel | get()
Gets the model object backing this widget.
|
| default Class<WidgetModel> | getType()
Gets the type associated with the object.
|
| T | getValue()
Gets the current widget value.
|
| default boolean | isLabeled()
Returns true iff the widget should be labeled with the parameter label.
|
| default boolean | isMessage()
Returns true iff the widget should be considered a read-only "message"
rather than a bidirectional input widget.
|
| void | refreshWidget()
Refreshes the widget to reflect the latest model value(s).
|
| void | set(WidgetModel model)
Initializes the widget to use the given widget model.
|
| default boolean | supports(WidgetModel model)
Gets whether this widget would be appropriate for the given model.
|
| void | updateModel()
Updates the model to reflect the latest widget state.
|
Copyright © 2015–2022 SciJava. All rights reserved.