Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 2 (11.1.2.3.0)
E17488-04


oracle.adf.view.rich.component.rich.data
Class RichTree

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by org.apache.myfaces.trinidad.component.UIXComponent
          extended by org.apache.myfaces.trinidad.component.UIXComponentBase
              extended by org.apache.myfaces.trinidad.component.UIXCollection
                  extended by org.apache.myfaces.trinidad.component.UIXHierarchy
                      extended by org.apache.myfaces.trinidad.component.UIXTree
                          extended by oracle.adf.view.rich.component.rich.data.RichTree

All Implemented Interfaces:
java.util.EventListener, javax.faces.component.behavior.ClientBehaviorHolder, javax.faces.component.NamingContainer, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder, DragSourceFactory, org.apache.myfaces.trinidad.component.CollectionComponent, org.apache.myfaces.trinidad.model.LocalRowKeyIndex, org.apache.myfaces.trinidad.model.RowKeyIndex, org.apache.myfaces.trinidad.model.TreeLocalRowKeyIndex

public class RichTree
extends org.apache.myfaces.trinidad.component.UIXTree
implements javax.faces.component.behavior.ClientBehaviorHolder, DragSourceFactory, javax.faces.component.NamingContainer

The Tree is used to display data that is structured in a hierarchical format. This component supports multiple root elements, and it has a simple user interface (UI) - each element in the Tree is appropriately indented to indicate its level in the hierarchy, and is connected to its parent. The features of the Tree component include mechanisms for expanding and collapsing portions of the hierarchy.

The "nodeStamp" facet of the Tree is used to display the data for each element in the tree. The "nodeStamp" is repeatedly rendered (stamped) once per element. The "nodeStamp" can contain images and text items. The selection is displayed only around the text items.

Because of this stamping behavior, some components may not work inside the tree. Most components will work without problems, for example any input and output components. If you need to use multiple components inside a cell, you can wrap them inside a panelGroupLayout component. Components that themselves support stamping are not supported, such as trees within a tree or region within a tree.

<section name="Hierarchical_Selector">

The tree and treeTable components support a focusRowKey attribute that can be set (through a backing bean or EL expression) to point to a row key for a node inside the tree (at any level).

The focusRowKey attribute is also set by the tree renderer when the user right clicks on a node and selects the "Show as top" context menu item (or the "Show as top" toolbar button/menu in panelCollection).

When the focusRowKey attribute is set, the Tree renders the node pointed to by the focusRowKey attribute as the root node in the Tree and displays a "Hierarchical Selector" icon next to the root node. Clicking the Hierarchical Selector icon, displays a Hierarchical Selector popup which shows the path to the focusRowKey from the root node of the Tree.

The pathStamp facet determines how the content of the Hierarchical Selector popup is rendered, just like the nodeStamp facet determines how the content of the tree is rendered. For example, including an af:image and an af:outputText in the pathStamp facet causes the tree to render an image and an outputText component for each node level in the Hierarchical Selector popup.

</section> <section name="Fetch_Size">

See Table Fetch Size.

</section> <section name="Emailable_and_Printable_Modes">

See Table Emailable and Printable Modes.

</section> <section name="Geometry_Management"> <html:ul> <html:li>This component can be stretched by a parent layout component that stretches its children, e.g. panelStretchLayout, panelSplitter.</html:li> <html:li>When stretching this component, the only valid setting for autoHeightRows is "-1" (a value of 0 will be treated as -1 when stretched).</html:li> <html:li>When NOT stretched, autoHeightRows="0" can be used to size the height to the fetch size, which is similar to dimensionsFrom="children". Please refer to 'autoHeightRows' attribute for more information.</html:li> <html:li>This component does not stretch its children.</html:li> </html:ul>

If the oracle.adf.view.rich.geometry.DEFAULT_DIMENSIONS context-param is set to "auto" in the project's web.xml, and the autoHeightRows value is set to 0, or is not set, the AFStretchWidth style class will be rendered for this component.

</section>

Events:

Type Phases Description
org.apache.myfaces.trinidad.event.RowDisclosureEvent Apply
Request
Values
Invoke
Application
The expansion event is generated for a table when the detail facet of a row is expanded or collapsed. For tree or a treeTable, the expansion event is generated when tree nodes are expanded or collapsed.
org.apache.myfaces.trinidad.event.SelectionEvent Apply
Request
Values
Invoke
Application
The selection event is delivered when the table selection changes.
org.apache.myfaces.trinidad.event.FocusEvent Apply
Request
Values
Invoke
Application
Event delivered when user clicks to focus on (or zoom into) a particular element's subtree of children. The TreeTable responds to this event by modifying the "focusPath" property appropriately. Subsequently, any registered FocusListener instances are called.
org.apache.myfaces.trinidad.event.AttributeChangeEvent Invoke
Application
Apply
Request
Values
Event delivered to describe an attribute change. Attribute change events are not delivered for any programmatic change to a property. They are only delivered when a renderer changes a property without the application's specific request. An example of an attribute change event might include the width of a column that supported client-side resizing.

Nested Class Summary

 

Nested classes/interfaces inherited from class org.apache.myfaces.trinidad.component.UIXCollection
org.apache.myfaces.trinidad.component.UIXCollection.NoColumnFacetsVisitContext

 

Nested classes/interfaces inherited from interface org.apache.myfaces.trinidad.model.LocalRowKeyIndex
org.apache.myfaces.trinidad.model.LocalRowKeyIndex.Confidence, org.apache.myfaces.trinidad.model.LocalRowKeyIndex.LocalCachingStrategy

 

Field Summary
static org.apache.myfaces.trinidad.bean.PropertyKey ACTIVE_ROW_KEY_KEY
           
static org.apache.myfaces.trinidad.bean.PropertyKey AUTO_HEIGHT_ROWS_KEY
           
static org.apache.myfaces.trinidad.bean.PropertyKey CLEAR_TOKEN_CACHE_ON_PPR_KEY
           
static org.apache.myfaces.trinidad.bean.PropertyKey CLIENT_ATTRIBUTES_KEY
           
static org.apache.myfaces.trinidad.bean.PropertyKey CLIENT_COMPONENT_KEY
           
static org.apache.myfaces.trinidad.bean.PropertyKey CLIENT_LISTENERS_KEY
           
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
static java.lang.String CONTENT_DELIVERY_IMMEDIATE
           
static org.apache.myfaces.trinidad.bean.PropertyKey CONTENT_DELIVERY_KEY
           
static java.lang.String CONTENT_DELIVERY_LAZY
           
static java.lang.String CONTENT_DELIVERY_WHEN_AVAILABLE
           
static java.lang.String CONTEXT_MENU_FACET
           
static org.apache.myfaces.trinidad.bean.PropertyKey CONTEXT_MENU_ID_KEY
          Deprecated. 
static org.apache.myfaces.trinidad.bean.PropertyKey CONTEXT_MENU_SELECT_KEY
           
static org.apache.myfaces.trinidad.bean.PropertyKey CUSTOMIZATION_ID_KEY
          Deprecated. 
static java.lang.String DISPLAY_ROW_FIRST
           
static org.apache.myfaces.trinidad.bean.PropertyKey DISPLAY_ROW_KEY
           
static org.apache.myfaces.trinidad.bean.PropertyKey DISPLAY_ROW_KEY_KEY
           
static java.lang.String DISPLAY_ROW_LAST
           
static java.lang.String DISPLAY_ROW_SELECTED
           
static java.lang.String EDITING_MODE_CLICK_TO_EDIT
           
static java.lang.String EDITING_MODE_EDIT_ALL
           
static org.apache.myfaces.trinidad.bean.PropertyKey EDITING_MODE_KEY
           
static org.apache.myfaces.trinidad.bean.PropertyKey EMPTY_TEXT_KEY
           
static org.apache.myfaces.trinidad.bean.PropertyKey EXPAND_ALL_ENABLED_KEY
           
static org.apache.myfaces.trinidad.bean.PropertyKey FETCH_SIZE_KEY
           
static org.apache.myfaces.trinidad.bean.PropertyKey INLINE_STYLE_KEY
           
static org.apache.myfaces.trinidad.bean.PropertyKey PARTIAL_TRIGGERS_KEY
           
static java.lang.String PATH_STAMP_FACET
           
static org.apache.myfaces.trinidad.bean.PropertyKey ROW_SELECTION_KEY
           
static java.lang.String ROW_SELECTION_MULTIPLE
           
static java.lang.String ROW_SELECTION_NONE
           
static java.lang.String ROW_SELECTION_SINGLE
           
static org.apache.myfaces.trinidad.bean.PropertyKey SCROLL_LEFT_KEY
           
static org.apache.myfaces.trinidad.bean.PropertyKey SCROLL_TOP_KEY
           
static org.apache.myfaces.trinidad.bean.PropertyKey SCROLL_TOP_ROW_KEY_KEY
           
static org.apache.myfaces.trinidad.bean.PropertyKey SHORT_DESC_KEY
           
static org.apache.myfaces.trinidad.bean.PropertyKey STYLE_CLASS_KEY
           
static org.apache.myfaces.trinidad.bean.PropertyKey SUMMARY_KEY
           
static org.apache.myfaces.trinidad.bean.FacesBean.Type TYPE
           
static org.apache.myfaces.trinidad.bean.PropertyKey UNSECURE_KEY
           
static org.apache.myfaces.trinidad.bean.PropertyKey VISIBLE_KEY
           

 

Fields inherited from class org.apache.myfaces.trinidad.component.UIXTree
DISCLOSED_ROW_KEYS_KEY, FOCUS_LISTENER_KEY, FOCUS_ROW_KEY_KEY, IMMEDIATE_KEY, INITIALLY_EXPANDED_KEY, NODE_STAMP_FACET, ROW_DISCLOSURE_LISTENER_KEY, SELECTED_ROW_KEYS_KEY, SELECTION_LISTENER_KEY, VALUE_KEY, VAR_STATUS_KEY

 

Fields inherited from class org.apache.myfaces.trinidad.component.UIXCollection
VAR_KEY

 

Fields inherited from class org.apache.myfaces.trinidad.component.UIXComponentBase
BINDING_KEY, ID_KEY, RENDERED_KEY, RENDERER_TYPE_KEY, TRANSIENT_KEY

 

Fields inherited from class javax.faces.component.UIComponent
BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, VIEW_LOCATION_KEY

 

Fields inherited from interface oracle.adf.view.rich.dnd.DragSourceFactory
DEFAULT_DRAGSOURCE

 

Fields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR

 

Constructor Summary
  RichTree()
          Construct an instance of the RichTree.
protected RichTree(java.lang.String rendererType)
          Construct an instance of the RichTree.

 

Method Summary
 void __decodeChildrenImpl(javax.faces.context.FacesContext context)
           
 void __updateChildrenImpl(javax.faces.context.FacesContext context)
           
 void __validateChildrenImpl(javax.faces.context.FacesContext context)
           
 void addClientBehavior(java.lang.String eventName, javax.faces.component.behavior.ClientBehavior behavior)
           
 void broadcast(javax.faces.event.FacesEvent event)
           
 DragSource createDragSource(java.lang.String name, java.util.Set<DnDAction> allowedActions, DnDAction defaultAction, java.lang.String discriminant, javax.el.MethodExpression dragDropEndListener, java.util.Map<java.lang.String,?> properties)
          Returns the server DragSource, or null if no DragSource should be attached.
 java.lang.CharSequence createDragSourceBehavior(java.lang.String name, DragSource dragSource, java.util.Set<DnDAction> allowedActions, DnDAction defaultAction, java.lang.String discriminant, javax.el.MethodExpression dragDropEndListener, java.util.Map<java.lang.String,?> properties)
          Returns the client DragSource initializer.
 java.lang.Object getActiveRowKey()
          Gets this is the row that is currently active on the client.
 int getAutoHeightRows()
          Gets
protected  org.apache.myfaces.trinidad.bean.FacesBean.Type getBeanType()
           
 java.util.Set getClientAttributes()
          Gets a set of client attribute names.
 java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> getClientBehaviors()
           
 ClientListenerSet getClientListeners()
          Gets a set of client listeners.
 java.lang.String getContentDelivery()
          Gets whether data should be fetched when the component is rendered initially.
 javax.faces.component.UIComponent getContextMenu()
          popup component containing the context menu that will be shown on right click of any tree node.
 java.lang.String getContextMenuId()
          Deprecated. This attribute is deprecated, "contextMenu" facet should be used instead.
 java.lang.String getCustomizationId()
          Deprecated. This attribute is deprecated. This attribute will be removed in the next release. Use the 'id' attribute instead.
 java.lang.String getDefaultEventName()
           
 java.lang.String getDisplayRow()
          Gets the row to display in the tree during intial display.
 java.lang.Object getDisplayRowKey()
          Gets the rowkey to display in the tree during intial display.
 java.lang.String getEditingMode()
          Gets Indicates the mode used to edit the tree when it contains editable components.
 java.lang.String getEmptyText()
          Gets the text of an empty tree.
 java.util.Collection<java.lang.String> getEventNames()
           
 java.lang.String getFamily()
           
 int getFetchSize()
          Gets the number of rows in the data fetch block
 java.lang.String getInlineStyle()
          Gets the CSS styles to use for this component.
 java.lang.String[] getPartialTriggers()
          Gets the IDs of the components that should trigger a partial update.
 javax.faces.component.UIComponent getPathStamp()
          the component used to stamp each step of the focus path when the Hierachical Selector popup is displayed.
 java.lang.String getRowSelection()
          Gets whether rows in this table are selectable.
 int getScrollLeft()
          Gets private property to indicate current horizontal scroll position .
 int getScrollTop()
          Gets private property to indicate current vertical scroll position .
 java.lang.Object getScrollTopRowKey()
          Gets private property to indicate the client token for the first visible node .
 java.lang.String getShortDesc()
          Gets the short description of the component.
 java.lang.String getStyleClass()
          Gets a CSS style class to use for this component.
 java.lang.String getSummary()
          Gets the summary of this tree's purpose and structure for user agents rendering to non-visual media.
 java.util.Set<java.lang.String> getUnsecure()
          Gets A whitespace separated list of attributes whose values ordinarily can be set only on the server, but need to be settable on the client.
 boolean invokeOnComponent(javax.faces.context.FacesContext facesContext, java.lang.String clientId, javax.faces.component.ContextCallback callback)
           
 boolean isClearTokenCacheOnPPR()
          Gets private property to turn on/off the clearing of the row key token cache when the copmponent is PPRed.
 boolean isClientComponent()
          Gets whether a client-side component will be generated.
 boolean isContextMenuSelect()
          Gets Indicates if we should actually select the node clicked when right clicking to show a context menu.
 boolean isExpandAllEnabled()
          Gets Indicates whether the "Expand/Collapse All", and "Expand/Collapse All Below" menu items are rendered.
 boolean isVisible()
          Gets the visibility of the component.
 void setActiveRowKey(java.lang.Object activeRowKey)
          Sets this is the row that is currently active on the client.
 void setAutoHeightRows(int autoHeightRows)
          Sets
 void setClearTokenCacheOnPPR(boolean clearTokenCacheOnPPR)
          Sets private property to turn on/off the clearing of the row key token cache when the copmponent is PPRed.
 void setClientAttributes(java.util.Set clientAttributes)
          Sets a set of client attribute names.
 void setClientComponent(boolean clientComponent)
          Sets whether a client-side component will be generated.
 void setClientListeners(ClientListenerSet clientListeners)
          Sets a set of client listeners.
 void setContentDelivery(java.lang.String contentDelivery)
          Sets whether data should be fetched when the component is rendered initially.
 void setContextMenu(javax.faces.component.UIComponent contextMenuFacet)
          popup component containing the context menu that will be shown on right click of any tree node.
 void setContextMenuId(java.lang.String contextMenuId)
          Deprecated. This attribute is deprecated, "contextMenu" facet should be used instead.
 void setContextMenuSelect(boolean contextMenuSelect)
          Sets Indicates if we should actually select the node clicked when right clicking to show a context menu.
 void setCustomizationId(java.lang.String customizationId)
          Deprecated. This attribute is deprecated. This attribute will be removed in the next release. Use the 'id' attribute instead.
 void setDisplayRow(java.lang.String displayRow)
          Sets the row to display in the tree during intial display.
 void setDisplayRowKey(java.lang.Object displayRowKey)
          Sets the rowkey to display in the tree during intial display.
 void setEditingMode(java.lang.String editingMode)
          Sets Indicates the mode used to edit the tree when it contains editable components.
 void setEmptyText(java.lang.String emptyText)
          Sets the text of an empty tree.
 void setExpandAllEnabled(boolean expandAllEnabled)
          Sets Indicates whether the "Expand/Collapse All", and "Expand/Collapse All Below" menu items are rendered.
 void setFetchSize(int fetchSize)
          Sets the number of rows in the data fetch block
 void setInlineStyle(java.lang.String inlineStyle)
          Sets the CSS styles to use for this component.
 void setPartialTriggers(java.lang.String[] partialTriggers)
          Sets the IDs of the components that should trigger a partial update.
 void setPathStamp(javax.faces.component.UIComponent pathStampFacet)
          the component used to stamp each step of the focus path when the Hierachical Selector popup is displayed.
 void setRowSelection(java.lang.String rowSelection)
          Sets whether rows in this table are selectable.
 void setScrollLeft(int scrollLeft)
          Sets private property to indicate current horizontal scroll position .
 void setScrollTop(int scrollTop)
          Sets private property to indicate current vertical scroll position .
 void setScrollTopRowKey(java.lang.Object scrollTopRowKey)
          Sets private property to indicate the client token for the first visible node .
 void setShortDesc(java.lang.String shortDesc)
          Sets the short description of the component.
 void setStyleClass(java.lang.String styleClass)
          Sets a CSS style class to use for this component.
 void setSummary(java.lang.String summary)
          Sets the summary of this tree's purpose and structure for user agents rendering to non-visual media.
 void setUnsecure(java.util.Set<java.lang.String> unsecure)
          Sets A whitespace separated list of attributes whose values ordinarily can be set only on the server, but need to be settable on the client.
 void setVisible(boolean visible)
          Sets the visibility of the component.
protected  boolean visitChildren(javax.faces.component.visit.VisitContext visitContext, javax.faces.component.visit.VisitCallback callback)
           

 

Methods inherited from class org.apache.myfaces.trinidad.component.UIXTree
__encodeBegin, addFocusListener, addRowDisclosureListener, addSelectionListener, createCollectionModel, createFacesBean, getDisclosedRowKeys, getFocusListener, getFocusListeners, getFocusRowKey, getNodeStamp, getRowDisclosureListener, getRowDisclosureListeners, getSelectedRowKeys, getSelectionListener, getSelectionListeners, getValue, getVarStatus, isImmediate, isInitiallyExpanded, postCreateCollectionModel, processFacetsAndChildren, queueEvent, removeFocusListener, removeRowDisclosureListener, removeSelectionListener, setDisclosedRowKeys, setFocusListener, setFocusRowKey, setImmediate, setInitiallyExpanded, setNodeStamp, setRowDisclosureListener, setRowDisclosureListener, setSelectedRowKeys, setSelectionListener, setSelectionListener, setValue, setVarStatus, visitData

 

Methods inherited from class org.apache.myfaces.trinidad.component.UIXHierarchy
areRowsLocallyAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, enterContainer, exitContainer, getAllAncestorContainerRowKeys, getContainerRowKey, getContainerRowKey, getDepth, getDepth, getFirst, getRows, getStamps, getTreeModel, isChildCollectionLocallyAvailable, isChildCollectionLocallyAvailable, isChildCollectionLocallyAvailable, isContainer, isContainerEmpty, visitHierarchy, visitLevel

 

Methods inherited from class org.apache.myfaces.trinidad.component.UIXCollection
areRowsAvailable, areRowsAvailable, areRowsAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, clearCachedRow, clearCachedRow, clearCachedRows, clearCachedRows, clearCurrencyStringCache, clearLocalCache, createVarStatusMap, decodeChildrenImpl, defaultVisitChildren, encodeBegin, encodeEnd, getCachingStrategy, getClientRowKey, getClientRowKeyManager, getCollectionModel, getCollectionModel, getContainerClientId, getCurrencyString, getEstimatedRowCount, getEstimatedRowCountConfidence, getRowCount, getRowData, getRowData, getRowData, getRowIndex, getRowKey, getSortCriteria, getVar, isRowAvailable, isRowAvailable, isRowAvailable, isRowLocallyAvailable, isRowLocallyAvailable, isSortable, postRowDataChange, preRowDataChange, processComponent, processDecodes, processSaveState, resetStampState, restoreStampState, restoreState, saveStampState, saveState, setClientRowKey, setCurrencyString, setRowIndex, setRowKey, setSortCriteria, setVar, updateChildrenImpl, validateChildrenImpl, visitChildrenWithoutIterating, visitUnstampedFacets

 

Methods inherited from class org.apache.myfaces.trinidad.component.UIXComponentBase
adaptMethodBinding, addAttributeChange, addAttributeChangeListener, addFacesListener, broadcastToMethodBinding, broadcastToMethodExpression, clearInitialState, decode, decodeChildren, encodeChildren, findComponent, getAttributeChangeListener, getAttributeChangeListeners, getAttributes, getBooleanProperty, getChildCount, getChildren, getClientId, getContainerClientId, getFacesBean, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacetNames, getFacets, getFacetsAndChildren, getId, getIntProperty, getLifecycleRenderer, getListenersForEventClass, getParent, getProperty, getPropertyKey, getRenderedFacetsAndChildren, getRenderer, getRendererType, getRendersChildren, getValueBinding, getValueExpression, initialStateMarked, invokeOnChildrenComponents, invokeOnNamingContainerComponent, isRendered, isTransient, markInitialState, processRestoreState, processUpdates, processValidators, removeAttributeChangeListener, removeFacesListener, satisfiesPartialTrigger, setAttributeChangeListener, setAttributeChangeListener, setBooleanProperty, setId, setIntProperty, setParent, setProperty, setRendered, setRendererType, setTransient, setValueBinding, setValueExpression, subscribeToEvent, toString, unsubscribeFromEvent, updateChildren, validateChildren

 

Methods inherited from class org.apache.myfaces.trinidad.component.UIXComponent
addPartialTarget, clearCachedClientIds, clearCachedClientIds, encodeFlattenedChild, encodeFlattenedChildren, getLogicalParent, getLogicalParent, getStateHelper, getStateHelper, isVisitable, partialEncodeVisit, processFlattenedChildren, processFlattenedChildren, processFlattenedChildren, processFlattenedChildren, setPartialTarget, setupChildrenEncodingContext, setupChildrenVisitingContext, setupEncodingContext, setUpEncodingContext, setupVisitingContext, tearDownChildrenEncodingContext, tearDownChildrenVisitingContext, tearDownEncodingContext, tearDownVisitingContext, visitAllChildren, visitChildren, visitTree, visitTree

 

Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getResourceBundleMap, isCompositeComponent, isInView, popComponentFromEL, processEvent, pushComponentToEL, setInView

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface org.apache.myfaces.trinidad.component.CollectionComponent
getVar

 

Methods inherited from interface org.apache.myfaces.trinidad.model.RowKeyIndex
areRowsAvailable, areRowsAvailable, areRowsAvailable, getRowCount, getRowData, getRowData, getRowData, getRowIndex, getRowKey, isRowAvailable, isRowAvailable, isRowAvailable, setRowIndex, setRowKey

 

Methods inherited from interface org.apache.myfaces.trinidad.model.LocalRowKeyIndex
areRowsLocallyAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, clearCachedRow, clearCachedRow, clearCachedRows, clearCachedRows, clearLocalCache, getCachingStrategy, getEstimatedRowCount, getEstimatedRowCountConfidence, isRowLocallyAvailable, isRowLocallyAvailable

 

Field Detail

ROW_SELECTION_NONE

public static final java.lang.String ROW_SELECTION_NONE
See Also:
Constant Field Values

ROW_SELECTION_SINGLE

public static final java.lang.String ROW_SELECTION_SINGLE
See Also:
Constant Field Values

ROW_SELECTION_MULTIPLE

public static final java.lang.String ROW_SELECTION_MULTIPLE
See Also:
Constant Field Values

CONTENT_DELIVERY_IMMEDIATE

public static final java.lang.String CONTENT_DELIVERY_IMMEDIATE
See Also:
Constant Field Values

CONTENT_DELIVERY_LAZY

public static final java.lang.String CONTENT_DELIVERY_LAZY
See Also:
Constant Field Values

CONTENT_DELIVERY_WHEN_AVAILABLE

public static final java.lang.String CONTENT_DELIVERY_WHEN_AVAILABLE
See Also:
Constant Field Values

DISPLAY_ROW_FIRST

public static final java.lang.String DISPLAY_ROW_FIRST
See Also:
Constant Field Values

DISPLAY_ROW_LAST

public static final java.lang.String DISPLAY_ROW_LAST
See Also:
Constant Field Values

DISPLAY_ROW_SELECTED

public static final java.lang.String DISPLAY_ROW_SELECTED
See Also:
Constant Field Values

EDITING_MODE_CLICK_TO_EDIT

public static final java.lang.String EDITING_MODE_CLICK_TO_EDIT
See Also:
Constant Field Values

EDITING_MODE_EDIT_ALL

public static final java.lang.String EDITING_MODE_EDIT_ALL
See Also:
Constant Field Values

TYPE

public static final org.apache.myfaces.trinidad.bean.FacesBean.Type TYPE

INLINE_STYLE_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey INLINE_STYLE_KEY

STYLE_CLASS_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey STYLE_CLASS_KEY

SHORT_DESC_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey SHORT_DESC_KEY

UNSECURE_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey UNSECURE_KEY

VISIBLE_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey VISIBLE_KEY

CUSTOMIZATION_ID_KEY

@Deprecated
public static final org.apache.myfaces.trinidad.bean.PropertyKey CUSTOMIZATION_ID_KEY
Deprecated. 

CLIENT_COMPONENT_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey CLIENT_COMPONENT_KEY

CLIENT_ATTRIBUTES_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey CLIENT_ATTRIBUTES_KEY

PARTIAL_TRIGGERS_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey PARTIAL_TRIGGERS_KEY

CLIENT_LISTENERS_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey CLIENT_LISTENERS_KEY

CONTEXT_MENU_ID_KEY

@Deprecated
public static final org.apache.myfaces.trinidad.bean.PropertyKey CONTEXT_MENU_ID_KEY
Deprecated. 

ROW_SELECTION_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey ROW_SELECTION_KEY

FETCH_SIZE_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey FETCH_SIZE_KEY

CONTENT_DELIVERY_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey CONTENT_DELIVERY_KEY

DISPLAY_ROW_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey DISPLAY_ROW_KEY

DISPLAY_ROW_KEY_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey DISPLAY_ROW_KEY_KEY

ACTIVE_ROW_KEY_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey ACTIVE_ROW_KEY_KEY

EMPTY_TEXT_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey EMPTY_TEXT_KEY

SUMMARY_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey SUMMARY_KEY

