public class RichTable extends PartialRichTable implements DragSourceFactory
| Modifier and Type | Class and Description |
|---|---|
protected static class |
RichTable.ColumnFacetsOnlyVisitContext
VistiContext that visits the facets of the UIXColumn children, including
nested UIXColumn childrem
|
org.apache.myfaces.trinidad.component.UIXIterator.Runnerorg.apache.myfaces.trinidad.component.UIXCollection.NoColumnFacetsVisitContext| Modifier and Type | Field and Description |
|---|---|
static org.apache.myfaces.trinidad.bean.FacesBean.Type |
TYPE |
ACTIVE_ROW_KEY_KEY, ALL_DETAILS_ENABLED_KEY, AUTO_HEIGHT_ROWS_KEY, BLOCK_ROW_NAVIGATION_ON_ERROR_ALWAYS, BLOCK_ROW_NAVIGATION_ON_ERROR_AUTO, BLOCK_ROW_NAVIGATION_ON_ERROR_KEY, BLOCK_ROW_NAVIGATION_ON_ERROR_NEVER, BODY_CONTEXT_MENU_FACET, BODY_CONTEXT_MENU_ID_KEY, CLEAR_TOKEN_CACHE_ON_PPR_KEY, CLIENT_ATTRIBUTES_KEY, CLIENT_COMPONENT_KEY, CLIENT_LISTENERS_KEY, COLUMN_BANDING_INTERVAL_KEY, COLUMN_RESIZING_DISABLED, COLUMN_RESIZING_ENABLED, COLUMN_RESIZING_KEY, COLUMN_SELECTION_KEY, COLUMN_SELECTION_LISTENER_KEY, COLUMN_SELECTION_MULTIPLE, COLUMN_SELECTION_NONE, COLUMN_SELECTION_SINGLE, COLUMN_STRETCHING_KEY, COMPONENT_FAMILY, COMPONENT_TYPE, CONTENT_DELIVERY_IMMEDIATE, CONTENT_DELIVERY_KEY, CONTENT_DELIVERY_LAZY, CONTENT_DELIVERY_WHEN_AVAILABLE, CONTEXT_MENU_FACET, CONTEXT_MENU_ID_KEY, CONTEXT_MENU_SELECT_KEY, CUSTOMIZATION_ID_KEY, DISABLE_COLUMN_REORDERING_KEY, DISPLAY_ROW_FIRST, DISPLAY_ROW_KEY, DISPLAY_ROW_KEY_KEY, DISPLAY_ROW_LAST, DISPLAY_ROW_SELECTED, DONT_PERSIST_KEY, EDITING_MODE_CLICK_TO_EDIT, EDITING_MODE_EDIT_ALL, EDITING_MODE_KEY, EDITING_MODE_READ_ONLY, EMPTY_TEXT_KEY, FETCH_SIZE_KEY, FILTER_VISIBLE_KEY, FOOTER_FACET, FREEZE_DIRECTION_END, FREEZE_DIRECTION_KEY, FREEZE_DIRECTION_START, HEADER_FACET, HORIZONTAL_GRID_VISIBLE_KEY, INLINE_STYLE_KEY, MAX_CLIENT_ROWS_KEY, PARTIAL_TRIGGERS_KEY, PERSIST_KEY, ROW_BANDING_INTERVAL_KEY, ROW_SELECTION_KEY, ROW_SELECTION_MULTIPLE, ROW_SELECTION_MULTIPLE_NO_SELECT_ALL, ROW_SELECTION_NONE, ROW_SELECTION_SINGLE, SCROLL_LEFT_KEY, SCROLL_POLICY_AUTO, SCROLL_POLICY_KEY, SCROLL_POLICY_PAGE, SCROLL_POLICY_SCROLL, SCROLL_POLICY_SCROLL_PREFETCH, SCROLL_TOP_KEY, SCROLL_TOP_ROW_KEY_KEY, SELECTION_EVENT_DELAY_DISABLED, SELECTION_EVENT_DELAY_ENABLED, SELECTION_EVENT_DELAY_KEY, SHORT_DESC_KEY, STYLE_CLASS_KEY, SUMMARY_KEY, UNSECURE_KEY, VERTICAL_GRID_VISIBLE_KEY, VISIBLE_KEY, WIDTH_KEYFILTER_MODEL_KEY, QUERY_LISTENER_KEYDETAIL_STAMP_FACET, DISCLOSED_ROW_KEYS_KEY, IMMEDIATE_KEY, RANGE_CHANGE_LISTENER_KEY, ROW_DISCLOSURE_LISTENER_KEY, SELECTED_ROW_KEYS_KEY, SELECTION_LISTENER_KEY, SHOW_ALL_KEY, SORT_LISTENER_KEYFIRST_KEY, ROWS_KEY, VALUE_KEY, VAR_STATUS_KEYBINDING_KEY, ID_KEY, RENDERED_KEY, RENDERER_TYPE_KEY, TRANSIENT_KEYATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEYDEFAULT_DRAGSOURCE| Modifier | Constructor and Description |
|---|---|
|
RichTable()
Construct an instance of the RichTable.
|
protected |
RichTable(String rendererType)
Construct an instance of the RichTable.
|
| Modifier and Type | Method and Description |
|---|---|
void |
broadcast(javax.faces.event.FacesEvent event) |
DragSource |
createDragSource(String name,
Set<DnDAction> allowedActions,
DnDAction defaultAction,
String discriminant,
javax.el.MethodExpression dragDropEndListener,
Map<String,?> properties)
Returns the server DragSource, or
null if no DragSource should be attached. |
CharSequence |
createDragSourceBehavior(String name,
DragSource dragSource,
Set<DnDAction> allowedActions,
DnDAction defaultAction,
String discriminant,
javax.el.MethodExpression dragDropEndListener,
Map<String,?> properties)
Returns the client DragSource initializer.
|
protected Map<String,Object> |
createVarStatusMap()
Enhances the varStatusMap created by the super class to include:
readOnly - returns true if the current row is non-editable
|
protected org.apache.myfaces.trinidad.bean.FacesBean.Type |
getBeanType() |
Collection<String> |
getSelectedColumns()
Returns selected child columns by clientId.
|
protected List<javax.faces.component.UIComponent> |
getStamps()
Gets the stamps.
|
boolean |
invokeOnComponent(javax.faces.context.FacesContext facesContext,
String clientId,
javax.faces.component.ContextCallback callback) |
boolean |
isIterator(javax.faces.component.UIComponent stamp) |
void |
queueEvent(javax.faces.event.FacesEvent event) |
void |
setClickToEditRowEditable()
Sets the internal read only attribute to false on a clicktoedit table.
|
void |
setClickToEditRowReadOnly()
Sets the internal read only attribute to true on a clicktoedit table.
|
protected Object |
setupELVariable(javax.faces.context.FacesContext context,
String name,
Object value) |
protected boolean |
visitChildren(javax.faces.component.visit.VisitContext visitContext,
javax.faces.component.visit.VisitCallback callback) |
protected boolean |
visitStampedColumnFacets(javax.faces.component.visit.VisitContext visitContext,
javax.faces.component.visit.VisitCallback callback)
Implementation used to visit each stamped row
|
protected boolean |
visitUnstampedFacets(javax.faces.component.visit.VisitContext visitContext,
javax.faces.component.visit.VisitCallback callback) |
addClientBehavior, addColumnSelectionListener, getActiveRowKey, getAutoHeightRows, getBlockRowNavigationOnError, getBodyContextMenu, getBodyContextMenuId, getClientAttributes, getClientBehaviors, getClientListeners, getColumnBandingInterval, getColumnResizing, getColumnSelection, getColumnSelectionListener, getColumnSelectionListeners, getColumnStretching, getContentDelivery, getContextMenu, getContextMenuId, getCustomizationId, getDefaultEventName, getDisplayRow, getDisplayRowKey, getDontPersist, getEditingMode, getEmptyText, getEventNames, getFamily, getFetchSize, getFooter, getFreezeDirection, getHeader, getInlineStyle, getMaxClientRows, getPartialTriggers, getPersist, getRowBandingInterval, getRowSelection, getScrollLeft, getScrollPolicy, getScrollTop, getScrollTopRowKey, getSelectionEventDelay, getShortDesc, getStyleClass, getSummary, getUnsecure, getWidth, isAllDetailsEnabled, isClearTokenCacheOnPPR, isClientComponent, isContextMenuSelect, isDisableColumnReordering, isFilterVisible, isHorizontalGridVisible, isVerticalGridVisible, isVisible, removeColumnSelectionListener, setActiveRowKey, setAllDetailsEnabled, setAutoHeightRows, setBlockRowNavigationOnError, setBodyContextMenu, setBodyContextMenuId, setClearTokenCacheOnPPR, setClientAttributes, setClientComponent, setClientListeners, setColumnBandingInterval, setColumnResizing, setColumnSelection, setColumnSelectionListener, setColumnStretching, setContentDelivery, setContextMenu, setContextMenuId, setContextMenuSelect, setCustomizationId, setDisableColumnReordering, setDisplayRow, setDisplayRowKey, setDontPersist, setEditingMode, setEmptyText, setFetchSize, setFilterVisible, setFooter, setFreezeDirection, setHeader, setHorizontalGridVisible, setInlineStyle, setMaxClientRows, setPartialTriggers, setPersist, setRowBandingInterval, setRowSelection, setScrollLeft, setScrollPolicy, setScrollTop, setScrollTopRowKey, setSelectionEventDelay, setShortDesc, setStyleClass, setSummary, setUnsecure, setVerticalGridVisible, setVisible, setWidth__decodeChildrenImpl, __updateChildrenImpl, __validateChildrenImpl, getQueryListenerAsExpression, processStampsaddQueryListener, getFilterModel, getQueryListener, getQueryListeners, removeQueryListener, setFilterModel, setQueryListeneraddRangeChangeListener, addRowDisclosureListener, addSelectionListener, addSortListener, createCollectionModel, createFacesBean, decode, getContainerClientId, getDetailStamp, getDisclosedRowKeys, getIndexedRunner, getRangeChangeListener, getRangeChangeListeners, getRowDisclosureListener, getRowDisclosureListeners, getSelectedRowData, getSelectedRowKeys, getSelectionListener, getSelectionListeners, getSortListener, getSortListeners, isImmediate, isShowAll, postCreateCollectionModel, processFacetsAndChildren, processUpdates, processValidators, removeRangeChangeListener, removeRowDisclosureListener, removeSelectionListener, removeSortListener, restoreStampState, restoreState, saveStampState, saveState, setDetailStamp, setDisclosedRowKeys, setImmediate, setRangeChangeListener, setRangeChangeListener, setRowDisclosureListener, setRowDisclosureListener, setRowIndex, setRowKey, setSelectedRowKeys, setSelectionListener, setSelectionListener, setShowAll, setSortCriteria, setSortListener, setSortListener, setupVisitingContext, tearDownVisitingContextencodeChildren, getFirst, getRendersChildren, getRows, getValue, getVarStatus, isFlatteningChildren, processFlattenedChildren, setFirst, setRows, setValue, setVarStatus, visitDataareRowsAvailable, areRowsAvailable, areRowsAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, clearCachedRow, clearCachedRow, clearCachedRows, clearCachedRows, clearCurrencyStringCache, clearLocalCache, decodeChildrenImpl, defaultVisitChildren, encodeBegin, encodeEnd, ensureRowsAvailable, getCachingStrategy, getClientRowKey, getClientRowKeyManager, getCollectionModel, getCollectionModel, getContainerClientId, getCurrencyString, getEstimatedRowCount, getEstimatedRowCountConfidence, getRowCount, getRowData, getRowData, getRowData, getRowIndex, getRowKey, getSortCriteria, getVar, isRowAvailable, isRowAvailable, isRowAvailable, isRowLocallyAvailable, isRowLocallyAvailable, isSortable, newNoColumnFacetsVisitContext, postRowDataChange, preRowDataChange, processComponent, processDecodes, processEvent, processFlattenedChildrenBegin, processRestoreState, processSaveState, resetStampState, setClientRowKey, setCurrencyString, setVar, updateChildrenImpl, validateChildrenImpl, visitChildrenWithoutIteratingadaptMethodBinding, addAttributeChange, addAttributeChangeListener, addComponentChange, addComponentChange, addComponentChangeFilter, addFacesListener, broadcastToMethodBinding, broadcastToMethodExpression, clearCachedClientIds, clearInitialState, decodeChildren, findComponent, getAttributeChangeListener, getAttributeChangeListeners, getAttributes, getBooleanProperty, getChildCount, getChildren, getClientId, getComponentChangeFilters, getFacesBean, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacetNames, getFacets, getFacetsAndChildren, getId, getIntProperty, getLifecycleRenderer, getListenersForEventClass, getParent, getPassThroughAttributes, getProperty, getPropertyKey, getRenderedFacetsAndChildren, getRenderer, getRendererType, getValueBinding, getValueExpression, initialStateMarked, invokeOnChildrenComponents, invokeOnNamingContainerComponent, isRendered, isTransient, markInitialState, removeAttributeChangeListener, removeComponentChangeFilter, removeFacesListener, satisfiesPartialTrigger, setAttributeChangeListener, setAttributeChangeListener, setBooleanProperty, setId, setIntProperty, setParent, setProperty, setRendered, setRendererType, setTransient, setupFlattenedChildrenContext, setupFlattenedContext, setValueBinding, setValueExpression, subscribeToEvent, tearDownFlattenedChildrenContext, tearDownFlattenedContext, toString, unsubscribeFromEvent, updateChildren, validateChildrenaddPartialTarget, broadcastInContext, clearCachedClientIds, defaultGetRenderedFacetsAndChildren, encodeFlattenedChild, encodeFlattenedChildren, getLogicalParent, getLogicalParent, getStateHelper, getStateHelper, isVisitable, partialEncodeVisit, processFlattenedChildren, processFlattenedChildren, processFlattenedChildren, processFlattenedChildren, setPartialTarget, setupChildrenEncodingContext, setupChildrenVisitingContext, setupEncodingContext, setUpEncodingContext, tearDownChildrenEncodingContext, tearDownChildrenVisitingContext, tearDownEncodingContext, visitAllChildren, visitChildren, visitTree, visitTreeencodeAll, getClientId, getCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getTransientStateHelper, getTransientStateHelper, isCompositeComponent, isInView, popComponentFromEL, pushComponentToEL, restoreTransientState, saveTransientState, setInViewclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFirst, getRows, getVarareRowsAvailable, areRowsAvailable, areRowsAvailable, getRowCount, getRowData, getRowData, getRowData, getRowIndex, getRowKey, isRowAvailable, isRowAvailable, isRowAvailableareRowsLocallyAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, clearCachedRow, clearCachedRow, clearCachedRows, clearCachedRows, clearLocalCache, getCachingStrategy, getEstimatedRowCount, getEstimatedRowCountConfidence, isRowLocallyAvailable, isRowLocallyAvailablepublic RichTable()
protected RichTable(String rendererType)
rendererType - The type of rendererprotected org.apache.myfaces.trinidad.bean.FacesBean.Type getBeanType()
getBeanType in class PartialRichTablepublic void queueEvent(javax.faces.event.FacesEvent event)
queueEvent in class org.apache.myfaces.trinidad.component.UIXTablepublic void broadcast(javax.faces.event.FacesEvent event)
throws javax.faces.event.AbortProcessingException
public DragSource createDragSource(String name, Set<DnDAction> allowedActions, DnDAction defaultAction, String discriminant, javax.el.MethodExpression dragDropEndListener, Map<String,?> properties)
DragSourceFactorynull if no DragSource should be attached.createDragSource in interface DragSourceFactoryname - refers to a named DragSource; "default" refers to the default DragSourceallowedActions - Set of DnDAction supported by the DragSource.defaultAction - Default drag and drop action supported by this drag sourcediscriminant - 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 futurepublic CharSequence createDragSourceBehavior(String name, DragSource dragSource, Set<DnDAction> allowedActions, DnDAction defaultAction, String discriminant, javax.el.MethodExpression dragDropEndListener, Map<String,?> properties)
DragSourceFactorycreateDragSourceBehavior in interface DragSourceFactoryname - refers to a named DragSource; "default" refers to the default DragSourcedragSource - DragSource to create clientDragSource initializer for.allowedActions - Set of DnDAction supported by the DragSource.defaultAction - Default drag and drop action supported by this drag sourcediscriminant - 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 futurepublic Collection<String> getSelectedColumns()
protected final List<javax.faces.component.UIComponent> getStamps()
getStamps in class org.apache.myfaces.trinidad.component.UIXTableprotected boolean visitChildren(javax.faces.component.visit.VisitContext visitContext,
javax.faces.component.visit.VisitCallback callback)
visitChildren in class org.apache.myfaces.trinidad.component.UIXCollectionprotected boolean visitStampedColumnFacets(javax.faces.component.visit.VisitContext visitContext,
javax.faces.component.visit.VisitCallback callback)
visitStampedColumnFacets in class org.apache.myfaces.trinidad.component.UIXTableprotected boolean visitUnstampedFacets(javax.faces.component.visit.VisitContext visitContext,
javax.faces.component.visit.VisitCallback callback)
visitUnstampedFacets in class org.apache.myfaces.trinidad.component.UIXCollectionpublic boolean invokeOnComponent(javax.faces.context.FacesContext facesContext,
String clientId,
javax.faces.component.ContextCallback callback)
throws javax.faces.FacesException
invokeOnComponent in class org.apache.myfaces.trinidad.component.UIXCollectionjavax.faces.FacesExceptionprotected Object setupELVariable(javax.faces.context.FacesContext context, String name, Object value)
setupELVariable in class org.apache.myfaces.trinidad.component.UIXCollectionpublic boolean isIterator(javax.faces.component.UIComponent stamp)
isIterator in class org.apache.myfaces.trinidad.component.UIXTablepublic void setClickToEditRowReadOnly()
public void setClickToEditRowEditable()