com.sri.emo.controller
Class ViewNodeAsTree

java.lang.Object
  extended by com.sri.emo.controller.ViewNodeAsTree
All Implemented Interfaces:
StateHandler

public class ViewNodeAsTree
extends Object
implements StateHandler

This is a state handler that renders the node into a javascript-based tree menu.

Author:
Michael Rimov

Field Summary
static String PARAM_COLLAPSE_ALL
          Parameter for collapse all command.
static String PARAM_EXPAND_ALL
          Parameter for expand all comand.
static String TREE_VIEW_ATTRIBUTE
          The attribute in the request where the tree view data structure is stored.
 
Constructor Summary
ViewNodeAsTree(Node nodeToRender)
          Constructor that takes the node to render as a parameter.
 
Method Summary
 void handleRequest(ExpressoRequest request, ExpressoResponse response)
          Called to handle the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TREE_VIEW_ATTRIBUTE

public static final String TREE_VIEW_ATTRIBUTE
The attribute in the request where the tree view data structure is stored. This is picked up by the TreeMenuTag for actual rendering.

See Also:
Constant Field Values

PARAM_EXPAND_ALL

public static final String PARAM_EXPAND_ALL
Parameter for expand all comand.

See Also:
Constant Field Values

PARAM_COLLAPSE_ALL

public static final String PARAM_COLLAPSE_ALL
Parameter for collapse all command.

See Also:
Constant Field Values
Constructor Detail

ViewNodeAsTree

public ViewNodeAsTree(Node nodeToRender)
Constructor that takes the node to render as a parameter.

Parameters:
nodeToRender - Node the node to render, must not be null.
Method Detail

handleRequest

public void handleRequest(ExpressoRequest request,
                          ExpressoResponse response)
                   throws DBException,
                          ControllerException
Called to handle the request.

Specified by:
handleRequest in interface StateHandler
Parameters:
request - ExpressoRequest The Function's ExpressoRequest object.
response - ExpressoResponse The Function's ExpressoResponse object.
Throws:
DBException - upon underlying database exception error.
ControllerException - upon underlying ControllerException error.


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.