|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.painter.ControlPainter com.cc.framework.ui.painter.def.DefPainterBase com.cc.framework.ui.painter.def.DefTreePainter
Painter for the Tree Control
Field Summary | |
protected static int |
IMAGE_SIZE
The size of the images |
Fields inherited from class com.cc.framework.ui.painter.ControlPainter |
log |
Constructor Summary | |
DefTreePainter(PainterContext painterContext,
TreeControl ctrl)
Constructor for DefTreePainter |
Method Summary | |
protected java.lang.StringBuffer |
appendNodes(int indent,
TreeNodeDataModel node)
Appends the tree nodes as java scripting variables |
protected JavaScript |
createClientScript()
Creates the Javascript needed to render the tree on the client |
protected org.apache.ecs.ConcreteElement |
createTreeLines(TreeLineIterator iter)
Renders a Sub Tree of the Control. |
protected org.apache.ecs.ConcreteElement |
doCreateElement()
Generates the needed HTML for the tree |
protected java.lang.String[] |
doCreateJSImageResourceArray()
Creates the array which holds the images resources used by our JavaScript tree |
protected TreeControl |
getCtrl()
Retrieves the control for this painter |
protected TreeDesignModel |
getDesignModel()
Returns the DesignModel |
java.lang.String |
getElementClass(int type)
The method returns the HTML style class required for a list or treelist control. |
private int |
getLevel(TreeNodeDataModel node)
|
protected TreeGroupDataModel |
getRoot()
Returns the Root-Element of the Tree |
protected java.lang.String |
getRowClass(boolean oddLine,
boolean highlighted)
Returns the class id for a even/odd row which is selected/deselected |
Methods inherited from class com.cc.framework.ui.painter.def.DefPainterBase |
createHelpElement, createHelpElement, doCreateHelpButton, doCreateHelpIcon |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final int IMAGE_SIZE
Constructor Detail |
public DefTreePainter(PainterContext painterContext, TreeControl ctrl)
painterContext
- The PainterContextctrl
- The Control to renderMethod Detail |
protected TreeControl getCtrl()
protected TreeDesignModel getDesignModel()
protected TreeGroupDataModel getRoot()
protected org.apache.ecs.ConcreteElement createTreeLines(TreeLineIterator iter)
iter
- TreeLineIterator
private int getLevel(TreeNodeDataModel node)
protected java.lang.String getRowClass(boolean oddLine, boolean highlighted)
oddLine
- Indicates if its a odd rowhighlighted
- Flag which indicates if the row is highlighted
protected org.apache.ecs.ConcreteElement doCreateElement()
doCreateElement
in class ControlPainter
protected JavaScript createClientScript()
protected java.lang.String[] doCreateJSImageResourceArray()
protected java.lang.StringBuffer appendNodes(int indent, TreeNodeDataModel node)
indent
- Indent level of the node for pretty printingnode
- the node
public java.lang.String getElementClass(int type)
ControlPainter
getElementClass
in class DefPainterBase
ControlPainter.getElementClass(int)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |