org.apache.myfaces.tobago.component
Class UIData

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIData
              extended by org.apache.myfaces.tobago.component.UIData
All Implemented Interfaces:
NamingContainer, StateHolder, AjaxComponent, SheetStateChangeSource, SortActionSource
Direct Known Subclasses:
UIDataFixTobago931

public class UIData
extends UIData
implements SheetStateChangeSource, SortActionSource, AjaxComponent


Field Summary
static java.lang.String ATTR_SCROLL_POSITION
           
static java.lang.String COMPONENT_TYPE
           
static int DEFAULT_DIRECT_LINK_COUNT
           
static int DEFAULT_ROW_COUNT
           
static java.lang.String FACET_SORTER
           
static java.lang.String MULTI
           
static java.lang.String NONE
           
static java.lang.String SINGLE
           
static java.lang.String SINGLE_OR_NONE
           
static java.lang.String SORTER_ID
           
 
Fields inherited from class javax.faces.component.UIData
COMPONENT_FAMILY
 
Fields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR
 
Constructor Summary
UIData()
           
 
Method Summary
 void addStateChangeListener(SheetStateChangeListener listener)
           
 void broadcast(FacesEvent facesEvent)
           
 void encodeAjax(FacesContext facesContext)
           
 void encodeBegin(FacesContext facesContext)
           
 void encodeEnd(FacesContext facesContext)
           
 UIComponent findComponent(java.lang.String searchId)
           
 java.util.List<UIColumn> getAllColumns()
           
 LayoutTokens getColumnLayout()
           
 java.lang.String getColumns()
           
 java.lang.Integer getDirectLinkCount()
           
 int getLast()
           
 int getLastPageIndex()
           
 int getPage()
           
 int getPages()
           
 java.util.List<UIComponent> getRenderedChildrenOf(UIColumn column)
           
 java.util.List<UIColumn> getRenderedColumns()
           
 int getRows()
           
 java.lang.Integer[] getScrollPosition()
           
 java.lang.String getSelectable()
           
 SheetState getSheetState(FacesContext facesContext)
           
 java.lang.String getShowDirectLinks()
           
 java.lang.String getShowPageRange()
           
 java.lang.String getShowRowRange()
           
 MethodBinding getSortActionListener()
           
 MethodBinding getStateChangeListener()
           
 SheetStateChangeListener[] getStateChangeListeners()
           
 java.util.List<java.lang.Integer> getWidthList()
           
 boolean hasRowCount()
           
 boolean isAtBeginning()
           
 boolean isAtEnd()
           
 boolean isShowHeader()
           
 void processAjax(FacesContext facesContext)
           
 void processDecodes(FacesContext context)
           
 void processUpdates(FacesContext context)
           
 void queueEvent(FacesEvent facesEvent)
           
 void removeStateChangeListener(SheetStateChangeListener listener)
           
 void resetColumnWidths()
          Remove the (by user) resized column widths.
 void restoreState(FacesContext context, java.lang.Object savedState)
           
 java.lang.Object saveState(FacesContext context)
           
 void setColumns(java.lang.String columns)
           
 void setDirectLinkCount(java.lang.Integer directLinkCount)
           
 void setRows(int rows)
           
 void setSelectable(java.lang.String selectable)
           
 void setShowDirectLinks(java.lang.String showDirectLinks)
           
 void setShowHeader(boolean showHeader)
           
 void setShowPageRange(java.lang.String showPageRange)
           
 void setShowRowRange(java.lang.String showRowRange)
           
 void setSortActionListener(MethodBinding sortActionListener)
           
 void setState(SheetState state)
           
 void setStateChangeListener(MethodBinding stateChangeListener)
           
 
Methods inherited from class javax.faces.component.UIData
getClientId, getFamily, getFirst, getFooter, getHeader, getRowCount, getRowData, getRowIndex, getValue, getVar, isRowAvailable, processValidators, setFirst, setFooter, setHeader, setRowIndex, setValue, setValueBinding, setVar
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, decode, encodeChildren, getAttributes, getChildCount, getChildren, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_TYPE

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

FACET_SORTER

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

SORTER_ID

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

ATTR_SCROLL_POSITION

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

NONE

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

SINGLE

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

SINGLE_OR_NONE

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

MULTI

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

DEFAULT_DIRECT_LINK_COUNT

public static final int DEFAULT_DIRECT_LINK_COUNT
See Also:
Constant Field Values

DEFAULT_ROW_COUNT

public static final int DEFAULT_ROW_COUNT
See Also:
Constant Field Values
Constructor Detail

UIData

public UIData()
Method Detail

resetColumnWidths

