EchoPoint
1.0

echopoint.ui.layout
Class LayoutManagerPeer

java.lang.Object
  extended byechopoint.ui.layout.LayoutManagerPeer
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BrowserLayoutManagerUI, GridLayoutManagerUI, HorizontalLayoutManagerUI, HtmlTemplateLayoutManagerUI, JspTemplateLayoutManagerUI, XyLayoutManagerUI

public abstract class LayoutManagerPeer
extends java.lang.Object
implements java.io.Serializable

An abstract LayoutManagerPeer class that must be used as the basis for the an LayoutManagerPeer.

See Also:
Serialized Form

Constructor Summary
LayoutManagerPeer()
          Default contructor.
 
Method Summary
 LayoutManager getLayoutManager()
          Returns the underlying LayoutManager.
 void registered()
          Called to notify the LayoutManager peer that it has been registered to an LayoutManager.
abstract  void render(nextapp.echoservlet.RenderingContext rc, nextapp.echoservlet.html.Element parent, nextapp.echoservlet.ComponentPeer parentPeer, nextapp.echoservlet.ComponentPeer[] children)
          This method is called when the LayoutManager should layout the child component peer objects.
 void setLayoutManager(LayoutManager layoutManager)
          Initializes the LayoutManager peer: this method must be called before any other methods.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutManagerPeer

public LayoutManagerPeer()
Default contructor. Must have a public empty contructor for dynamic class loading

Method Detail

getLayoutManager

public LayoutManager getLayoutManager()
Returns the underlying LayoutManager. Note that the reference to the layoutManager is a weak reference. When the layoutManager is collected, this linking will be lost and this method will return null.

Returns:
The underlying LayoutManager.

registered

public void registered()
Called to notify the LayoutManager peer that it has been registered to an LayoutManager. This method should be overridden when notification of registration is required.


render

public abstract void render(nextapp.echoservlet.RenderingContext rc,
                            nextapp.echoservlet.html.Element parent,
                            nextapp.echoservlet.ComponentPeer parentPeer,
                            nextapp.echoservlet.ComponentPeer[] children)
This method is called when the LayoutManager should layout the child component peer objects. This method will be called from the ComponentPeer of the Component that contains this LayoutManager.

See Also:
for more information on rendering

setLayoutManager

public void setLayoutManager(LayoutManager layoutManager)
Initializes the LayoutManager peer: this method must be called before any other methods. Note that the reference to the layoutManager is a weak reference. When the layoutManager is collected, this linking will be lost.


EchoPoint
1.0