P
- The type of UI component housing the input panel itself.W
- The type of UI component housing each input widget.public interface InputPanel<P,W> extends UIComponent<P>
Modifier and Type | Method and Description |
---|---|
void |
addWidget(InputWidget<?,W> widget)
Adds a widget to the panel.
|
Object |
getValue(String name)
Returns the value of the given widget's input.
|
InputWidget<?,W> |
getWidget(String name)
Gets the widget with the provided name.
|
Class<W> |
getWidgetComponentType()
Gets the type of the UI component housing the panel's widgets.
|
int |
getWidgetCount()
Gets the number of active widgets in the input panel.
|
boolean |
hasWidgets()
Gets whether the input panel has any active widgets.
|
boolean |
isMessageOnly()
Returns true if the input panel consists of only messages.
|
void |
refresh()
Updates the widgets to reflect the most recent parameter value(s).
|
default boolean |
supports(InputWidget<?,?> widget)
Gets whether the given widget would be appropriate for the given panel.
|
getComponent, getComponentType
default boolean supports(InputWidget<?,?> widget)
void addWidget(InputWidget<?,W> widget)
Object getValue(String name)
name
- unique name identifying this fieldint getWidgetCount()
boolean hasWidgets()
boolean isMessageOnly()
void refresh()
Class<W> getWidgetComponentType()
InputWidget<?,W> getWidget(String name)
Copyright © 2015–2022 SciJava. All rights reserved.