|
||||||||||
| 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.Atom
The Atom class is a widget type that may contain no other widgets. It is the most basic and primitive widget type. It is generally contained within a Container widget class.
An example of an Atom widget is a Radiobutton.
The Atom widget implements the Subject interface.
$Source: /cvsroot/spark/spark/source/java/net/sourceforge/spark/framework/Atom.java,v $$Log: Atom.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.
Widget,
Subject,
Observer| Field Summary | |
private java.util.Vector |
m_vpObservers
List of this atoms Observers. |
| Fields inherited from class net.sourceforge.spark.framework.Widget |
ID, TYPE |
| Constructor Summary | |
Atom(java.lang.String id,
java.lang.String type)
Create a new Atom object with the given id. |
|
| Method Summary | |
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. |
| 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 |
| Field Detail |
private java.util.Vector m_vpObservers
| Constructor Detail |
public Atom(java.lang.String id,
java.lang.String type)
id - The id for the widget.| Method Detail |
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 | |||||||||