|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.spark.framework.Widget
net.sourceforge.spark.framework.Container
The Container widget class has the ability to contain other Atom's and/or other Containers. It may itself has some sort of visible characteristics or it may not.
The Container widget implements both Subject and Observer interfaces.
$Source: /cvsroot/spark/spark/source/java/net/sourceforge/spark/framework/Container.java,v $$Log: Container.java,v $ Revision 1.2 2005/07/24 04:03:28 afettes no message Revision 1.1 2005/07/24 03:55:32 afettes Initial commit to CVS.
Atom,
Widget,
Subject,
Observer| Field Summary | |
private java.util.Vector |
m_vpObservers
List of this atoms Observers. |
private java.util.Vector |
m_vpWidgets
List of this atoms Observers. |
| Fields inherited from class net.sourceforge.spark.framework.Widget |
ID, TYPE |
| Constructor Summary | |
Container(java.lang.String id,
java.lang.String type)
Create a new container object with the given id. |
|
| Method Summary | |
void |
addWidget(Widget in_widget)
Add a widget to this container. |
void |
attach(Observer in_observer)
The observer to be attached. |
void |
detach(Observer in_observer)
The observer to be detached. |
protected void |
notifyObservers()
Notify all observers of the state change. |
void |
removeWidget(Widget in_widget)
Remove a widget from this container. |
| Methods inherited from class net.sourceforge.spark.framework.Widget |
addCommand, getState, handleEvent, removeCommand, runCommands, setState |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sourceforge.spark.framework.Observer |
update |
| Field Detail |
private java.util.Vector m_vpObservers
private java.util.Vector m_vpWidgets
| Constructor Detail |
public Container(java.lang.String id,
java.lang.String type)
id - The id for the widget.| Method Detail |
public void addWidget(Widget in_widget)
in_widget - The widget to be added.public void removeWidget(Widget in_widget)
in_widget - The widget to be removed.public void attach(Observer in_observer)
attach in interface Subjectin_observer - The observer to add.public void detach(Observer in_observer)
detach in interface Subjectin_observer - The observer to remove.protected void notifyObservers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||