java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
org.primefaces.extensions.component.timeago.TimeAgo
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.Widget

public class TimeAgo extends javax.faces.component.UIComponentBase implements org.primefaces.component.api.Widget
TimeAgo component.
Since:
7.0.1
Author:
Jasper de Vries <jepsar@gmail.com>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
    static final String
     

    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
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected String
    format(String pattern, ZoneId zone)
     
    protected String
    format(LocalDateTime dateTime, String pattern, ZoneId zone)
     
    protected String
    format(OffsetDateTime dateTime, String pattern, ZoneId zone)
     
    protected String
    format(ZonedDateTime dateTime, String pattern, ZoneId zone)
     
    protected String
    format(Date value, String pattern, ZoneId zone)
     
    final String
     
    final String
     
     
     
     
     
     
     
    protected final ZoneId
     
     
    saveState(javax.faces.context.FacesContext context)
     
    void
    setLocale(Object locale)
     
    void
     
    void
    setStyleClass(String styleClass)
     
    void
    setTitlePattern(String titlePattern)
     
    void
     
    void
    setWidgetVar(String widgetVar)
     

    Methods inherited from class javax.faces.component.UIComponentBase

    addClientBehavior, addFacesListener, broadcast, 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, unsubscribeFromEvent

    Methods 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, visitTree

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.primefaces.component.api.Widget

    resolveWidgetVar, resolveWidgetVar
  • Field Details

  • Constructor Details

    • TimeAgo

      public TimeAgo()
  • Method Details

    • getFamily

      public String getFamily()
      Specified by:
      getFamily in class javax.faces.component.UIComponent
    • getValue

      public Object getValue()
    • setValue

      public void setValue(String value)
    • getWidgetVar

      public String getWidgetVar()
    • setWidgetVar

      public void setWidgetVar(String widgetVar)
    • getStyle

      public String getStyle()
    • setStyle

      public void setStyle(String style)
    • getStyleClass

      public String getStyleClass()
    • setStyleClass

      public void setStyleClass(String styleClass)
    • getLocale

      public Object getLocale()
    • setLocale

      public void setLocale(Object locale)
    • getTitlePattern

      public String getTitlePattern()
    • setTitlePattern

      public void setTitlePattern(String titlePattern)
    • calculateLocale

      public Locale calculateLocale()
    • formattedForJs

      public final String formattedForJs()
    • formattedForTitle

      public final String formattedForTitle()
    • getValueZoneId

      protected final ZoneId getValueZoneId()
    • format

      protected String format(String pattern, ZoneId zone)
    • format

      protected String format(Date value, String pattern, ZoneId zone)
    • format

      protected String format(ZonedDateTime dateTime, String pattern, ZoneId zone)
    • format

      protected String format(LocalDateTime dateTime, String pattern, ZoneId zone)
    • format

      protected String format(OffsetDateTime dateTime, String pattern, ZoneId zone)
    • saveState

      public Object saveState(javax.faces.context.FacesContext context)
      Specified by:
      saveState in interface javax.faces.component.StateHolder
      Overrides:
      saveState in class javax.faces.component.UIComponentBase