public interface WidgetAdapter extends IWidgetAdapter
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
Returns the id that identifies the widget on the client.
|
Widget |
getParent()
Returns the parent given to the widget constructor.
|
java.lang.Object |
getPreserved(java.lang.String propertyName)
Returns the preserved value for a specified key.
|
boolean |
isInitialized()
Indicates whether this widget has been initialized already.
|
void |
markDisposed(Widget widget)
Notifies the receiver that the given
widget has been disposed of. |
void |
preserve(java.lang.String propertyName,
java.lang.Object value)
Preserves a specified value for a specified key.
|
java.lang.String getId()
getId
in interface IWidgetAdapter
Widget getParent()
getParent
in interface IWidgetAdapter
boolean isInitialized()
isInitialized
in interface IWidgetAdapter
true
if this widget has already been initialized, false
otherwisevoid preserve(java.lang.String propertyName, java.lang.Object value)
preserveValues
.preserve
in interface IWidgetAdapter
propertyName
- the key to map the preserved value tovalue
- the value to preservejava.lang.Object getPreserved(java.lang.String propertyName)
getPreserved
in interface IWidgetAdapter
propertyName
- the key for the preserved valuenull
if there is no value preserved for this keyvoid markDisposed(Widget widget)
widget
has been disposed of.markDisposed
in interface IWidgetAdapter
widget
- the widget that has been disposed of
Copyright (c) EclipseSource and others 2002, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0