|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIPanel
org.apache.myfaces.custom.datascroller.AbstractHtmlDataScroller
public abstract class AbstractHtmlDataScroller
Scroller for UIData components eg. dataTable Must be nested inside footer facet of dataTable OR for attribute must be given so that corresponding uiData can be found. Unless otherwise specified, all attributes accept static values or EL expressions. A component which works together with a UIData component to allow a user to view a large list of data one "page" at a time, and navigate between pages.
Field Summary | |
---|---|
static String |
COMPONENT_FAMILY
|
static String |
COMPONENT_TYPE
|
static String |
FACET_FAST_FORWARD
|
static String |
FACET_FAST_REWIND
|
static String |
FACET_FIRST
|
static String |
FACET_LAST
|
static String |
FACET_NEXT
|
static String |
FACET_PREVIOUS
|
Fields inherited from interface org.apache.myfaces.component.UserRoleAware |
---|
ENABLED_ON_USER_ROLE_ATTR, VISIBLE_ON_USER_ROLE_ATTR |
Fields inherited from interface org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable |
---|
DISPLAY_VALUE_ONLY_ATTR, DISPLAY_VALUE_ONLY_STYLE_ATTR, DISPLAY_VALUE_ONLY_STYLE_CLASS_ATTR |
Constructor Summary | |
---|---|
AbstractHtmlDataScroller()
|
Method Summary | |
---|---|
void |
addActionListener(javax.faces.event.ActionListener listener)
|
void |
broadcast(javax.faces.event.FacesEvent event)
Invoke any action listeners attached to this class. |
protected void |
broadcastToActionListener(ScrollerActionEvent event)
|
protected javax.faces.component.UIData |
findUIData()
Find the UIData component associated with this scroller. |
javax.faces.el.MethodBinding |
getAction()
|
javax.faces.el.MethodBinding |
getActionListener()
MethodBinding pointing at method acception an ActionEvent with return type void. |
javax.faces.event.ActionListener[] |
getActionListeners()
|
String |
getClientId(javax.faces.context.FacesContext context)
|
abstract int |
getColspan()
standard html colspan attribute for table cell |
abstract String |
getDisplayedRowsCountVar()
A parameter name, under which the actual displayed rows count is set in request scope similar to the var parameter. |
javax.faces.component.UIComponent |
getFastForward()
|
abstract String |
getFastfStyleClass()
style-class for data-scroller fast-forward-element |
javax.faces.component.UIComponent |
getFastRewind()
|
abstract String |
getFastrStyleClass()
style-class for data-scroller fast-rewind-element |
abstract int |
getFastStep()
step (pages) used for fastforward and fastrewind |
javax.faces.component.UIComponent |
getFirst()
|
int |
getFirstRow()
|
abstract String |
getFirstRowIndexVar()
A parameter name, under which the actual first displayed row index is set in request scope similar to the var parameter. |
abstract String |
getFirstStyleClass()
style-class for data-scroller first-element |
abstract String |
getFor()
The JSF id of a UIData component that this scroller will affect. |
javax.faces.component.UIComponent |
getLast()
|
abstract String |
getLastRowIndexVar()
A parameter name, under which the actual last displayed row index is set in request scope similar to the var parameter. |
abstract String |
getLastStyleClass()
style-class for data-scroller last-element |
abstract String |
getLayout()
The layout this scroller should render with. |
javax.faces.component.UIComponent |
getNext()
|
abstract String |
getNextStyleClass()
style-class for dataScroller next-element |
abstract String |
getOnclick()
HTML: Script to be invoked when the element is clicked. |
abstract String |
getOndblclick()
HTML: Script to be invoked when the element is double-clicked. |
int |
getPageCount()
|
abstract String |
getPageCountVar()
A parameter name, under which the actual page count is set in request scope similar to the var parameter. |
int |
getPageIndex()
|
abstract String |
getPageIndexVar()
A parameter name, under which the actual page index is set in request scope similar to the var parameter. |
abstract String |
getPaginatorActiveColumnClass()
styleClass for paginator's column with pageIndex = currentPageIndex |
abstract String |
getPaginatorActiveColumnStyle()
style for paginator's column with pageIndex = currentPageIndex |
abstract String |
getPaginatorColumnClass()
styleClass for paginator's column |
abstract String |
getPaginatorColumnStyle()
style for paginator's column |
abstract int |
getPaginatorMaxPages()
The maximum amount of pages to be displayed in the paginator. |
abstract String |
getPaginatorTableClass()
styleclass for pagingator |
abstract String |
getPaginatorTableStyle()
style for pagingator |
javax.faces.component.UIComponent |
getPrevious()
|
abstract String |
getPreviousStyleClass()
style-class for data-scroller previous-element |
boolean |
getRendersChildren()
|
int |
getRowCount()
|
int |
getRows()
|
abstract String |
getRowsCountVar()
A parameter name, under which the actual rows count is set in request scope similar to the var parameter. |
javax.faces.component.UIData |
getUIData()
|
abstract boolean |
isDisableFacetLinksIfFirstPage()
If the dataScroller is on the first page (index is at 1), links for first, prev and fastprev are disabled. |
abstract boolean |
isDisableFacetLinksIfLastPage()
If the dataScroller is on the last page (index is at pagecount), links for last, next and fastnext are disabled. |
boolean |
isDisplayValueOnly()
|
abstract boolean |
isImmediate()
True means that the default ActionListener should be executed immediately (i.e. |
boolean |
isListLayout()
|
abstract boolean |
isPaginator()
If set true, then the paginator gets rendered |
abstract boolean |
isPaginatorRenderLinkForActive()
'true' - render a link for the paginator's column with pageIndex = currentPageIndex. |
boolean |
isRendered()
|
abstract boolean |
isRenderFacetLinksIfFirstPage()
If the dataScroller is on the first page (index is at 1), links for first, prev and fastprev are rendered. |
abstract boolean |
isRenderFacetLinksIfLastPage()
If the dataScroller is on the last page (index is at pagecount), links for last, next and fastnext are rendered. |
abstract boolean |
isRenderFacetsIfSinglePage()
If set to false, the facets aren't renderd if all the lines are contained on a single page. |
boolean |
isSetDisplayValueOnly()
|
boolean |
isSingleElementLayout()
|
void |
queueEvent(javax.faces.event.FacesEvent event)
Catch any attempts to queue events for this component, and ensure the event's phase is set appropriately. |
void |
removeActionListener(javax.faces.event.ActionListener listener)
|
void |
restoreState(javax.faces.context.FacesContext context,
Object state)
|
Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setAction(javax.faces.el.MethodBinding action)
|
void |
setActionListener(javax.faces.el.MethodBinding actionListener)
|
void |
setDisplayValueOnly(boolean displayValueOnly)
|
void |
setFastForward(javax.faces.component.UIComponent previous)
|
void |
setFastRewind(javax.faces.component.UIComponent previous)
|
void |
setFirst(javax.faces.component.UIComponent first)
|
protected void |
setFirst(javax.faces.component.UIData uiData,
int value)
|
void |
setLast(javax.faces.component.UIComponent last)
|
void |
setNext(javax.faces.component.UIComponent next)
|
void |
setPrevious(javax.faces.component.UIComponent previous)
|
Methods inherited from class javax.faces.component.UIPanel |
---|
getFamily |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
addFacesListener, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getValueBinding, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
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.ActionSource |
---|
setImmediate |
Methods inherited from interface org.apache.myfaces.component.UserRoleAware |
---|
getEnabledOnUserRole, getVisibleOnUserRole, setEnabledOnUserRole, setVisibleOnUserRole |
Methods inherited from interface org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable |
---|
getDisplayValueOnlyStyle, getDisplayValueOnlyStyleClass, setDisplayValueOnlyStyle, setDisplayValueOnlyStyleClass |
Methods inherited from interface org.apache.myfaces.component.DisplayValueOnlyAware |
---|
getDisplayValueOnly, getDisplayValueOnlyStyle, getDisplayValueOnlyStyleClass, setDisplayValueOnly, setDisplayValueOnlyStyle, setDisplayValueOnlyStyleClass |
Methods inherited from interface org.apache.myfaces.component.ForceIdAware |
---|
isForceId, isForceIdIndex, setForceId, setForceIdIndex |
Methods inherited from interface org.apache.myfaces.component.UniversalProperties |
---|
getDir, getLang, getTitle |
Methods inherited from interface org.apache.myfaces.component.StyleAware |
---|
getStyle, getStyleClass |
Field Detail |
---|
public static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
public static final String FACET_FIRST
public static final String FACET_PREVIOUS
public static final String FACET_NEXT
public static final String FACET_LAST
public static final String FACET_FAST_FORWARD
public static final String FACET_FAST_REWIND
Constructor Detail |
---|
public AbstractHtmlDataScroller()
Method Detail |
---|
public String getClientId(javax.faces.context.FacesContext context)
getClientId
in class javax.faces.component.UIComponentBase
public boolean isRendered()
isRendered
in class javax.faces.component.UIComponentBase
public boolean isSetDisplayValueOnly()
isSetDisplayValueOnly
in interface DisplayValueOnlyCapable
public boolean isDisplayValueOnly()
isDisplayValueOnly
in interface DisplayValueOnlyCapable
public void setDisplayValueOnly(boolean displayValueOnly)
setDisplayValueOnly
in interface DisplayValueOnlyCapable
public abstract String getLayout()
public abstract int getColspan()
public abstract String getOnclick()
public abstract String getOndblclick()
public boolean isListLayout()
public boolean isSingleElementLayout()
public void queueEvent(javax.faces.event.FacesEvent event)
When this component is marked "immediate", any ActionEvent will be marked to fire in the "apply request values" phase. When this component is not immediate the event will fire during the "invoke application" phase instead.
queueEvent
in class javax.faces.component.UIComponentBase
public void broadcast(javax.faces.event.FacesEvent event) throws javax.faces.event.AbortProcessingException
After listener invocation, the associated UIData's properties get updated:
broadcast
in class javax.faces.component.UIComponentBase
javax.faces.event.AbortProcessingException
protected void setFirst(javax.faces.component.UIData uiData, int value)
protected void broadcastToActionListener(ScrollerActionEvent event)
event
- public javax.faces.component.UIData getUIData()
public int getPageIndex()
public int getPageCount()
public int getRowCount()
public int getRows()
public int getFirstRow()
protected javax.faces.component.UIData findUIData()
If the "for" attribute is not null then that value is used to find the specified component by id. Both "relative" and "absolute" ids are allowed; see method UIComponent.findComponent for details.
If the "for" attribute is not defined, then this component is expected to be a child of a UIData component.
IllegalArgumentException
- if an associated UIData component
cannot be found.public void setFirst(javax.faces.component.UIComponent first)
public javax.faces.component.UIComponent getFirst()
public void setLast(javax.faces.component.UIComponent last)
public javax.faces.component.UIComponent getLast()
public void setNext(javax.faces.component.UIComponent next)
public javax.faces.component.UIComponent getNext()
public void setFastForward(javax.faces.component.UIComponent previous)
public javax.faces.component.UIComponent getFastForward()
public void setFastRewind(javax.faces.component.UIComponent previous)
public javax.faces.component.UIComponent getFastRewind()
public void setPrevious(javax.faces.component.UIComponent previous)
public javax.faces.component.UIComponent getPrevious()
public boolean getRendersChildren()
getRendersChildren
in class javax.faces.component.UIComponentBase
public javax.faces.el.MethodBinding getAction()
getAction
in interface javax.faces.component.ActionSource
ActionSource.getAction()
public void setAction(javax.faces.el.MethodBinding action)
setAction
in interface javax.faces.component.ActionSource
ActionSource.setAction(javax.faces.el.MethodBinding)
public void setActionListener(javax.faces.el.MethodBinding actionListener)
setActionListener
in interface javax.faces.component.ActionSource
ActionSource.setActionListener(javax.faces.el.MethodBinding)
public javax.faces.el.MethodBinding getActionListener()
getActionListener
in interface javax.faces.component.ActionSource
ActionSource.getActionListener()
public void addActionListener(javax.faces.event.ActionListener listener)
addActionListener
in interface javax.faces.component.ActionSource
ActionSource.addActionListener(javax.faces.event.ActionListener)
public javax.faces.event.ActionListener[] getActionListeners()
getActionListeners
in interface javax.faces.component.ActionSource
ActionSource.getActionListeners()
public void removeActionListener(javax.faces.event.ActionListener listener)
removeActionListener
in interface javax.faces.component.ActionSource
ActionSource.removeActionListener(javax.faces.event.ActionListener)
public Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIComponentBase
public void restoreState(javax.faces.context.FacesContext context, Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.UIComponentBase
public abstract String getFor()
public abstract int getFastStep()
public abstract String getPageIndexVar()
public abstract String getPageCountVar()
public abstract String getRowsCountVar()
public abstract String getDisplayedRowsCountVar()
public abstract String getFirstRowIndexVar()
public abstract String getLastRowIndexVar()
public abstract boolean isPaginator()
public abstract int getPaginatorMaxPages()
public abstract String getPaginatorTableClass()
public abstract String getPaginatorTableStyle()
public abstract String getPaginatorColumnClass()
public abstract String getPaginatorColumnStyle()
public abstract String getPaginatorActiveColumnClass()
public abstract boolean isPaginatorRenderLinkForActive()
public abstract String getFirstStyleClass()
public abstract String getLastStyleClass()
public abstract String getPreviousStyleClass()
public abstract String getNextStyleClass()
public abstract String getFastfStyleClass()
public abstract String getFastrStyleClass()
public abstract String getPaginatorActiveColumnStyle()
public abstract boolean isRenderFacetsIfSinglePage()
public abstract boolean isImmediate()
isImmediate
in interface javax.faces.component.ActionSource
public abstract boolean isDisableFacetLinksIfFirstPage()
public abstract boolean isDisableFacetLinksIfLastPage()
public abstract boolean isRenderFacetLinksIfFirstPage()
public abstract boolean isRenderFacetLinksIfLastPage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |