|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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>
Flexible panel-building interface, for use with UIs that prompt for input values of various types.
Method Summary | |
---|---|
void |
addWidget(InputWidget<?,W> widget)
Adds a widget to the panel. |
Object |
getValue(String name)
Returns the value of the given widget's input. |
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). |
boolean |
supports(InputWidget<?,?> widget)
Gets whether the given widget would be appropriate for the given panel. |
Methods inherited from interface org.scijava.widget.UIComponent |
---|
getComponent, getComponentType |
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |