|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tonbeller.wcf.component.ComponentSupport
com.tonbeller.wcf.component.NestableComponentSupport
com.tonbeller.wcf.tree.TreeComponent
Tree Component
Field Summary |
Fields inherited from interface com.tonbeller.wcf.bookmarks.Bookmarkable |
EXTENSIONAL, INTENSIONAL |
Constructor Summary | |
TreeComponent(java.lang.String id,
Component parent)
Constructor for TreeComponent. |
|
TreeComponent(java.lang.String id,
Component parent,
TreeModel model)
Constructor for TreeComponent. |
Method Summary | |
void |
collapse(java.lang.Object node)
collapses a node |
void |
collapseAll()
collapses all nodes |
void |
expand(java.lang.Object node)
expands a node |
void |
expandSelected()
Deprecated. use expandSelected(boolean) instead |
void |
expandSelected(boolean expandSelected)
expands the parents of the selected nodes. |
java.lang.String |
getBorder()
gets the border attribute of the generated table. |
TreeBounding |
getBounding()
|
ChangeOrderModel |
getChangeOrderModel()
Returns the changeOrderModel. |
DeleteNodeModel |
getDeleteNodeModel()
|
java.lang.String |
getError()
|
TreeModel |
getModel()
Returns the model. |
NodeRenderer |
getNodeRenderer()
Returns the nodeRenderer. |
java.lang.String |
getRenderId()
gets the renderId attribute of the generated table. |
SelectionModel |
getSelectionModel()
returns the current selection |
java.lang.String |
getTreeElementName()
Returns the treeElementName. |
java.lang.String |
getWidth()
|
org.w3c.dom.Element |
render(RequestContext context,
org.w3c.dom.Document factory)
returns an Element with ownerDocument == factory . |
void |
selectVisible()
sets the selection to the currently visible nodes |
void |
setBorder(java.lang.String border)
sets the border attribute of the generated table. |
void |
setBounding(TreeBounding bounding)
|
void |
setChangeOrderModel(ChangeOrderModel changeOrderModel)
Sets the changeOrderModel. |
void |
setComparator(java.util.Comparator comp)
comparator fuer die expanded nodes |
void |
setCutPasteMode(boolean b)
sets the UI style for moving nodes (for TreeModels that implement ChangeOrderModel) |
void |
setDeleteNodeModel(DeleteNodeModel model)
|
void |
setError(java.lang.String string)
|
void |
setModel(TreeModel newModel)
set the model to use |
void |
setNodeRenderer(NodeRenderer nodeRenderer)
Sets the nodeRenderer. |
void |
setRenderId(java.lang.String renderId)
sets the renderId attribute of the generated table. |
void |
setSelectionModel(SelectionModel selectionModel)
changes the selection. |
void |
setTreeElementName(java.lang.String treeElementName)
Sets the treeElementName. |
void |
setWidth(java.lang.String string)
|
Methods inherited from class com.tonbeller.wcf.component.NestableComponentSupport |
render |
Methods inherited from class com.tonbeller.wcf.component.ComponentSupport |
addFormListener, destroy, getBookmarkState, getDispatcher, getForm, getId, getLocale, getNextView, getParent, getRoleExpr, initialize, isAutoValidate, isListeningTo, isVisible, removeFormListener, request, revert, setAutoValidate, setBookmarkState, setId, setNextView, setParent, setRoleExpr, setVisible, validate, valueBound, valueUnbound |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.tonbeller.wcf.component.Component |
getParent, isListeningTo, setNextView |
Methods inherited from interface com.tonbeller.wcf.controller.RequestListener |
request |
Methods inherited from interface com.tonbeller.wcf.component.FormListener |
revert, validate |
Methods inherited from interface com.tonbeller.wcf.component.Visible |
isVisible, setVisible |
Methods inherited from interface com.tonbeller.wcf.component.LifeCycle |
destroy, initialize |
Constructor Detail |
public TreeComponent(java.lang.String id, Component parent)
public TreeComponent(java.lang.String id, Component parent, TreeModel model)
Method Detail |
public void setComparator(java.util.Comparator comp)
public void setModel(TreeModel newModel)
public org.w3c.dom.Element render(RequestContext context, org.w3c.dom.Document factory) throws java.lang.Exception
NestableComponent
factory
.
java.lang.Exception
public SelectionModel getSelectionModel()
public void setSelectionModel(SelectionModel selectionModel)
public void collapse(java.lang.Object node)
public void expand(java.lang.Object node)
public void collapseAll()
public void expandSelected()
public void expandSelected(boolean expandSelected)
expandSelected
- true, if the selected nodes should be expanded too (in case they have children)public void selectVisible()
public TreeModel getModel()
public NodeRenderer getNodeRenderer()
public java.lang.String getTreeElementName()
public void setNodeRenderer(NodeRenderer nodeRenderer)
If NodeRenderer is a RenderListener, it will be informed when rendering starts and stops (e.g. to clear RequestListeners that corresponds to buttons)
nodeRenderer
- The nodeRenderer to setRequestListeningNodeRenderer
public void setTreeElementName(java.lang.String treeElementName)
treeElementName
- The treeElementName to setpublic ChangeOrderModel getChangeOrderModel()
public void setChangeOrderModel(ChangeOrderModel changeOrderModel)
changeOrderModel
- The changeOrderModel to setpublic void setCutPasteMode(boolean b)
ChangeOrderModel
public java.lang.String getBorder()
public void setBorder(java.lang.String border)
border
- the border attribute or null to use the stylesheet parameterpublic void setRenderId(java.lang.String renderId)
renderId
- the renderId attribute or null to use the stylesheet parameterpublic java.lang.String getRenderId()
public java.lang.String getWidth()
public void setWidth(java.lang.String string)
public DeleteNodeModel getDeleteNodeModel()
public void setDeleteNodeModel(DeleteNodeModel model)
public java.lang.String getError()
public void setError(java.lang.String string)
public TreeBounding getBounding()
public void setBounding(TreeBounding bounding)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |