Class DataView
- java.lang.Object
-
- javax.faces.component.UIComponent
-
- javax.faces.component.UIComponentBase
-
- javax.faces.component.UIData
-
- org.primefaces.component.api.UIData
-
- org.primefaces.component.api.UIPageableData
-
- org.primefaces.component.dataview.DataViewBase
-
- org.primefaces.component.dataview.DataView
-
- All Implemented Interfaces:
EventListener
,javax.faces.component.behavior.ClientBehaviorHolder
,javax.faces.component.NamingContainer
,javax.faces.component.PartialStateHolder
,javax.faces.component.StateHolder
,javax.faces.component.TransientStateHolder
,javax.faces.component.UniqueIdVendor
,javax.faces.event.ComponentSystemEventListener
,javax.faces.event.FacesListener
,javax.faces.event.SystemEventListenerHolder
,FlexAware
,MultiViewStateAware<DataViewState>
,Pageable
,PrimeClientBehaviorHolder
,TouchAware
,Widget
public class DataView extends DataViewBase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.primefaces.component.dataview.DataViewBase
DataViewBase.PropertyKeys
-
Nested classes/interfaces inherited from class org.primefaces.component.api.UIPageableData
UIPageableData.InternalPropertyKeys
-
-
Field Summary
Fields Modifier and Type Field Description static String
BUTTON_CLASS
static String
BUTTON_CONTAINER_CLASS
static String
COMPONENT_TYPE
static String
CONTENT_CLASS
static String
DATAVIEW_CLASS
static String
FLEX_GRID_LAYOUT_ROW_CLASS
static String
FOOTER_CLASS
static String
GRID_LAYOUT_CLASS
static String
GRID_LAYOUT_COLUMN_CLASS
static String
GRID_LAYOUT_ROW_CLASS
static String
HEADER_CLASS
static String
LIST_LAYOUT_CLASS
static String
LIST_LAYOUT_CONTAINER_CLASS
static String
ROW_CLASS
-
Fields inherited from class org.primefaces.component.dataview.DataViewBase
COMPONENT_FAMILY, DEFAULT_RENDERER
-
Fields inherited from class org.primefaces.component.api.UIPageableData
ARIA_FIRST_PAGE_LABEL, ARIA_HEADER_LABEL, ARIA_LAST_PAGE_LABEL, ARIA_NEXT_PAGE_LABEL, ARIA_PREVIOUS_PAGE_LABEL, EMPTY_MESSAGE, PAGINATOR_ACTIVE_PAGE_CLASS, PAGINATOR_BOTTOM_CONTAINER_CLASS, PAGINATOR_BOTTOM_LEFT_CONTENT_CLASS, PAGINATOR_BOTTOM_RIGHT_CONTENT_CLASS, PAGINATOR_CURRENT_CLASS, PAGINATOR_FIRST_PAGE_ICON_CLASS, PAGINATOR_FIRST_PAGE_LINK_CLASS, PAGINATOR_JTP_INPUT_CLASS, PAGINATOR_JTP_SELECT_CLASS, PAGINATOR_LAST_PAGE_ICON_CLASS, PAGINATOR_LAST_PAGE_LINK_CLASS, PAGINATOR_NEXT_PAGE_ICON_CLASS, PAGINATOR_NEXT_PAGE_LINK_CLASS, PAGINATOR_PAGE_CLASS, PAGINATOR_PAGES_CLASS, PAGINATOR_PREV_PAGE_ICON_CLASS, PAGINATOR_PREV_PAGE_LINK_CLASS, PAGINATOR_RPP_LABEL_CLASS, PAGINATOR_RPP_OPTIONS_CLASS, PAGINATOR_TOP_CONTAINER_CLASS, PAGINATOR_TOP_LEFT_CONTENT_CLASS, PAGINATOR_TOP_RIGHT_CONTENT_CLASS, ROWS_PER_PAGE_LABEL
-
Fields inherited from class javax.faces.component.UIComponent
ATTRS_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_KEY
-
Fields inherited from interface org.primefaces.component.api.Widget
ATTR_WIDGET_VAR_PATTERN, CALLBACK_POST_CONSTRUCT, CALLBACK_POST_REFRESH, CALLBACK_PRE_DESTROY
-
-
Constructor Summary
Constructors Constructor Description DataView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
findViewItems()
Map<String,Class<? extends javax.faces.event.BehaviorEvent>>
getBehaviorEventMapping()
Collection<String>
getEventNames()
DataViewGridItem
getGridItem()
DataViewListItem
getListItem()
DataViewState
getMultiViewState(boolean create)
boolean
isLayoutRequest(javax.faces.context.FacesContext context)
boolean
isPaginationRequest(javax.faces.context.FacesContext context)
void
loadLazyData()
void
queueEvent(javax.faces.event.FacesEvent event)
void
reset()
void
resetMultiViewState()
void
restoreMultiViewState()
Object
saveState(javax.faces.context.FacesContext context)
-
Methods inherited from class org.primefaces.component.dataview.DataViewBase
getFamily, getGridIcon, getGridRowStyle, getGridRowStyleClass, getLayout, getListIcon, getStyle, getStyleClass, getWidgetVar, isFlex, isMultiViewState, setFlex, setGridIcon, setGridRowStyle, setGridRowStyleClass, setLayout, setListIcon, setMultiViewState, setStyle, setStyleClass, setWidgetVar
-
Methods inherited from class org.primefaces.component.api.UIPageableData
calculateFirst, calculateRows, getCurrentPageReportTemplate, getEmptyMessage, getPage, getPageCount, getPageLinks, getPaginatorPosition, getPaginatorTemplate, getRows, getRowsPerPage, getRowsPerPageLabel, getRowsPerPageTemplate, getRowsToRender, isPaginator, isPaginatorAlwaysVisible, isTouchable, resetRows, setCurrentPageReportTemplate, setEmptyMessage, setFirst, setPageLinks, setPaginator, setPaginatorAlwaysVisible, setPaginatorPosition, setPaginatorTemplate, setRows, setRowsPerPage, setRowsPerPageLabel, setRowsPerPageTemplate, setTouchable, updatePaginationData
-
Methods inherited from class org.primefaces.component.api.UIData
encodeBegin, getClientId, getContainerClientId, getDataModel, getIterableChildren, getRowIndex, getRowIndexVar, invokeOnComponent, isLazy, isNestedWithinIterator, isRowStatePreserved, markInitialState, preDecode, preEncode, preUpdate, preValidate, process, processChildren, processColumnFacets, processDecodes, processFacets, processPhase, processUpdates, processValidators, requiresColumns, restoreDescendantState, restoreDescendantState, restoreState, saveDescendantState, saveDescendantState, setDataModel, setId, setLazy, setRowIndex, setRowIndexVar, setRowModel, setRowStatePreserved, shouldProcessChild, shouldSkipChildren, shouldVisitChildren, visitColumnContent, visitColumnFacets, visitColumnGroup, visitColumnsAndColumnFacets, visitFacets, visitRows, visitTree
-
Methods inherited from class javax.faces.component.UIData
broadcast, createUniqueId, getFirst, getFooter, getHeader, getRowCount, getRowData, getValue, getVar, isRowAvailable, setFooter, setHeader, setValue, setValueBinding, setValueExpression, setVar
-
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, clearInitialState, decode, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getDefaultEventName, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setParent, setRendered, setRendererType, setTransient, subscribeToEvent, unsubscribeFromEvent
-
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.faces.component.behavior.ClientBehaviorHolder
addClientBehavior, getClientBehaviors, getDefaultEventName
-
Methods inherited from interface org.primefaces.component.api.Pageable
getClientId, getFacet, getFirst, getFooter, getHeader, getRowCount
-
Methods inherited from interface org.primefaces.component.api.Widget
resolveWidgetVar, resolveWidgetVar
-
-
-
-
Field Detail
-
COMPONENT_TYPE
public static final String COMPONENT_TYPE
- See Also:
- Constant Field Values
-
DATAVIEW_CLASS
public static final String DATAVIEW_CLASS
- See Also:
- Constant Field Values
-
LIST_LAYOUT_CLASS
public static final String LIST_LAYOUT_CLASS
- See Also:
- Constant Field Values
-
GRID_LAYOUT_CLASS
public static final String GRID_LAYOUT_CLASS
- See Also:
- Constant Field Values
-
HEADER_CLASS
public static final String HEADER_CLASS
- See Also:
- Constant Field Values
-
FOOTER_CLASS
public static final String FOOTER_CLASS
- See Also:
- Constant Field Values
-
CONTENT_CLASS
public static final String CONTENT_CLASS
- See Also:
- Constant Field Values
-
BUTTON_CONTAINER_CLASS
public static final String BUTTON_CONTAINER_CLASS
- See Also:
- Constant Field Values
-
BUTTON_CLASS
public static final String BUTTON_CLASS
- See Also:
- Constant Field Values
-
LIST_LAYOUT_CONTAINER_CLASS
public static final String LIST_LAYOUT_CONTAINER_CLASS
- See Also:
- Constant Field Values
-
ROW_CLASS
public static final String ROW_CLASS
- See Also:
- Constant Field Values
-
GRID_LAYOUT_ROW_CLASS
public static final String GRID_LAYOUT_ROW_CLASS
- See Also:
- Constant Field Values
-
FLEX_GRID_LAYOUT_ROW_CLASS
public static final String FLEX_GRID_LAYOUT_ROW_CLASS
- See Also:
- Constant Field Values
-
GRID_LAYOUT_COLUMN_CLASS
public static final String GRID_LAYOUT_COLUMN_CLASS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBehaviorEventMapping
public Map<String,Class<? extends javax.faces.event.BehaviorEvent>> getBehaviorEventMapping()
-
getEventNames
public Collection<String> getEventNames()
- Specified by:
getEventNames
in interfacejavax.faces.component.behavior.ClientBehaviorHolder
- Overrides:
getEventNames
in classjavax.faces.component.UIComponentBase
-
isLayoutRequest
public boolean isLayoutRequest(javax.faces.context.FacesContext context)
-
isPaginationRequest
public boolean isPaginationRequest(javax.faces.context.FacesContext context)
- Overrides:
isPaginationRequest
in classUIPageableData
-
queueEvent
public void queueEvent(javax.faces.event.FacesEvent event)
- Overrides:
queueEvent
in classjavax.faces.component.UIData
-
getGridItem
public DataViewGridItem getGridItem()
-
getListItem
public DataViewListItem getListItem()
-
findViewItems
public void findViewItems()
-
loadLazyData
public void loadLazyData()
-
saveState
public Object saveState(javax.faces.context.FacesContext context)
-
reset
public void reset()
-
resetMultiViewState
public void resetMultiViewState()
-
restoreMultiViewState
public void restoreMultiViewState()
-
getMultiViewState
public DataViewState getMultiViewState(boolean create)
-
-