Eclipse Remote Application Platform

org.eclipse.rap.rwt.lifecycle
Class AbstractWidgetLCA

java.lang.Object
  extended by org.eclipse.rap.rwt.internal.lifecycle.AbstractWidgetLCA
      extended by org.eclipse.rap.rwt.lifecycle.AbstractWidgetLCA

Deprecated. New custom widgets should use the RemoteObject API instead of LCAs.

@Deprecated
public abstract class AbstractWidgetLCA
extends org.eclipse.rap.rwt.internal.lifecycle.AbstractWidgetLCA

Abstract implementation of a widget life cycle adapter. All widget LCAs should inherit from this class.

Since:
2.0
See Also:
RemoteObject

Constructor Summary
AbstractWidgetLCA()
          Deprecated.  
 
Method Summary
 Rectangle adjustCoordinates(Widget widget, Rectangle bounds)
          Deprecated. Adjustment of the widget bounds is now handled on the client.
 void doRedrawFake(Control control)
          Deprecated.  As a side effect to redraw calls some native widgets trigger events like resize for example.
abstract  void preserveValues(Widget widget)
          Deprecated.  
 void readData(Widget widget)
          Deprecated. 
 void render(Widget widget)
          Deprecated.  
abstract  void renderChanges(Widget widget)
          Deprecated. Writes a message to the response that applies the state changes of the widget to the client.
 void renderDispose(Widget widget)
          Deprecated. Writes a message to the response that renders the disposal of the widget.
abstract  void renderInitialization(Widget widget)
          Deprecated. Writes a message 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
 

Constructor Detail

AbstractWidgetLCA

public AbstractWidgetLCA()
Deprecated. 
Method Detail

render

public final void render(Widget widget)
                  throws java.io.IOException
Deprecated. 
Throws:
java.io.IOException

adjustCoordinates

@Deprecated
public Rectangle adjustCoordinates(Widget widget,
                                              Rectangle bounds)
Deprecated. Adjustment of the widget bounds is now handled on the client.

Translates the bounds of a widget that is enclosed in the widget handled by this LCA. The default implementation does not modify the given bounds. Subclasses may override.

Parameters:
widget - the enclosed widget whose bounds to adjust
bounds - the actual bounds of the enclosed widget
Returns:
the adjusted bounds

readData

public void readData(Widget widget)
Deprecated. 

The default implementation of this method passes all operations for the given widget to the operation handler registered with the corresponding remote object.

Since:
2.2

preserveValues

public abstract void preserveValues(Widget widget)
Deprecated. 

renderInitialization

public abstract void renderInitialization(Widget widget)
                                   throws java.io.IOException
Deprecated. 
Writes a message to the response that creates a new widget instance and initializes it. This method is called only once for every widget, before renderChanges is called for the first time.

Parameters:
widget - the widget to initialize
Throws:
java.io.IOException

renderChanges

public abstract void renderChanges(Widget widget)
                            throws java.io.IOException
Deprecated. 
Writes a message to the response that applies the state changes of the widget to the client. Implementations must only render those properties that have been changed during the processing of the current request.

Parameters:
widget - the widget to render changes for
Throws:
java.io.IOException

renderDispose

public void renderDispose(Widget widget)
                   throws java.io.IOException
Deprecated. 
Writes a message to the response that renders the disposal of the widget.

Parameters:
widget - the widget to dispose
Throws:
java.io.IOException

doRedrawFake

public void doRedrawFake(Control control)
Deprecated. 

As a side effect to redraw calls some native widgets trigger events like resize for example. To simulate this behavior 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.

Parameters:
control - the control on which redraw was called.

Eclipse Remote Application Platform

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