|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Viewable
Interface defining what is Viewable.
for license details.
The copyright to this program is held by it's authors.
Method Summary | |
---|---|
void |
addView(Component component)
Add a view to the set. |
void |
addViewEventListener(ViewEventListener listener)
Adds a view event listener for notification of any changes to the view. |
void |
closeAll()
Close all the views. |
void |
closeOthers(Component component)
Close all the views but the one provided. |
Component |
getSelected()
Returns the top view. |
Component |
getView(int i)
Get the view by position. |
int |
getViewCount()
The number of views held by this layout. |
Collection<Component> |
getViews()
Get a snapshot of the views as a collection. |
void |
moveTo(AbstractViewLayout other)
Copies all the views from the one layout to the other |
void |
removeView(Component component)
Remove a view from the set. |
void |
removeViewEventListener(ViewEventListener listener)
Removes a view event listener. |
void |
select(Component component)
Find the view and select it. |
void |
updateTitle(Component component)
Update the title of the view. |
void |
visit(ViewVisitor visitor)
Visit every view in the order that they were added. |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
void addView(Component component)
void removeView(Component component)
Collection<Component> getViews()
void moveTo(AbstractViewLayout other)
other
- the other layoutvoid closeAll()
void closeOthers(Component component)
component
- the view that is to remain open.void visit(ViewVisitor visitor)
visitor
- The visitor for the viewvoid updateTitle(Component component)
component
- the component whose title is to be usedComponent getSelected()
void select(Component component)
component
- int getViewCount()
Component getView(int i)
i
- the index of the view
void addViewEventListener(ViewEventListener listener)
listener
- the listenervoid removeViewEventListener(ViewEventListener listener)
listener
- the listener
|
Copyright ? 2003-2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |