public class WidgetWrapper extends java.lang.Object implements IWidget
Constructor and Description |
---|
WidgetWrapper(IWidget widget) |
Modifier and Type | Method and Description |
---|---|
void |
addDisposeListener(IDisposeListener listener)
Adds a dispose listener
|
void |
dispose()
Disposes the widgets.
|
IWidget |
getParent()
Gets the parent of the widget
|
IWidget |
getRoot()
Gets the root widget of the widget
If the widget is a composed widget, the root widget
of the composed widget will be returned.
|
java.lang.Object |
getUiReference()
Gets the reference to the ui implementation of this widget.
|
protected IWidget |
getWidget() |
boolean |
isDisposed()
Checks if a widget is disposed
|
boolean |
isEnabled()
Gets the enabled state
|
void |
removeDisposeListener(IDisposeListener listener)
Removes a dispose listener
|
void |
setEnabled(boolean enabled)
Sets the widget enabled
|
public WidgetWrapper(IWidget widget)
protected IWidget getWidget()
public java.lang.Object getUiReference()
IWidgetCommon
getUiReference
in interface IWidgetCommon
public void setEnabled(boolean enabled)
IWidgetCommon
setEnabled
in interface IWidgetCommon
enabled
- The enabled state to setpublic boolean isEnabled()
IWidgetCommon
isEnabled
in interface IWidgetCommon
public IWidget getParent()
IWidget
public IWidget getRoot()
IWidget
public void addDisposeListener(IDisposeListener listener)
IDisposeObservable
addDisposeListener
in interface IDisposeObservable
listener
- The listener to addpublic void removeDisposeListener(IDisposeListener listener)
IDisposeObservable
removeDisposeListener
in interface IDisposeObservable
listener
- The listener to removepublic void dispose()
IWidget
public boolean isDisposed()
IWidget
isDisposed
in interface IWidget
Siehe auch Jowidgets Nutzerhandbuch