echopoint.ui
Class TreeUI

java.lang.Object
  extended by nextapp.echoservlet.AbstractComponentPeer
      extended by echopoint.ui.util.EchoPointComponentPeer
          extended by echopoint.ui.TreeUI
All Implemented Interfaces:
PeerDelegate, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, ChangeListener, ImageUpdateListener, ClientActionProducer, ClientInputProducer, ComponentPeer

public class TreeUI
extends EchoPointComponentPeer
implements ClientActionProducer, java.beans.PropertyChangeListener, ClientInputProducer, ImageUpdateListener

TreeUI is the backend peer class for the component Tree.

See Also:
Serialized Form

Field Summary
protected static java.lang.String FLIP_PREFIX
           
protected static java.lang.String SELECT_PREFIX
           
static Service SERVICE_TREE_SCRIPT
           
 
Fields inherited from interface nextapp.echoservlet.ComponentPeer
IGNORE_PROPERTY_CHANGE
 
Constructor Summary
TreeUI()
           
 
Method Summary
 void clientAction(java.lang.String action)
          Called when the user causes an action from the client.
 void clientInput(java.lang.String input)
          Called when a client sends an input string through an input field.
 void imageUpdate(ImageUpdateEvent e)
          If an image changes, we redraw() the peer.
static void register()
          Registers the Component with its peer bindings
 void render(RenderingContext rc, Element parent)
          Renders the Component
 void renderCS(RenderingContext rc, Element parent)
          Renders the Tree as a client side Tree
 void renderSS(RenderingContext rc, Element parent)
          Renders the Tree as a server side Tree
 void unregistered()
          This removes the property change listener and then calls toolTipHelper.unregistered();.
 
Methods inherited from class echopoint.ui.util.EchoPointComponentPeer
addOnce, addOnce, addScriptInclude, copyChildrenExcept, copyChildrenExcept, forComponent, forComponent, forComponent, forComponent, getChildren, getImage, getImageManager, getImageUri, getPeer, getPeer, getToolTipHelper, getUri, hasBeenAdded, propertyChange, registered, removeAllImages, removeAllManagedImages, removeNewLinesAndJSQuote, removeNewLinesAndJSQuote, setImage, stateChanged, trackImage
 
Methods inherited from class nextapp.echoservlet.AbstractComponentPeer
addAncillaryService, generateId, getCalculatedBackground, getCalculatedFont, getCalculatedForeground, getChildCount, getComponent, getFocusedElementId, getId, getInstancePeer, getParentComponentPeer, redraw, registerAncillaryServices, removeAncillaryService, setComponent, setId, setInstancePeer, unregisterAncillaryServices
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 
Methods inherited from interface nextapp.echoservlet.ClientInputProducer
getId
 
Methods inherited from interface echopoint.ui.util.PeerDelegate
getId
 

Field Detail

FLIP_PREFIX

protected static final java.lang.String FLIP_PREFIX
See Also:
Constant Field Values

SELECT_PREFIX

protected static final java.lang.String SELECT_PREFIX
See Also:
Constant Field Values

SERVICE_TREE_SCRIPT

public static final Service SERVICE_TREE_SCRIPT
Constructor Detail

TreeUI

public TreeUI()
Method Detail

register

public static void register()
Registers the Component with its peer bindings


clientAction

public void clientAction(java.lang.String action)
Description copied from interface: ClientActionProducer
Called when the user causes an action from the client.

Specified by:
clientAction in interface ClientActionProducer
Parameters:
action - The action command generated by the client.
See Also:
ClientActionProducer.clientAction(java.lang.String)

clientInput

public void clientInput(java.lang.String input)
Description copied from interface: ClientInputProducer
Called when a client sends an input string through an input field.

Specified by:
clientInput in interface ClientInputProducer
Parameters:
input - The data in the hidden input field in the controller form as last known.
See Also:
ClientInputProducer.clientInput(java.lang.String)

imageUpdate

public void imageUpdate(ImageUpdateEvent e)
Description copied from class: EchoPointComponentPeer
If an image changes, we redraw() the peer.

In 99% of cases, this is actually what you want to do.

Specified by:
imageUpdate in interface ImageUpdateListener
Overrides:
imageUpdate in class EchoPointComponentPeer
Parameters:
e - The event describing the image update.
See Also:
ImageUpdateListener.imageUpdate(nextapp.echo.event.ImageUpdateEvent)

render

public void render(RenderingContext rc,
                   Element parent)
Renders the Component

Specified by:
render in interface ComponentPeer
Overrides:
render in class AbstractComponentPeer
Parameters:
rc - A rendering context provided by the Connection.
parent - The element that will contain content rendered by this ComponentPeer.

renderCS

public void renderCS(RenderingContext rc,
                     Element parent)
Renders the Tree as a client side Tree


renderSS

public void renderSS(RenderingContext rc,
                     Element parent)
Renders the Tree as a server side Tree


unregistered

public void unregistered()
Description copied from class: EchoPointComponentPeer
This removes the property change listener and then calls toolTipHelper.unregistered();. If there is an ImageManager, then all images are removed.

Specified by:
unregistered in interface ComponentPeer
Overrides:
unregistered in class EchoPointComponentPeer
See Also:
EchoPointComponentPeer.unregistered()