|
||||||||||
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
@JSFComponent(name="t:dataScroller", clazz="org.apache.myfaces.custom.datascroller.HtmlDataScroller", tagClass="org.apache.myfaces.custom.datascroller.HtmlDataScrollerTag", defaultEventName="action") 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 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 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(org.apache.myfaces.custom.datascroller.ScrollerActionEvent event)
|
protected javax.faces.component.UIData |
findUIData()
Find the UIData component associated with this scroller. |
javax.faces.el.MethodBinding |
getAction()
|
javax.el.MethodExpression |
getActionExpression()
|
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 facesContext,
Object state)
|
Object |
saveState(javax.faces.context.FacesContext facesContext)
|
void |
setAction(javax.faces.el.MethodBinding action)
|
void |
setActionExpression(javax.el.MethodExpression 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 |
---|
addClientBehavior, addFacesListener, clearInitialState, decode, encodeAll, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getValueBinding, initialStateMarked, invokeOnComponent, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, visitTree |
Methods inherited from class javax.faces.component.UIComponent |
---|
getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getValueExpression, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent |
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 javax.faces.component.behavior.ClientBehaviorHolder |
---|
addClientBehavior, getClientBehaviors, getDefaultEventName, getEventNames |
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 org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable
public boolean isDisplayValueOnly()
isDisplayValueOnly
in interface org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable
public void setDisplayValueOnly(boolean displayValueOnly)
setDisplayValueOnly
in interface org.apache.myfaces.shared_tomahawk.component.DisplayValueOnlyCapable
@JSFProperty(defaultValue="table") public abstract String getLayout()
@JSFProperty(defaultValue="Integer.MIN_VALUE") public abstract int getColspan()
@JSFProperty(clientEvent="click") public abstract String getOnclick()
@JSFProperty(clientEvent="dblclick") 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(org.apache.myfaces.custom.datascroller.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)
@JSFFacet public javax.faces.component.UIComponent getFirst()
public void setLast(javax.faces.component.UIComponent last)
@JSFFacet public javax.faces.component.UIComponent getLast()
public void setNext(javax.faces.component.UIComponent next)
@JSFFacet public javax.faces.component.UIComponent getNext()
public void setFastForward(javax.faces.component.UIComponent previous)
@JSFFacet public javax.faces.component.UIComponent getFastForward()
public void setFastRewind(javax.faces.component.UIComponent previous)
@JSFFacet public javax.faces.component.UIComponent getFastRewind()
public void setPrevious(javax.faces.component.UIComponent previous)
@JSFFacet 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)
@JSFProperty(stateHolder=true, returnSignature="java.lang.Object", jspName="action", clientEvent="action") public javax.el.MethodExpression getActionExpression()
getActionExpression
in interface javax.faces.component.ActionSource2
public void setActionExpression(javax.el.MethodExpression action)
setActionExpression
in interface javax.faces.component.ActionSource2
public void setActionListener(javax.faces.el.MethodBinding actionListener)
setActionListener
in interface javax.faces.component.ActionSource
ActionSource.setActionListener(javax.faces.el.MethodBinding)
@JSFProperty(returnSignature="void", methodSignature="javax.faces.event.ActionEvent") 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 facesContext)
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIComponentBase
public void restoreState(javax.faces.context.FacesContext facesContext, Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.UIComponentBase
@JSFProperty public abstract String getFor()
@JSFProperty(defaultValue="Integer.MIN_VALUE") public abstract int getFastStep()
@JSFProperty public abstract String getPageIndexVar()
@JSFProperty public abstract String getPageCountVar()
public abstract String getRowsCountVar()
@JSFProperty public abstract String getDisplayedRowsCountVar()
@JSFProperty public abstract String getFirstRowIndexVar()
@JSFProperty public abstract String getLastRowIndexVar()
@JSFProperty(defaultValue="false") public abstract boolean isPaginator()
@JSFProperty(defaultValue="Integer.MIN_VALUE") public abstract int getPaginatorMaxPages()
@JSFProperty public abstract String getPaginatorTableClass()
@JSFProperty public abstract String getPaginatorTableStyle()
@JSFProperty public abstract String getPaginatorColumnClass()
@JSFProperty public abstract String getPaginatorColumnStyle()
@JSFProperty public abstract String getPaginatorActiveColumnClass()
@JSFProperty(defaultValue="true") public abstract boolean isPaginatorRenderLinkForActive()
@JSFProperty public abstract String getFirstStyleClass()
@JSFProperty public abstract String getLastStyleClass()
@JSFProperty public abstract String getPreviousStyleClass()
@JSFProperty public abstract String getNextStyleClass()
@JSFProperty public abstract String getFastfStyleClass()
@JSFProperty public abstract String getFastrStyleClass()
@JSFProperty public abstract String getPaginatorActiveColumnStyle()
@JSFProperty(defaultValue="true") public abstract boolean isRenderFacetsIfSinglePage()
@JSFProperty(defaultValue="false") public abstract boolean isImmediate()
isImmediate
in interface javax.faces.component.ActionSource
@JSFProperty(defaultValue="false") public abstract boolean isDisableFacetLinksIfFirstPage()
@JSFProperty(defaultValue="false") public abstract boolean isDisableFacetLinksIfLastPage()
@JSFProperty(defaultValue="true") public abstract boolean isRenderFacetLinksIfFirstPage()
@JSFProperty(defaultValue="true") public abstract boolean isRenderFacetLinksIfLastPage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |