public class SwingInputPanel extends AbstractInputPanel<JPanel,JPanel>
InputPanel.widgets| Constructor and Description |
|---|
SwingInputPanel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addWidget(InputWidget<?,JPanel> widget)
Adds a widget to the panel.
|
JPanel |
getComponent()
Gets the user interface component housing this object.
|
Class<JPanel> |
getComponentType()
Gets the type of the UI component housing the object.
|
Class<JPanel> |
getWidgetComponentType()
Gets the type of the UI component housing the panel's widgets.
|
getValue, getWidget, getWidgetCount, hasWidgets, isMessageOnly, refreshclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportspublic void addWidget(InputWidget<?,JPanel> widget)
InputPaneladdWidget in interface InputPanel<JPanel,JPanel>addWidget in class AbstractInputPanel<JPanel,JPanel>public Class<JPanel> getWidgetComponentType()
InputPanelpublic JPanel getComponent()
UIComponentpublic Class<JPanel> getComponentType()
UIComponent
This method is useful in case UIComponent.getComponent() returns null in some
circumstances. In this way, it is still possible to query the type of the
UI component without forcing the conditions that instantiate it.
Copyright © 2015–2022 SciJava. All rights reserved.