|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.scijava.widget.AbstractInputPanel<P,W>
P - The type of UI component housing the input panel itself.W - The type of UI component housing each input widget.public abstract class AbstractInputPanel<P,W>
Abstract superclass of UI-specific InputPanel implementations.
| Field Summary | |
|---|---|
protected Map<String,InputWidget<?,W>> |
widgets
Table of widgets. |
| Constructor Summary | |
|---|---|
AbstractInputPanel()
|
|
| 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. |
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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.scijava.widget.InputPanel |
|---|
getWidgetComponentType |
| Methods inherited from interface org.scijava.widget.UIComponent |
|---|
getComponent, getComponentType |
| Field Detail |
|---|
protected Map<String,InputWidget<?,W>> widgets
| Constructor Detail |
|---|
public AbstractInputPanel()
| Method Detail |
|---|
public boolean supports(InputWidget<?,?> widget)
InputPanel
supports in interface InputPanel<P,W>public void addWidget(InputWidget<?,W> widget)
InputPanel
addWidget in interface InputPanel<P,W>public Object getValue(String name)
InputPanel
getValue in interface InputPanel<P,W>name - unique name identifying this fieldpublic int getWidgetCount()
InputPanel
getWidgetCount in interface InputPanel<P,W>public boolean hasWidgets()
InputPanel
hasWidgets in interface InputPanel<P,W>public boolean isMessageOnly()
InputPanel
isMessageOnly in interface InputPanel<P,W>public void refresh()
InputPanel
refresh in interface InputPanel<P,W>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||