Constructor and Description |
---|
ViewableDefaultImpl(EventType eventType) |
Modifier and Type | Method and Description |
---|---|
View |
addView(View view)
Add a view to the viewable object.
|
EventType |
getEventType()
Provides metadata information about the type of object the event collection contains.
|
View[] |
getViews()
Returns all added views.
|
boolean |
hasViews()
Test is there are any views to the Viewable.
|
Iterator<EventBean> |
iterator()
Allows iteration through all elements in this event collection.
|
void |
removeAllViews()
Remove all views.
|
boolean |
removeView(View view)
Remove a view.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ViewableDefaultImpl(EventType eventType)
public View addView(View view)
Viewable
public View[] getViews()
Viewable
public boolean removeView(View view)
Viewable
removeView
in interface Viewable
view
- to removepublic void removeAllViews()
Viewable
removeAllViews
in interface Viewable
public boolean hasViews()
Viewable
public EventType getEventType()
EventCollection
getEventType
in interface EventCollection
public Iterator<EventBean> iterator()
EventCollection
iterator
in interface EventCollection
iterator
in interface Iterable<EventBean>