public void resetColumnWidths()
Remove the (by user) resized column widths. An application may provide a button to access it. Since 1.0.26.


encodeBegin

public void encodeBegin(FacesContext facesContext)
                 throws java.io.IOException
Overrides:
encodeBegin in class UIData
Throws:
java.io.IOException

encodeEnd

public void encodeEnd(FacesContext facesContext)
               throws java.io.IOException
Overrides:
encodeEnd in class UIData
Throws:
java.io.IOException

processDecodes

public void processDecodes(FacesContext context)
Overrides:
processDecodes in class UIData

getShowRowRange

public java.lang.String getShowRowRange()

setShowRowRange

public void setShowRowRange(java.lang.String showRowRange)

getShowPageRange

public java.lang.String getShowPageRange()

setShowPageRange

public void setShowPageRange(java.lang.String showPageRange)

getColumns

public java.lang.String getColumns()

setColumns

public void setColumns(java.lang.String columns)

getShowDirectLinks

public java.lang.String getShowDirectLinks()

setShowDirectLinks

public void setShowDirectLinks(java.lang.String showDirectLinks)

getSelectable

public java.lang.String getSelectable()

setSelectable

public void setSelectable(java.lang.String selectable)

getDirectLinkCount

public java.lang.Integer getDirectLinkCount()

setDirectLinkCount

public void setDirectLinkCount(java.lang.Integer directLinkCount)

setState

public void setState(SheetState state)

getSheetState

public SheetState getSheetState(FacesContext facesContext)

getColumnLayout

public LayoutTokens getColumnLayout()

getLast

public int getLast()

getPage

public int getPage()

getPages

public int getPages()

getRenderedChildrenOf

public java.util.List<UIComponent> getRenderedChildrenOf(UIColumn column)

isAtBeginning

public boolean isAtBeginning()

hasRowCount

public boolean hasRowCount()

isAtEnd

public boolean isAtEnd()

getLastPageIndex

public int getLastPageIndex()

processUpdates

public void processUpdates(FacesContext context)
Overrides:
processUpdates in class UIData

saveState

public java.lang.Object saveState(FacesContext context)
Specified by:
saveState in interface StateHolder
Overrides:
saveState in class UIData

restoreState

public void restoreState(FacesContext context,
                         java.lang.Object savedState)
Specified by:
restoreState in interface StateHolder
Overrides:
restoreState in class UIData

getAllColumns

public java.util.List<UIColumn> getAllColumns()

getRenderedColumns

public java.util.List<UIColumn> getRenderedColumns()

getSortActionListener

public MethodBinding getSortActionListener()
Specified by:
getSortActionListener in interface SortActionSource

setSortActionListener

public void setSortActionListener(MethodBinding sortActionListener)
Specified by:
setSortActionListener in interface SortActionSource

queueEvent

public void queueEvent(FacesEvent facesEvent)
Overrides:
queueEvent in class UIData

broadcast

public void broadcast(FacesEvent facesEvent)
               throws AbortProcessingException
Overrides:
broadcast in class UIData
Throws:
AbortProcessingException

addStateChangeListener

public void addStateChangeListener(SheetStateChangeListener listener)
Specified by:
addStateChangeListener in interface SheetStateChangeSource

getStateChangeListeners

public SheetStateChangeListener[] getStateChangeListeners()
Specified by:
getStateChangeListeners in interface SheetStateChangeSource

removeStateChangeListener

public void removeStateChangeListener(SheetStateChangeListener listener)
Specified by:
removeStateChangeListener in interface SheetStateChangeSource

getStateChangeListener

public MethodBinding getStateChangeListener()
Specified by:
getStateChangeListener in interface SheetStateChangeSource

setStateChangeListener

public void setStateChangeListener(MethodBinding stateChangeListener)
Specified by:
setStateChangeListener in interface SheetStateChangeSource

getWidthList

public java.util.List<java.lang.Integer> getWidthList()

getRows

public int getRows()
Overrides:
getRows in class UIData

setRows

public void setRows(int rows)
Overrides:
setRows in class UIData

isShowHeader

public boolean isShowHeader()

setShowHeader

public void setShowHeader(boolean showHeader)

encodeAjax

public void encodeAjax(FacesContext facesContext)
                throws java.io.IOException
Specified by:
encodeAjax in interface AjaxComponent
Throws:
java.io.IOException

processAjax

public void processAjax(FacesContext facesContext)
                 throws java.io.IOException
Specified by:
processAjax in interface AjaxComponent
Throws:
java.io.IOException

getScrollPosition

public java.lang.Integer[] getScrollPosition()

findComponent

public UIComponent findComponent(java.lang.String searchId)
Overrides:
findComponent in class UIComponentBase


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.