|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidadinternal.renderkit.core.xhtml.table.TreeUtils
public final class TreeUtils
Class that handles all tree related events
| Field Summary | |
|---|---|
static java.lang.String |
EVENT_PARAM
|
static java.lang.String |
SOURCE_PARAM
|
| Method Summary | |
|---|---|
static java.lang.String |
callJSExpandAll(org.apache.myfaces.trinidad.component.UIXHierarchy tree,
java.lang.String jsVarName,
boolean isExpand)
|
static java.lang.String |
callJSExpandNode(org.apache.myfaces.trinidad.component.UIXHierarchy tree,
java.lang.String jsVarName,
boolean isExpand)
|
static java.lang.String |
callJSFocusNode(org.apache.myfaces.trinidad.component.UIXHierarchy tree,
java.lang.String jsVarName)
|
static java.lang.String |
callJSGotoNode(org.apache.myfaces.trinidad.component.UIXHierarchy tree,
java.lang.String jsVarName,
int rangeStart)
|
static java.lang.String |
callJSSelectAll(java.lang.String jsVarName,
boolean isSelectAll)
|
static java.lang.String |
createNewJSCollectionComponentState(java.lang.String formName,
java.lang.String treeClientId)
|
static void |
decodeExpandEvents(java.util.Map<java.lang.String,java.lang.String> parameters,
javax.faces.component.UIComponent tree,
java.lang.Object focusRowKey)
|
static void |
decodeFocusEvent(java.util.Map<java.lang.String,java.lang.String> parameters,
javax.faces.component.UIComponent tree)
|
static void |
decodeGotoEvent(java.util.Map<java.lang.String,java.lang.String> parameters,
javax.faces.component.UIComponent tree)
|
static void |
expandFocusRowKey(org.apache.myfaces.trinidad.component.UIXTree tree)
Utility method to expand the focusRowKey during initial rendering. |
static java.lang.String |
getFocusNodeClientId(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.component.UIXHierarchy tree)
Returns tree focus node client id if any node is focused. |
static java.lang.Object |
getFocusRowKey(org.apache.myfaces.trinidad.component.UIXTreeTable treeTable)
|
static java.lang.String |
renderEncodedNameAttri(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
org.apache.myfaces.trinidad.component.UIXHierarchy tree,
java.lang.String treeName,
boolean isExpand)
Returns String object containing encoded
parameter name and value pair for Non-JavaScript browsers. |
static void |
setDefaultFocusRowKey(org.apache.myfaces.trinidad.component.UIXTree tree)
Utility method to default the focusRowKey to the root node, if it is not set |
static java.lang.String |
setupJSMultiSelectCollectionComponent(java.lang.String selectedKey,
java.lang.String selectedModeKey,
boolean autoSubmit)
|
static java.lang.String |
setupJSTreeCollectionComponent(boolean validate)
|
static java.lang.StringBuffer |
setupTreeCollectionComponent(java.lang.StringBuffer buff,
boolean validate)
writes the JS function needed for generating tree events. |
static void |
writeNodeLevel(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
int depth,
java.lang.String nodeLevelTextKey)
This method is used for writing the depth of node from it's root in the case tree and HGrid, thus making it more accessible. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String EVENT_PARAM
public static final java.lang.String SOURCE_PARAM
| Method Detail |
|---|
public static void writeNodeLevel(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
int depth,
java.lang.String nodeLevelTextKey)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.Object getFocusRowKey(org.apache.myfaces.trinidad.component.UIXTreeTable treeTable)
public static java.lang.String getFocusNodeClientId(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.component.UIXHierarchy tree)
context - faces contexttree - tree component
public static void expandFocusRowKey(org.apache.myfaces.trinidad.component.UIXTree tree)
tree - public static void setDefaultFocusRowKey(org.apache.myfaces.trinidad.component.UIXTree tree)
tree -
public static java.lang.StringBuffer setupTreeCollectionComponent(java.lang.StringBuffer buff,
boolean validate)
buff - the function source is appended to this buffer
public static java.lang.String setupJSTreeCollectionComponent(boolean validate)
public static java.lang.String setupJSMultiSelectCollectionComponent(java.lang.String selectedKey,
java.lang.String selectedModeKey,
boolean autoSubmit)
public static java.lang.String createNewJSCollectionComponentState(java.lang.String formName,
java.lang.String treeClientId)
public static java.lang.String callJSExpandNode(org.apache.myfaces.trinidad.component.UIXHierarchy tree,
java.lang.String jsVarName,
boolean isExpand)
public static java.lang.String callJSGotoNode(org.apache.myfaces.trinidad.component.UIXHierarchy tree,
java.lang.String jsVarName,
int rangeStart)
public static java.lang.String callJSFocusNode(org.apache.myfaces.trinidad.component.UIXHierarchy tree,
java.lang.String jsVarName)
public static java.lang.String callJSExpandAll(org.apache.myfaces.trinidad.component.UIXHierarchy tree,
java.lang.String jsVarName,
boolean isExpand)
public static java.lang.String callJSSelectAll(java.lang.String jsVarName,
boolean isSelectAll)
public static void decodeGotoEvent(java.util.Map<java.lang.String,java.lang.String> parameters,
javax.faces.component.UIComponent tree)
public static void decodeFocusEvent(java.util.Map<java.lang.String,java.lang.String> parameters,
javax.faces.component.UIComponent tree)
public static void decodeExpandEvents(java.util.Map<java.lang.String,java.lang.String> parameters,
javax.faces.component.UIComponent tree,
java.lang.Object focusRowKey)
public static java.lang.String renderEncodedNameAttri(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
org.apache.myfaces.trinidad.component.UIXHierarchy tree,
java.lang.String treeName,
boolean isExpand)
throws java.io.IOException
String object containing encoded
parameter name and value pair for Non-JavaScript browsers.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||