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, refresh
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supports
public void addWidget(InputWidget<?,JPanel> widget)
InputPanel
addWidget
in interface InputPanel<JPanel,JPanel>
addWidget
in class AbstractInputPanel<JPanel,JPanel>
public Class<JPanel> getWidgetComponentType()
InputPanel
public JPanel getComponent()
UIComponent
public 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.