public class SwingScriptInfoWidget extends SwingInputWidget<ScriptInfo> implements ActionListener, ScriptInfoWidget<JPanel>
| Constructor and Description |
|---|
SwingScriptInfoWidget() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
protected void |
doRefresh()
Performs the intended
AbstractUIInputWidget.refreshWidget() operation. |
ScriptInfo |
getValue()
Gets the current widget value.
|
void |
set(WidgetModel model)
Associates the given data object with this plugin.
|
boolean |
supports(WidgetModel model)
Gets whether this object is compatible with the given data object.
|
getComponent, getComponentType, setToolTip, uirefreshWidget, uiget, updateModelgetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitget, getType, isLabeled, isMessage, refreshWidget, updateModelgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersiongetComponent, getComponentTypepublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void set(WidgetModel model)
WrapperPluginTyped.supports(T) must return true).set in interface WrapperPlugin<WidgetModel>set in interface InputWidget<ScriptInfo,JPanel>set in class SwingInputWidget<ScriptInfo>model - The data object to associate with the plugin.public ScriptInfo getValue()
InputWidgetgetValue in interface InputWidget<ScriptInfo,JPanel>protected void doRefresh()
AbstractUIInputWidgetAbstractUIInputWidget.refreshWidget() operation.doRefresh in class AbstractUIInputWidget<ScriptInfo,JPanel>public boolean supports(WidgetModel model)
Typed
By default, this method will return true iff the data is assignable
to the associated type given by Typed.getType(). But individual
implementations may have other requirements beyond class assignability.
supports in interface Typed<WidgetModel>supports in interface InputWidget<ScriptInfo,JPanel>supports in class AbstractInputWidget<ScriptInfo,JPanel>Copyright © 2015–2022 SciJava. All rights reserved.