public final class BufferView extends ViewSupport
EMPTY_VIEW_ARRAY
Constructor and Description |
---|
BufferView(int streamId)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
EventType |
getEventType()
Provides metadata information about the type of object the event collection contains.
|
FlushedEventBuffer |
getNewDataBuffer()
Returns the buffer for new data.
|
java.util.Iterator<EventBean> |
iterator()
Allows iteration through all elements in this event collection.
|
void |
setObserver(BufferObserver observer)
Set the observer for indicating new and old data.
|
void |
update(EventBean[] newData,
EventBean[] oldData)
Notify that data has been added or removed from the Viewable parent.
|
addView, addView, dumpChildViews, dumpUpdateParams, dumpUpdateParams, findDescendent, findViewIndex, getParent, getViews, hasViews, removeAllViews, removeView, removeView, setParent, updateChildren
public BufferView(int streamId)
streamId
- - number of the stream for which the view buffers the generated events.public void setObserver(BufferObserver observer)
observer
- to indicate new and old eventspublic final EventType getEventType()
EventCollection
public final java.util.Iterator<EventBean> iterator()
EventCollection
public final void update(EventBean[] newData, EventBean[] oldData)
View
newData
- is the new data that has been added to the parent viewoldData
- is the old data that has been removed from the parent viewpublic FlushedEventBuffer getNewDataBuffer()