org.primefaces.extensions.component.timeline
Class TimelineUpdater

java.lang.Object
  extended by org.primefaces.extensions.component.timeline.TimelineUpdater
Direct Known Subclasses:
DefaultTimelineUpdater

public abstract class TimelineUpdater
extends java.lang.Object

Server-side API to update the Timeline's UI.

Since:
0.7
Version:
$Revision: 1.0 $
Author:
Oleg Varaksin / last modified by $Author: $

Field Summary
protected  java.lang.String id
          The same id of the Timeline component in terms of findComponent() as in getCurrentInstance(String)
 
Constructor Summary
TimelineUpdater()
           
 
Method Summary
abstract  void add(TimelineEvent event)
           
abstract  void clear()
           
abstract  void delete(int index)
           
static TimelineUpdater getCurrentInstance(java.lang.String id)
          Gets the current thread-safe TimelineUpdater instance by Id.
abstract  void select(int index)
           
abstract  void update(TimelineEvent event, int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.String id
The same id of the Timeline component in terms of findComponent() as in getCurrentInstance(String)

Constructor Detail

TimelineUpdater

public TimelineUpdater()
Method Detail

getCurrentInstance

public static TimelineUpdater getCurrentInstance(java.lang.String id)
Gets the current thread-safe TimelineUpdater instance by Id.

Parameters:
id - Id of the Timeline component in terms of findComponent()
Returns:
TimelineUpdater instance.
Throws:
javax.faces.FacesException - if the Timeline component can not be found by the given Id

add

public abstract void add(TimelineEvent event)

update

public abstract void update(TimelineEvent event,
                            int index)

delete

public abstract void delete(int index)

select

public abstract void select(int index)

clear

public abstract void clear()


Copyright © 2011-2013. All Rights Reserved.