CONTEXT_MENU_SELECT_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey CONTEXT_MENU_SELECT_KEY

EDITING_MODE_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey EDITING_MODE_KEY

EXPAND_ALL_ENABLED_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey EXPAND_ALL_ENABLED_KEY

SCROLL_TOP_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey SCROLL_TOP_KEY

SCROLL_LEFT_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey SCROLL_LEFT_KEY

SCROLL_TOP_ROW_KEY_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey SCROLL_TOP_ROW_KEY_KEY

CLEAR_TOKEN_CACHE_ON_PPR_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey CLEAR_TOKEN_CACHE_ON_PPR_KEY

AUTO_HEIGHT_ROWS_KEY

public static final org.apache.myfaces.trinidad.bean.PropertyKey AUTO_HEIGHT_ROWS_KEY

PATH_STAMP_FACET

public static final java.lang.String PATH_STAMP_FACET
See Also:
Constant Field Values

CONTEXT_MENU_FACET

public static final java.lang.String CONTEXT_MENU_FACET
See Also:
Constant Field Values

COMPONENT_FAMILY

public static final java.lang.String COMPONENT_FAMILY
See Also:
Constant Field Values

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

Constructor Detail

RichTree

public RichTree()
Construct an instance of the RichTree.

RichTree

protected RichTree(java.lang.String rendererType)
Construct an instance of the RichTree.

Method Detail

broadcast

public void broadcast(javax.faces.event.FacesEvent event)
               throws javax.faces.event.AbortProcessingException
Overrides:
broadcast in class org.apache.myfaces.trinidad.component.UIXTree
Throws:
javax.faces.event.AbortProcessingException

__decodeChildrenImpl

public void __decodeChildrenImpl(javax.faces.context.FacesContext context)

__validateChildrenImpl

public void __validateChildrenImpl(javax.faces.context.FacesContext context)

__updateChildrenImpl

public void __updateChildrenImpl(javax.faces.context.FacesContext context)

createDragSource

public DragSource createDragSource(java.lang.String name,
                                   java.util.Set<DnDAction> allowedActions,
                                   DnDAction defaultAction,
                                   java.lang.String discriminant,
                                   javax.el.MethodExpression dragDropEndListener,
                                   java.util.Map<java.lang.String,?> properties)
Description copied from interface: DragSourceFactory
Returns the server DragSource, or null if no DragSource should be attached.
Specified by:
createDragSource in interface DragSourceFactory
Parameters:
name - refers to a named DragSource; "default" refers to the default DragSource
allowedActions - Set of DnDAction supported by the DragSource.
defaultAction - Default drag and drop action supported by this drag source
discriminant - The discriminant for the default DataFlavors generated by this drag source.
dragDropEndListener - A method reference to an event of the signature void method(DropEvent) that is invoked after the drag drop operation ends.
properties - allows for additional properties in the future
Returns:
DragSource

createDragSourceBehavior

public java.lang.CharSequence createDragSourceBehavior(java.lang.String name,
                                                       DragSource dragSource,
                                                       java.util.Set<DnDAction> allowedActions,
                                                       DnDAction defaultAction,
                                                       java.lang.String discriminant,
                                                       javax.el.MethodExpression dragDropEndListener,
                                                       java.util.Map<java.lang.String,?> properties)
Description copied from interface: DragSourceFactory
Returns the client DragSource initializer.
Specified by:
createDragSourceBehavior in interface DragSourceFactory
Parameters:
name - refers to a named DragSource; "default" refers to the default DragSource
dragSource - DragSource to create clientDragSource initializer for.
allowedActions - Set of DnDAction supported by the DragSource.
defaultAction - Default drag and drop action supported by this drag source
discriminant - The discriminant for the default DataFlavors generated by this drag source.
dragDropEndListener - A method reference to an event of the signature void method(DropEvent) that is invoked after the drag drop operation ends.
properties - allows for additional properties in the future
Returns:
CharSequence

visitChildren

protected boolean visitChildren(javax.faces.component.visit.VisitContext visitContext,
                                javax.faces.component.visit.VisitCallback callback)
Overrides:
visitChildren in class org.apache.myfaces.trinidad.component.UIXTree

invokeOnComponent

public boolean invokeOnComponent(javax.faces.context.FacesContext facesContext,
                                 java.lang.String clientId,
                                 javax.faces.component.ContextCallback callback)
                          throws javax.faces.FacesException
Overrides:
invokeOnComponent in class org.apache.myfaces.trinidad.component.UIXCollection
Throws:
javax.faces.FacesException

getPathStamp

public final javax.faces.component.UIComponent getPathStamp()
the component used to stamp each step of the focus path when the Hierachical Selector popup is displayed. This component can be a a combination of simple outputText, image, or outputFormatted tags and must not be an "input" component (EditableValueHolder) since no user input is allowed in the Hierarchical Selector popup. If this facet is not provided, then the Hierarchical Selector icon is not rendered.

setPathStamp

public final void setPathStamp(javax.faces.component.UIComponent pathStampFacet)
the component used to stamp each step of the focus path when the Hierachical Selector popup is displayed. This component can be a a combination of simple outputText, image, or outputFormatted tags and must not be an "input" component (EditableValueHolder) since no user input is allowed in the Hierarchical Selector popup. If this facet is not provided, then the Hierarchical Selector icon is not rendered.

getContextMenu

public final javax.faces.component.UIComponent getContextMenu()
popup component containing the context menu that will be shown on right click of any tree node. The af:popup must contain an af:menu to display the context menu

setContextMenu

public final void setContextMenu(javax.faces.component.UIComponent contextMenuFacet)
popup component containing the context menu that will be shown on right click of any tree node. The af:popup must contain an af:menu to display the context menu

getInlineStyle

public final java.lang.String getInlineStyle()
Gets the CSS styles to use for this component. This is intended for basic style changes. The inlineStyle is a set of CSS styles that are applied to the root DOM element of the component. Be aware that because of browser CSS precedence rules, CSS rendered on a DOM element takes precedence over external stylesheets like the skin file. Therefore skins will not be able to override what you set on this attribute. If the inlineStyle's CSS properties do not affect the DOM element you want affected, then you will have to create a skin and use the skinning keys which are meant to target particular DOM elements, like ::label or ::icon-style.
Returns:
the new inlineStyle value

setInlineStyle

public final void setInlineStyle(java.lang.String inlineStyle)
Sets the CSS styles to use for this component. This is intended for basic style changes. The inlineStyle is a set of CSS styles that are applied to the root DOM element of the component. Be aware that because of browser CSS precedence rules, CSS rendered on a DOM element takes precedence over external stylesheets like the skin file. Therefore skins will not be able to override what you set on this attribute. If the inlineStyle's CSS properties do not affect the DOM element you want affected, then you will have to create a skin and use the skinning keys which are meant to target particular DOM elements, like ::label or ::icon-style.
Parameters:
inlineStyle - the new inlineStyle value

getStyleClass

public final java.lang.String getStyleClass()
Gets a CSS style class to use for this component. The style class can be defined in your jspx page or in a skinning CSS file, for example, or you can use one of our public style classes, like 'AFInstructionText'.
Returns:
the new styleClass value

setStyleClass

public final void setStyleClass(java.lang.String styleClass)
Sets a CSS style class to use for this component. The style class can be defined in your jspx page or in a skinning CSS file, for example, or you can use one of our public style classes, like 'AFInstructionText'.
Parameters:
styleClass - the new styleClass value

getShortDesc

public final java.lang.String getShortDesc()
Gets the short description of the component. This text is commonly used by user agents to display tooltip help text, in which case the behavior for the tooltip is controlled by the user agent, e.g. Firefox 2 truncates long tooltips. For form components, the shortDesc is displayed in a note window. For components that support the helpTopicId attribute it is recommended that helpTopicId is used as it is more flexible and is more accessibility-compliant.
Returns:
the new shortDesc value

setShortDesc

public final void setShortDesc(java.lang.String shortDesc)
Sets the short description of the component. This text is commonly used by user agents to display tooltip help text, in which case the behavior for the tooltip is controlled by the user agent, e.g. Firefox 2 truncates long tooltips. For form components, the shortDesc is displayed in a note window. For components that support the helpTopicId attribute it is recommended that helpTopicId is used as it is more flexible and is more accessibility-compliant.
Parameters:
shortDesc - the new shortDesc value

getUnsecure

public final java.util.Set<java.lang.String> getUnsecure()
Gets A whitespace separated list of attributes whose values ordinarily can be set only on the server, but need to be settable on the client. Currently, this is supported only for the "disabled" attribute. Note that when you are able to set a property on the client, you will be allowed to by using the the .setProperty('attribute', newValue) method, but not the .setXXXAttribute(newValue) method. For example, if you have unsecure="disabled", then on the client you can use the method .setProperty('disabled', false), while the method .setDisabled(false) will not work and will provide a javascript error that setDisabled is not a function.
Returns:
the new unsecure value

setUnsecure

public final void setUnsecure(java.util.Set<java.lang.String> unsecure)
Sets A whitespace separated list of attributes whose values ordinarily can be set only on the server, but need to be settable on the client. Currently, this is supported only for the "disabled" attribute. Note that when you are able to set a property on the client, you will be allowed to by using the the .setProperty('attribute', newValue) method, but not the .setXXXAttribute(newValue) method. For example, if you have unsecure="disabled", then on the client you can use the method .setProperty('disabled', false), while the method .setDisabled(false) will not work and will provide a javascript error that setDisabled is not a function.
Parameters:
unsecure - the new unsecure value

isVisible

public final boolean isVisible()
Gets the visibility of the component. If it is "false", the component will be hidden on the client. Unlike "rendered", this does not affect the lifecycle on the server - the component may have its bindings executed, etc. - and the visibility of the component can be toggled on and off on the client, or toggled with PPR. When "rendered" is false, the component will not in any way be rendered, and cannot be made visible on the client. In most cases, use the "rendered" property instead of the "visible" property.
Returns:
the new visible value

setVisible

public final void setVisible(boolean visible)
Sets the visibility of the component. If it is "false", the component will be hidden on the client. Unlike "rendered", this does not affect the lifecycle on the server - the component may have its bindings executed, etc. - and the visibility of the component can be toggled on and off on the client, or toggled with PPR. When "rendered" is false, the component will not in any way be rendered, and cannot be made visible on the client. In most cases, use the "rendered" property instead of the "visible" property.
Parameters:
visible - the new visible value

getCustomizationId

@Deprecated
public final java.lang.String getCustomizationId()
Deprecated. This attribute is deprecated. This attribute will be removed in the next release. Use the 'id' attribute instead.
Gets This attribute is deprecated. The 'id' attribute should be used when applying persistent customizations. This attribute will be removed in the next release.
Returns:
the new customizationId value

setCustomizationId

@Deprecated
public final void setCustomizationId(java.lang.String customizationId)
Deprecated. This attribute is deprecated. This attribute will be removed in the next release. Use the 'id' attribute instead.
Sets This attribute is deprecated. The 'id' attribute should be used when applying persistent customizations. This attribute will be removed in the next release.
Parameters:
customizationId - the new customizationId value

isClientComponent

public final boolean isClientComponent()
Gets whether a client-side component will be generated. A component may be generated whether or not this flag is set, but if client Javascript requires the component object, this must be set to true to guarantee the component's presence. Client component objects that are generated today by default may not be present in the future; setting this flag is the only way to guarantee a component's presence, and clients cannot rely on implicit behavior. However, there is a performance cost to setting this flag, so clients should avoid turning on client components unless absolutely necessary.
Returns:
the new clientComponent value

setClientComponent

public final void setClientComponent(boolean clientComponent)
Sets whether a client-side component will be generated. A component may be generated whether or not this flag is set, but if client Javascript requires the component object, this must be set to true to guarantee the component's presence. Client component objects that are generated today by default may not be present in the future; setting this flag is the only way to guarantee a component's presence, and clients cannot rely on implicit behavior. However, there is a performance cost to setting this flag, so clients should avoid turning on client components unless absolutely necessary.
Parameters:
clientComponent - the new clientComponent value

getClientAttributes

public final java.util.Set getClientAttributes()
Gets a set of client attribute names.
Returns:
the new clientAttributes value

setClientAttributes

public final void setClientAttributes(java.util.Set clientAttributes)
Sets a set of client attribute names.
Parameters:
clientAttributes - the new clientAttributes value

getPartialTriggers

public final java.lang.String[] getPartialTriggers()
Gets the IDs of the components that should trigger a partial update. This component will listen on the trigger components. If one of the trigger components receives an event that will cause it to update in some way, this component will request to be updated too. Identifiers are relative to the source component (this component), and must account for NamingContainers. If your component is already inside of a naming container, you can use a single colon to start the search from the root of the page, or multiple colons to move up through the NamingContainers - "::" will pop out of the component's naming container (or itself if the component is a naming container) and begin the search from there, ":::" will pop out of two naming containers (including itself if the component is a naming container) and begin the search from there, etc.
Returns:
the new partialTriggers value

setPartialTriggers

public final void setPartialTriggers(java.lang.String[] partialTriggers)
Sets the IDs of the components that should trigger a partial update. This component will listen on the trigger components. If one of the trigger components receives an event that will cause it to update in some way, this component will request to be updated too. Identifiers are relative to the source component (this component), and must account for NamingContainers. If your component is already inside of a naming container, you can use a single colon to start the search from the root of the page, or multiple colons to move up through the NamingContainers - "::" will pop out of the component's naming container (or itself if the component is a naming container) and begin the search from there, ":::" will pop out of two naming containers (including itself if the component is a naming container) and begin the search from there, etc.
Parameters:
partialTriggers - the new partialTriggers value

getClientListeners

public final ClientListenerSet getClientListeners()
Gets a set of client listeners.
Returns:
the new clientListeners value

setClientListeners

public final void setClientListeners(ClientListenerSet clientListeners)
Sets a set of client listeners.
Parameters:
clientListeners - the new clientListeners value

getContextMenuId

@Deprecated
public final java.lang.String getContextMenuId()
Deprecated. This attribute is deprecated, "contextMenu" facet should be used instead.
Gets A search expression to identify the popup component containing the context menu that will be shown within the tree body. Expressions are relative to this tree component and must account for NamingContainers (for example, tree and panelCollection are NamingContainer components). You can prepend a single colon to start the search from the root, or multiple colons to move up through the NamingContainers. For example, a leading "::" will pop out of one NamingContainer (including component itself if it is a NamingContainer) and begin search from there, ":::" will pop out of two NamingContainers, etc.
Returns:
the new contextMenuId value

setContextMenuId

@Deprecated
public final void setContextMenuId(java.lang.String contextMenuId)
Deprecated. This attribute is deprecated, "contextMenu" facet should be used instead.
Sets A search expression to identify the popup component containing the context menu that will be shown within the tree body. Expressions are relative to this tree component and must account for NamingContainers (for example, tree and panelCollection are NamingContainer components). You can prepend a single colon to start the search from the root, or multiple colons to move up through the NamingContainers. For example, a leading "::" will pop out of one NamingContainer (including component itself if it is a NamingContainer) and begin search from there, ":::" will pop out of two NamingContainers, etc.
Parameters:
contextMenuId - the new contextMenuId value

getRowSelection

public final java.lang.String getRowSelection()
Gets whether rows in this table are selectable. Use the value "single" to enable single selection and "multiple" to enable multiple selection.
Returns:
the new rowSelection value

setRowSelection

public final void setRowSelection(java.lang.String rowSelection)
Sets whether rows in this table are selectable. Use the value "single" to enable single selection and "multiple" to enable multiple selection.
Parameters:
rowSelection - the new rowSelection value

getFetchSize

public final int getFetchSize()
Gets the number of rows in the data fetch block
Returns:
the new fetchSize value

setFetchSize

public final void setFetchSize(int fetchSize)
Sets the number of rows in the data fetch block
Parameters:
fetchSize - the new fetchSize value

getContentDelivery

public final java.lang.String getContentDelivery()
Gets whether data should be fetched when the component is rendered initially. When contentDelivery is "immediate", data is fetched and inlined into the component chrome. If contentDelivery is "lazy", data will be fetched and delivered to the client during a subsequent request. If contentDelivery is set to "whenAvailable", upon initial rendering, the renderer queries the model for available data. Data is fetched and rendered immediately if model indicates that data is available. So contentDelivery="whenAvailable" behaves like "immediate" if data is available upon initial rendering.
Returns:
the new contentDelivery value

setContentDelivery

public final void setContentDelivery(java.lang.String contentDelivery)
Sets whether data should be fetched when the component is rendered initially. When contentDelivery is "immediate", data is fetched and inlined into the component chrome. If contentDelivery is "lazy", data will be fetched and delivered to the client during a subsequent request. If contentDelivery is set to "whenAvailable", upon initial rendering, the renderer queries the model for available data. Data is fetched and rendered immediately if model indicates that data is available. So contentDelivery="whenAvailable" behaves like "immediate" if data is available upon initial rendering.
Parameters:
contentDelivery - the new contentDelivery value

getDisplayRow

public final java.lang.String getDisplayRow()
Gets the row to display in the tree during intial display. The possible values are "first" to display the first row, "last" to display the last row and "selected" to display the first selected row in the tree. The default value for this is null which means that the first row is displayed.
Returns:
the new displayRow value

setDisplayRow

public final void setDisplayRow(java.lang.String displayRow)
Sets the row to display in the tree during intial display. The possible values are "first" to display the first row, "last" to display the last row and "selected" to display the first selected row in the tree. The default value for this is null which means that the first row is displayed.
Parameters:
displayRow - the new displayRow value

getDisplayRowKey

public final java.lang.Object getDisplayRowKey()
Gets the rowkey to display in the tree during intial display. Specifying this attribute will override the displayRow attribute.
Returns:
the new displayRowKey value

setDisplayRowKey

public final void setDisplayRowKey(java.lang.Object displayRowKey)
Sets the rowkey to display in the tree during intial display. Specifying this attribute will override the displayRow attribute.
Parameters:
displayRowKey - the new displayRowKey value

getActiveRowKey

public final java.lang.Object getActiveRowKey()
Gets this is the row that is currently active on the client. In click-to-edit mode, the active row will be made editable and is brought into view (if not already visible). Upon initial display, the click-to-edit component defaults the active row to the first visible row.
Returns:
the new activeRowKey value

setActiveRowKey

public final void setActiveRowKey(java.lang.Object activeRowKey)
Sets this is the row that is currently active on the client. In click-to-edit mode, the active row will be made editable and is brought into view (if not already visible). Upon initial display, the click-to-edit component defaults the active row to the first visible row.
Parameters:
activeRowKey - the new activeRowKey value

getEmptyText

public final java.lang.String getEmptyText()
Gets the text of an empty tree. If the text is enclosed in an open and closing html tag, it will be formatted. The formatting behavior is similar to outputFormatted component. If it is not enclosed in an open and closing html tag, it will not be formatted.
Returns:
the new emptyText value

setEmptyText

public final void setEmptyText(java.lang.String emptyText)
Sets the text of an empty tree. If the text is enclosed in an open and closing html tag, it will be formatted. The formatting behavior is similar to outputFormatted component. If it is not enclosed in an open and closing html tag, it will not be formatted.
Parameters:
emptyText - the new emptyText value

getSummary

public final java.lang.String getSummary()
Gets the summary of this tree's purpose and structure for user agents rendering to non-visual media.
Returns:
the new summary value

setSummary

public final void setSummary(java.lang.String summary)
Sets the summary of this tree's purpose and structure for user agents rendering to non-visual media.
Parameters:
summary - the new summary value

isContextMenuSelect

public final boolean isContextMenuSelect()
Gets Indicates if we should actually select the node clicked when right clicking to show a context menu. By default the node is selected before the context menu is displayed. However if contextMenuSelect="false", and if user right clicks a node, the new node is highlighted and the highlighting for the currently selected node(s) is cleared when the context menus is displayed. The highlighting of the currently selected nodes(s) is restored after the context menu is dismissed. It should be noted that when the context menu is displayed, the attribute selectedRowKeys still contains the selected node(s). The highlighted row key is established as a currency in the tree when the action for context menu item is executed. The currency in the tree can be retrieved by calling "tree.getRowKey()".
Returns:
the new contextMenuSelect value

setContextMenuSelect

