ERXNestedList Class Reference

Inherits er::extensions::components::ERXStatelessComponent.

Collaboration diagram for ERXNestedList:

Collaboration graph
[legend]

List of all members.

Public Member Functions

Number currentLevel ()
 ERXNestedList (WOContext context)
String listTagName ()
void popLevel ()
void pushLevel ()
void setCurrentLevel (Number aChildLevel)

Static Private Attributes

static final
org.apache.log4j.Logger 
log = org.apache.log4j.Logger.getLogger(ERXNestedList.class)


Detailed Description

Nested list component, copied over from WXNestedList, better html output. Place actual display in content. list list of items item current item, gets pushed to parent isOrdered when true, uses a OL, otherwise a UL sublist should return the sublist for the current item. level level if the current item

Constructor & Destructor Documentation

ERXNestedList ( WOContext  context  ) 


Member Function Documentation

Number currentLevel (  ) 

Method to return the current level. This method always returns null and is basically a no-op, but it is required by Key-Value coding (since we have a setCurrentLevel method).

String listTagName (  ) 

Method to return the tag name for the list. If the 'isOrdered' binding is present, the list is an ORDERED-LIST (

, otherwise the list is an UNORDERED LIST (
. This information populates the elementName of the generic element for the list.

void popLevel (  ) 

Method to push the current level (always 0) into the parent; this always happens at the bottom/end of a list (to let the parent know we are done with the list

void pushLevel (  ) 

Method to push the current level (always 1) into the parent; this always happens at the top/beginning of a list (to let the parent know we are in the list

void setCurrentLevel ( Number  aChildLevel  ) 

Method to set the current level (based on the child level). Whatever the child passes in, we add one (to represent another level deep in the order). By the time the value get to the root, it reflects the total number of levels between the top and bottom.


Member Data Documentation

final org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(ERXNestedList.class) [static, private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:06 2012 for Project Wonder by  doxygen 1.5.8