public abstract class AWTInputWidget<T> extends AbstractUIInputWidget<T,Panel>
Constructor and Description |
---|
AWTInputWidget() |
Modifier and Type | Method and Description |
---|---|
Panel |
getComponent()
Gets the user interface component housing this object.
|
Class<Panel> |
getComponentType()
Gets the type of the UI component housing the object.
|
void |
set(WidgetModel model)
Associates the given data object with this plugin.
|
protected UserInterface |
ui() |
doRefresh, refreshWidget, ui
get, supports, updateModel
getInfo, getPriority, setInfo, setPriority, toString
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getType, getValue, isLabeled, isMessage
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
public void set(WidgetModel model)
WrapperPlugin
Typed.supports(T)
must return true).set
in interface WrapperPlugin<WidgetModel>
set
in interface InputWidget<T,Panel>
set
in class AbstractInputWidget<T,Panel>
model
- The data object to associate with the plugin.public Panel getComponent()
UIComponent
public Class<Panel> 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,Panel>
UserInterface
instance associated
with this InputWidget.Copyright © 2015–2022 SciJava. All rights reserved.