Class Timer
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
org.primefaces.extensions.component.timer.Timer
- All Implemented Interfaces:
EventListener,javax.faces.component.PartialStateHolder,javax.faces.component.StateHolder,javax.faces.component.TransientStateHolder,javax.faces.event.ComponentSystemEventListener,javax.faces.event.FacesListener,javax.faces.event.SystemEventListenerHolder,org.primefaces.component.api.AjaxSource,org.primefaces.component.api.Widget
public class Timer
extends javax.faces.component.UIComponentBase
implements org.primefaces.component.api.Widget, org.primefaces.component.api.AjaxSource
Timer component
- Author:
- f.strazzullo
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields 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_KEYFields inherited from interface org.primefaces.component.api.Widget
ATTR_WIDGET_VAR_PATTERN, CALLBACK_POST_CONSTRUCT, CALLBACK_POST_REFRESH, CALLBACK_PRE_DESTROY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbroadcast(javax.faces.event.FacesEvent event) getDelay()getForm()intjavax.el.MethodExpressiongetStyle()intgetTitle()booleanbooleanisAsync()booleanbooleanbooleanisGlobal()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleansaveState(javax.faces.context.FacesContext context) voidsetAsync(boolean async) voidsetAutoStart(boolean autoStart) voidvoidvoidvoidsetFormatFunction(String format) voidsetForward(boolean forward) voidsetGlobal(boolean global) voidsetIgnoreAutoUpdate(boolean ignoreAutoUpdate) voidsetIgnoreComponentNotFound(boolean ignoreComponentNotFound) voidsetImmediate(boolean immediate) voidsetInterval(int interval) voidsetListener(javax.el.MethodExpression listener) voidvoidsetOncomplete(String oncomplete) voidsetOnerror(String onerror) voidsetOnstart(String onstart) voidsetOnsuccess(String onsuccess) voidsetOntimercomplete(String oncomplete) voidsetOntimerstep(String onstep) voidsetPartialSubmit(boolean partialSubmit) voidsetPartialSubmitFilter(String partialSubmitFilter) voidsetProcess(String process) voidsetResetValues(boolean resetValues) voidsetSingleRun(boolean singleRun) voidvoidsetStyleClass(String styleClass) voidsetTimeout(int timeout) voidvoidvoidsetVisible(boolean visible) voidsetWidgetVar(String widgetVar) Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventMethods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTreeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.primefaces.component.api.Widget
resolveWidgetVar, resolveWidgetVar
-
Field Details
-
COMPONENT_TYPE
- See Also:
-
COMPONENT_FAMILY
- See Also:
-
STYLE_CLASS
- See Also:
-
-
Constructor Details
-
Timer
public Timer()
-
-
Method Details
-
getFamily
- Specified by:
getFamilyin classjavax.faces.component.UIComponent
-
calculateLocale
-
isSingleRun
public boolean isSingleRun() -
setSingleRun
public void setSingleRun(boolean singleRun) -
getTimeout
public int getTimeout()- Specified by:
getTimeoutin interfaceorg.primefaces.component.api.AjaxSource
-
setTimeout
public void setTimeout(int timeout) -
getInterval
public int getInterval() -
setInterval
public void setInterval(int interval) -
getWidgetVar
-
setWidgetVar
-
getUpdate
- Specified by:
getUpdatein interfaceorg.primefaces.component.api.AjaxSource
-
setUpdate
-
getListener
public javax.el.MethodExpression getListener() -
setListener
public void setListener(javax.el.MethodExpression listener) -
isImmediate
public boolean isImmediate() -
setImmediate
public void setImmediate(boolean immediate) -
getOnstart
- Specified by:
getOnstartin interfaceorg.primefaces.component.api.AjaxSource
-
setOnstart
-
getOncomplete
- Specified by:
getOncompletein interfaceorg.primefaces.component.api.AjaxSource
-
setOncomplete
-
getOntimercomplete
-
setOntimercomplete
-
getOntimerstep
-
setOntimerstep
-
getProcess
- Specified by:
getProcessin interfaceorg.primefaces.component.api.AjaxSource
-
setProcess
-
getOnerror
- Specified by:
getOnerrorin interfaceorg.primefaces.component.api.AjaxSource
-
setOnerror
-
getOnsuccess
- Specified by:
getOnsuccessin interfaceorg.primefaces.component.api.AjaxSource
-
setOnsuccess
-
isGlobal
public boolean isGlobal()- Specified by:
isGlobalin interfaceorg.primefaces.component.api.AjaxSource
-
setGlobal
public void setGlobal(boolean global) -
getDelay
- Specified by:
getDelayin interfaceorg.primefaces.component.api.AjaxSource
-
setDelay
-
isAsync
public boolean isAsync()- Specified by:
isAsyncin interfaceorg.primefaces.component.api.AjaxSource
-
setAsync
public void setAsync(boolean async) -
isAutoStart
public boolean isAutoStart() -
setAutoStart
public void setAutoStart(boolean autoStart) -
isPartialSubmit
public boolean isPartialSubmit()- Specified by:
isPartialSubmitin interfaceorg.primefaces.component.api.AjaxSource
-
setPartialSubmit
public void setPartialSubmit(boolean partialSubmit) -
isResetValues
public boolean isResetValues()- Specified by:
isResetValuesin interfaceorg.primefaces.component.api.AjaxSource
-
setResetValues
public void setResetValues(boolean resetValues) -
isIgnoreAutoUpdate
public boolean isIgnoreAutoUpdate()- Specified by:
isIgnoreAutoUpdatein interfaceorg.primefaces.component.api.AjaxSource
-
setIgnoreAutoUpdate
public void setIgnoreAutoUpdate(boolean ignoreAutoUpdate) -
isPartialSubmitSet
public boolean isPartialSubmitSet()- Specified by:
isPartialSubmitSetin interfaceorg.primefaces.component.api.AjaxSource
-
isResetValuesSet
public boolean isResetValuesSet()- Specified by:
isResetValuesSetin interfaceorg.primefaces.component.api.AjaxSource
-
isAjaxified
public boolean isAjaxified()- Specified by:
isAjaxifiedin interfaceorg.primefaces.component.api.AjaxSource
-
getStyle
-
setFormat
-
getFormat
-
setFormatFunction
-
getFormatFunction
-
setStyle
-
getStyleClass
-
setStyleClass
-
getTitle
-
setTitle
-
isVisible
public boolean isVisible() -
setVisible
public void setVisible(boolean visible) -
isForward
public boolean isForward() -
setForward
public void setForward(boolean forward) -
getLocale
-
setLocale
-
getPartialSubmitFilter
- Specified by:
getPartialSubmitFilterin interfaceorg.primefaces.component.api.AjaxSource
-
setPartialSubmitFilter
-
getForm
- Specified by:
getFormin interfaceorg.primefaces.component.api.AjaxSource
-
setForm
-
broadcast
public void broadcast(javax.faces.event.FacesEvent event) - Overrides:
broadcastin classjavax.faces.component.UIComponentBase
-
isIgnoreComponentNotFound
public boolean isIgnoreComponentNotFound()- Specified by:
isIgnoreComponentNotFoundin interfaceorg.primefaces.component.api.AjaxSource
-
setIgnoreComponentNotFound
public void setIgnoreComponentNotFound(boolean ignoreComponentNotFound) -
saveState
- Specified by:
saveStatein interfacejavax.faces.component.StateHolder- Overrides:
saveStatein classjavax.faces.component.UIComponentBase
-