|
Eclipse Rich Ajax Platform | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.rwt.lifecycle.AbstractWidgetLCA
public abstract class AbstractWidgetLCA
Abstract implementation of a widget life cycle adapter. All widget LCAs should inherit from this class.
| Constructor Summary | |
|---|---|
AbstractWidgetLCA()
|
|
| Method Summary | |
|---|---|
Rectangle |
adjustCoordinates(Widget widget,
Rectangle bounds)
Deprecated. Adjustment of the widget bounds is now handled on the client. |
void |
doRedrawFake(Control control)
As a side effect to redraw calls some native widgets trigger events like resize for example. |
abstract void |
preserveValues(Widget widget)
Preserves the current state of the widget in order to be able to keep track of changes. |
void |
render(Widget widget)
Writes JavaScript code to the response that renders the changes that has been made to the widget. |
abstract void |
renderChanges(Widget widget)
Writes JavaScript code to the response that applies the state changes of the widget to the client. |
abstract void |
renderDispose(Widget widget)
Writes JavaScript code to the response that renders the disposal of the widget. |
abstract void |
renderInitialization(Widget widget)
Writes JavaScript code to the response that creates a new widget instance and initializes it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.rwt.lifecycle.IWidgetLifeCycleAdapter |
|---|
readData |
| Constructor Detail |
|---|
public AbstractWidgetLCA()
| Method Detail |
|---|
public final void render(Widget widget)
throws java.io.IOException
IWidgetLifeCycleAdapter
render in interface IWidgetLifeCycleAdapterwidget - the widget to render changes for
java.io.IOException
@Deprecated
public Rectangle adjustCoordinates(Widget widget,
Rectangle bounds)
widget - the enclosed widget whose bounds to adjustbounds - the actual bounds of the enclosed widget
public abstract void preserveValues(Widget widget)
IWidgetLifeCycleAdapter
Implementors can use the method
IWidgetAdapter.preserve(String, Object). As a rule of thumb, every
property that is written in render must be preserved in this
method.
preserveValues in interface IWidgetLifeCycleAdapterwidget - the widget, the properties of which are preserved
public abstract void renderInitialization(Widget widget)
throws java.io.IOException
renderChanges is called for the first time.
widget - the widget to initialize
java.io.IOException
public abstract void renderChanges(Widget widget)
throws java.io.IOException
widget - the widget to render changes for
java.io.IOException
public abstract void renderDispose(Widget widget)
throws java.io.IOException
widget - the widget to dispose
java.io.IOExceptionpublic void doRedrawFake(Control control)
As a side effect to redraw calls some native widgets trigger events like
resize for example. To simulate this behaviour subclasses may override
this method. The method takes as parameter type Control,
since the redraw methods are only available at the Control
subclasses of Widgets.
Note that the redraw fake takes place between the process action and the render phase.
control - the control on which redraw was called.
|
Eclipse Rich Ajax Platform | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) EclipseSource and others 2002, 2012. All rights reserved.