public abstract class TreeBase extends javax.faces.component.UIData implements ITree, IceClientBehaviorHolder
For more information, see the Tree Wiki Documentation.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TreeBase.PropertyKeys |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPONENT_TYPE |
static java.lang.String |
RENDERER_TYPE |
| Constructor and Description |
|---|
TreeBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addClientBehavior(java.lang.String eventName,
javax.faces.component.behavior.ClientBehavior behavior) |
java.lang.String |
getAccesskey()
Return the value of the
accesskey property. |
java.lang.String |
getDefaultEventName() |
java.lang.String |
getDefaultExecute(java.lang.String event) |
java.lang.String |
getDefaultRender(java.lang.String event) |
java.lang.String |
getDragHandle()
Return the value of the
dragHandle property. |
java.util.Collection<java.lang.String> |
getEventNames() |
TreeExpansionMode |
getExpansionMode()
Return the value of the
expansionMode property. |
java.lang.String |
getFamily() |
KeySegmentConverter |
getKeyConverter()
Return the value of the
keyConverter property. |
java.lang.String |
getListenerArgument(java.lang.String event) |
TreeSelectionMode |
getSelectionMode()
Return the value of the
selectionMode property. |
NodeStateCreationCallback |
getStateCreationCallback()
Return the value of the
stateCreationCallback property. |
NodeStateMap |
getStateMap()
Return the value of the
stateMap property. |
java.lang.String |
getStateVar()
Return the value of the
stateVar property. |
java.lang.String |
getType()
Return the value of the
type property. |
java.lang.Boolean |
isExpansion()
Return the value of the
expansion property. |
protected boolean |
isPropertySet(java.lang.String finder) |
java.lang.Boolean |
isReordering()
Return the value of the
reordering property. |
java.lang.Boolean |
isSelection()
Return the value of the
selection property. |
java.lang.Boolean |
isSelectMultiple()
Return the value of the
selectMultiple property. |
void |
setAccesskey(java.lang.String accesskey)
Set the value of the
accesskey property. |
void |
setDragHandle(java.lang.String dragHandle)
Set the value of the
dragHandle property. |
void |
setExpansion(java.lang.Boolean expansion)
Set the value of the
expansion property. |
void |
setExpansionMode(TreeExpansionMode expansionMode)
Set the value of the
expansionMode property. |
void |
setKeyConverter(KeySegmentConverter keyConverter)
Set the value of the
keyConverter property. |
void |
setReordering(java.lang.Boolean reordering)
Set the value of the
reordering property. |
void |
setSelection(java.lang.Boolean selection)
Set the value of the
selection property. |
void |
setSelectionMode(TreeSelectionMode selectionMode)
Set the value of the
selectionMode property. |
void |
setSelectMultiple(java.lang.Boolean selectMultiple)
Set the value of the
selectMultiple property. |
void |
setStateCreationCallback(NodeStateCreationCallback stateCreationCallback)
Set the value of the
stateCreationCallback property. |
void |
setStateMap(NodeStateMap stateMap)
Set the value of the
stateMap property. |
void |
setStateVar(java.lang.String stateVar)
Set the value of the
stateVar property. |
void |
setType(java.lang.String type)
Set the value of the
type property. |
void |
setValueExpression(java.lang.String name,
javax.el.ValueExpression binding) |
broadcast, createUniqueId, encodeBegin, getClientId, getDataModel, getFirst, getFooter, getHeader, getRowCount, getRowData, getRowIndex, getRows, getValue, getVar, invokeOnComponent, isRowAvailable, isRowStatePreserved, markInitialState, processDecodes, processUpdates, processValidators, queueEvent, restoreState, saveState, setDataModel, setFirst, setFooter, setHeader, setRowIndex, setRows, setRowStatePreserved, setValue, setValueBinding, setVar, visitTreeaddFacesListener, clearInitialState, decode, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, subscribeToEvent, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInViewpublic static final java.lang.String COMPONENT_TYPE
public static final java.lang.String RENDERER_TYPE
public java.lang.String getFamily()
getFamily in class javax.faces.component.UIDatapublic void setAccesskey(java.lang.String accesskey)
Set the value of the accesskey property.
Contents: Access key that, when pressed, transfers focus to this component.
setAccesskey in interface ITreepublic java.lang.String getAccesskey()
Return the value of the accesskey property.
Contents: Access key that, when pressed, transfers focus to this component.
getAccesskey in interface ITreepublic void setDragHandle(java.lang.String dragHandle)
Set the value of the dragHandle property.
Contents: Specifies the jQuery selector(s) of the elements inside the node container that will be used as the drag handle(s). If this attribute isn't specified, any point of the node container can initiate the dragging action. The selectors are relative to the node's root element. When using multiple selectors, separate them by commas. The handles apply to all nodes defined in the tree.
setDragHandle in interface ITreepublic java.lang.String getDragHandle()
Return the value of the dragHandle property.
Contents: Specifies the jQuery selector(s) of the elements inside the node container that will be used as the drag handle(s). If this attribute isn't specified, any point of the node container can initiate the dragging action. The selectors are relative to the node's root element. When using multiple selectors, separate them by commas. The handles apply to all nodes defined in the tree.
getDragHandle in interface ITreepublic void setExpansion(java.lang.Boolean expansion)
Set the value of the expansion property.
Contents: Enable expansion feature of this tree component. This toggles this feature for the entire tree, per-node configuration of this feature available via the NodeState.
setExpansion in interface ITreepublic java.lang.Boolean isExpansion()
Return the value of the expansion property.
Contents: Enable expansion feature of this tree component. This toggles this feature for the entire tree, per-node configuration of this feature available via the NodeState. Default = 'false'.
isExpansion in interface ITreepublic void setExpansionMode(TreeExpansionMode expansionMode)
Set the value of the expansionMode property.
Contents: Select the request behaviour of the expansion feature. When 'client', the children of every node are pre-rendered in the DOM and exposed by JavaScript when nodes are expanded. In the default 'server' mode, only visible nodes are inthe DOM and expansion and contraction are caused by ajax page updates.
setExpansionMode in interface ITreepublic TreeExpansionMode getExpansionMode()
Return the value of the expansionMode property.
Contents: Select the request behaviour of the expansion feature. When 'client', the children of every node are pre-rendered in the DOM and exposed by JavaScript when nodes are expanded. In the default 'server' mode, only visible nodes are inthe DOM and expansion and contraction are caused by ajax page updates. Default = 'org.icefaces.ace.component.tree.TreeExpansionMode.server'.
getExpansionMode in interface ITreepublic void setKeyConverter(KeySegmentConverter keyConverter)
Set the value of the keyConverter property.
Contents: Optionally define a custom KeySegmentConverter object to produce segmented identifier keys for nodes based on something other than indexes.
setKeyConverter in interface ITreepublic KeySegmentConverter getKeyConverter()
Return the value of the keyConverter property.
Contents: Optionally define a custom KeySegmentConverter object to produce segmented identifier keys for nodes based on something other than indexes.
getKeyConverter in interface ITreepublic void setReordering(java.lang.Boolean reordering)
Set the value of the reordering property.
Contents: Enable reordering of the nodes of this tree.
setReordering in interface ITreepublic java.lang.Boolean isReordering()
Return the value of the reordering property.
Contents: Enable reordering of the nodes of this tree. Default = 'false'.
isReordering in interface ITreepublic void setSelectMultiple(java.lang.Boolean selectMultiple)
Set the value of the selectMultiple property.
Contents: Disable the selection of multiple nodes simultaneously.
setSelectMultiple in interface ITreepublic java.lang.Boolean isSelectMultiple()
Return the value of the selectMultiple property.
Contents: Disable the selection of multiple nodes simultaneously. Default = 'true'.
isSelectMultiple in interface ITreepublic void setSelection(java.lang.Boolean selection)
Set the value of the selection property.
Contents: Enable selection feature of this tree component. This toggles this feature for the entire tree, per-node configuration of this feature available via the NodeState.
setSelection in interface ITreepublic java.lang.Boolean isSelection()
Return the value of the selection property.
Contents: Enable selection feature of this tree component. This toggles this feature for the entire tree, per-node configuration of this feature available via the NodeState. Default = 'false'.
isSelection in interface ITreepublic void setSelectionMode(TreeSelectionMode selectionMode)
Set the value of the selectionMode property.
Contents: Select the request behaviour of the selection feature. When 'client', the (de)selection of a node is recorded on the client, and communicated to the server on the next request executing this component. In the default 'server' mode, when a node is (de)selected, the component communicates the change the server immediately with an ajax update.
setSelectionMode in interface ITreepublic TreeSelectionMode getSelectionMode()
Return the value of the selectionMode property.
Contents: Select the request behaviour of the selection feature. When 'client', the (de)selection of a node is recorded on the client, and communicated to the server on the next request executing this component. In the default 'server' mode, when a node is (de)selected, the component communicates the change the server immediately with an ajax update. Default = 'org.icefaces.ace.component.tree.TreeSelectionMode.server'.
getSelectionMode in interface ITreepublic void setStateCreationCallback(NodeStateCreationCallback stateCreationCallback)
Set the value of the stateCreationCallback property.
Contents: Bind an implementer of the NodeStateCreationCallback interface to take as input, a node object and a default NodeState and return a NodeState configured with the state appropriatefor the given node object.
setStateCreationCallback in interface ITreepublic NodeStateCreationCallback getStateCreationCallback()
Return the value of the stateCreationCallback property.
Contents: Bind an implementer of the NodeStateCreationCallback interface to take as input, a node object and a default NodeState and return a NodeState configured with the state appropriatefor the given node object.
getStateCreationCallback in interface ITreepublic void setStateMap(NodeStateMap stateMap)
Set the value of the stateMap property.
Contents: Define a NodeStateMap ValueExpression to access the store of Tree node object state information. The state map provides an API for looking up the state of a particular node object, as well as reverse look-ups to get node objects with a particular state.
setStateMap in interface ITreepublic NodeStateMap getStateMap()
Return the value of the stateMap property.
Contents: Define a NodeStateMap ValueExpression to access the store of Tree node object state information. The state map provides an API for looking up the state of a particular node object, as well as reverse look-ups to get node objects with a particular state.
getStateMap in interface ITreepublic void setStateVar(java.lang.String stateVar)
Set the value of the stateVar property.
Contents: The request-scope attribute exposing the state object for the currentnode when iterating.
setStateVar in interface ITreepublic java.lang.String getStateVar()
Return the value of the stateVar property.
Contents: The request-scope attribute exposing the state object for the currentnode when iterating. Default = 'nodeState'.
getStateVar in interface ITreepublic void setType(java.lang.String type)
Set the value of the type property.
Contents: Define a ValueExpression that returns a String representation of the 'rendering type' of this node. The rendering type is matched against the String 'type' attribute of ace:node tag instances to determine which node template should be used to render a given node object.
public java.lang.String getType()
Return the value of the type property.
Contents: Define a ValueExpression that returns a String representation of the 'rendering type' of this node. The rendering type is matched against the String 'type' attribute of ace:node tag instances to determine which node template should be used to render a given node object.
protected boolean isPropertySet(java.lang.String finder)
public void setValueExpression(java.lang.String name,
javax.el.ValueExpression binding)
setValueExpression in class javax.faces.component.UIDatapublic java.util.Collection<java.lang.String> getEventNames()
getEventNames in interface javax.faces.component.behavior.ClientBehaviorHoldergetEventNames in class javax.faces.component.UIComponentBasepublic java.lang.String getDefaultEventName()
getDefaultEventName in interface javax.faces.component.behavior.ClientBehaviorHoldergetDefaultEventName in class javax.faces.component.UIComponentBasepublic java.lang.String getDefaultRender(java.lang.String event)
getDefaultRender in interface IceClientBehaviorHolderpublic java.lang.String getDefaultExecute(java.lang.String event)
getDefaultExecute in interface IceClientBehaviorHolderpublic java.lang.String getListenerArgument(java.lang.String event)
getListenerArgument in interface IceClientBehaviorHolderpublic void addClientBehavior(java.lang.String eventName,
javax.faces.component.behavior.ClientBehavior behavior)
addClientBehavior in interface javax.faces.component.behavior.ClientBehaviorHolderaddClientBehavior in class javax.faces.component.UIComponentBaseCopyright 2017 ICEsoft Technologies Canada Corp., All Rights Reserved.