public final void setContextMenuSelect(boolean contextMenuSelect)
Sets Indicates if we should actually select the node clicked when right clicking to show a context menu. By default the node is selected before the context menu is displayed. However if contextMenuSelect="false", and if user right clicks a node, the new node is highlighted and the highlighting for the currently selected node(s) is cleared when the context menus is displayed. The highlighting of the currently selected nodes(s) is restored after the context menu is dismissed. It should be noted that when the context menu is displayed, the attribute selectedRowKeys still contains the selected node(s). The highlighted row key is established as a currency in the tree when the action for context menu item is executed. The currency in the tree can be retrieved by calling "tree.getRowKey()".
Parameters:
contextMenuSelect - the new contextMenuSelect value

getEditingMode

public final java.lang.String getEditingMode()
Gets Indicates the mode used to edit the tree when it contains editable components. When a tree is rendered as readOnly, the editingMode attribute is ignored. The possible values are "clickToEdit" and "editAll". In "editAll" mode all the editable components are displayed at a time in the table view area. In "clickToEdit" mode a single node is editable at a time. In "clickToEdit" mode a single row editable at a time. The following is the behavior:
  1. Stay in edit mode: If in edit mode, stay in edit mode when a read/only cell is reached via keyboard navigation.
  2. Enter key navigation: When in edit mode, ensure that pressing Enter or Shift+Enter navigates to the adjacent node when possible.
  3. Esc key reverts cell edits: When in edit mode, pressing the Esc key reverts all edits made to cells in a node and disables edit mode.
  4. Input Field Text Selection: When a cell contains an input text field widget, the text is selected automatically when the widget has focus.
Returns:
the new editingMode value

setEditingMode

public final void setEditingMode(java.lang.String editingMode)
Sets Indicates the mode used to edit the tree when it contains editable components. When a tree is rendered as readOnly, the editingMode attribute is ignored. The possible values are "clickToEdit" and "editAll". In "editAll" mode all the editable components are displayed at a time in the table view area. In "clickToEdit" mode a single node is editable at a time. In "clickToEdit" mode a single row editable at a time. The following is the behavior:
  1. Stay in edit mode: If in edit mode, stay in edit mode when a read/only cell is reached via keyboard navigation.
  2. Enter key navigation: When in edit mode, ensure that pressing Enter or Shift+Enter navigates to the adjacent node when possible.
  3. Esc key reverts cell edits: When in edit mode, pressing the Esc key reverts all edits made to cells in a node and disables edit mode.
  4. Input Field Text Selection: When a cell contains an input text field widget, the text is selected automatically when the widget has focus.
Parameters:
editingMode - the new editingMode value

isExpandAllEnabled

public final boolean isExpandAllEnabled()
Gets Indicates whether the "Expand/Collapse All", and "Expand/Collapse All Below" menu items are rendered. These menu items are rendered by default.
Returns:
the new expandAllEnabled value

setExpandAllEnabled

public final void setExpandAllEnabled(boolean expandAllEnabled)
Sets Indicates whether the "Expand/Collapse All", and "Expand/Collapse All Below" menu items are rendered. These menu items are rendered by default.
Parameters:
expandAllEnabled - the new expandAllEnabled value

getScrollTop

public final int getScrollTop()
Gets private property to indicate current vertical scroll position .
Returns:
the new scrollTop value

setScrollTop

public final void setScrollTop(int scrollTop)
Sets private property to indicate current vertical scroll position .
Parameters:
scrollTop - the new scrollTop value

getScrollLeft

public final int getScrollLeft()
Gets private property to indicate current horizontal scroll position .
Returns:
the new scrollLeft value

setScrollLeft

public final void setScrollLeft(int scrollLeft)
Sets private property to indicate current horizontal scroll position .
Parameters:
scrollLeft - the new scrollLeft value

getScrollTopRowKey

public final java.lang.Object getScrollTopRowKey()
Gets private property to indicate the client token for the first visible node .
Returns:
the new scrollTopRowKey value

setScrollTopRowKey

public final void setScrollTopRowKey(java.lang.Object scrollTopRowKey)
Sets private property to indicate the client token for the first visible node .
Parameters:
scrollTopRowKey - the new scrollTopRowKey value

isClearTokenCacheOnPPR

public final boolean isClearTokenCacheOnPPR()
Gets private property to turn on/off the clearing of the row key token cache when the copmponent is PPRed. Default is true
Returns:
the new clearTokenCacheOnPPR value

setClearTokenCacheOnPPR

public final void setClearTokenCacheOnPPR(boolean clearTokenCacheOnPPR)
Sets private property to turn on/off the clearing of the row key token cache when the copmponent is PPRed. Default is true
Parameters:
clearTokenCacheOnPPR - the new clearTokenCacheOnPPR value

getAutoHeightRows

public final int getAutoHeightRows()
Gets

The number of rows used to size the tree height.

If the oracle.adf.view.rich.geometry.DEFAULT_DIMENSIONS context-param is set to "auto" in the project's web.xml, the default value for this attribute will be 0. Otherwise, the default value will be -1 (no auto-sizing for any number of rows).

Returns:
the new autoHeightRows value

setAutoHeightRows

public final void setAutoHeightRows(int autoHeightRows)
Sets

The number of rows used to size the tree height.

If the oracle.adf.view.rich.geometry.DEFAULT_DIMENSIONS context-param is set to "auto" in the project's web.xml, the default value for this attribute will be 0. Otherwise, the default value will be -1 (no auto-sizing for any number of rows).

Parameters:
autoHeightRows - the new autoHeightRows value

getDefaultEventName

public java.lang.String getDefaultEventName()
Specified by:
getDefaultEventName in interface javax.faces.component.behavior.ClientBehaviorHolder
Overrides:
getDefaultEventName in class org.apache.myfaces.trinidad.component.UIXComponentBase

getEventNames

public java.util.Collection<java.lang.String> getEventNames()
Specified by:
getEventNames in interface javax.faces.component.behavior.ClientBehaviorHolder

getClientBehaviors

public java.util.Map<java.lang.String,java.util.List<javax.faces.component.behavior.ClientBehavior>> getClientBehaviors()
Specified by:
getClientBehaviors in interface javax.faces.component.behavior.ClientBehaviorHolder
Overrides:
getClientBehaviors in class org.apache.myfaces.trinidad.component.UIXComponentBase

addClientBehavior

public void addClientBehavior(java.lang.String eventName,
                              javax.faces.component.behavior.ClientBehavior behavior)
Specified by:
addClientBehavior in interface javax.faces.component.behavior.ClientBehaviorHolder
Overrides:
addClientBehavior in class org.apache.myfaces.trinidad.component.UIXComponentBase

getFamily

public java.lang.String getFamily()
Overrides:
getFamily in class org.apache.myfaces.trinidad.component.UIXTree

getBeanType

protected org.apache.myfaces.trinidad.bean.FacesBean.Type getBeanType()
Overrides:
getBeanType in class org.apache.myfaces.trinidad.component.UIXTree

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 2 (11.1.2.3.0)
E17488-04


Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.