public abstract class SwingInputWidget<T> extends AbstractUIInputWidget<T,JPanel>
| Constructor and Description |
|---|
SwingInputWidget() |
| Modifier and Type | Method and Description |
|---|---|
JPanel |
getComponent()
Gets the user interface component housing this object.
|
Class<JPanel> |
getComponentType()
Gets the type of the UI component housing the object.
|
void |
set(WidgetModel model)
Associates the given data object with this plugin.
|
protected void |
setToolTip(JComponent c)
Assigns the model's description as the given component's tool tip.
|
protected UserInterface |
ui() |
doRefresh, refreshWidget, uiget, supports, updateModelgetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetType, getValue, isLabeled, isMessagegetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersionpublic void set(WidgetModel model)
WrapperPluginTyped.supports(T) must return true).set in interface WrapperPlugin<WidgetModel>set in interface InputWidget<T,JPanel>set in class AbstractInputWidget<T,JPanel>model - The data object to associate with the plugin.public 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.
protected UserInterface ui()
ui in class AbstractUIInputWidget<T,JPanel>UserInterface instance associated
with this InputWidget.protected void setToolTip(JComponent c)
Copyright © 2015–2022 SciJava. All rights reserved.