kom.tools.web
Class ObservableVector

java.lang.Object
  |
  +--java.util.Observable
        |
        +--kom.tools.web.ObservableVector

public class ObservableVector
extends java.util.Observable


Field Summary
protected  java.util.Vector data
          Vector of Objects
 
Fields inherited from class java.util.Observable
changed, obs
 
Constructor Summary
ObservableVector()
          Default constructor.
 
Method Summary
 void addElement(java.lang.Object element)
          Adds an element to the vector and notifies its observers, passing the vector as parameter.
 java.lang.Object getObject()
          Implements Observable.getObject()
 void removeElement(java.lang.Object element)
          Removes an element from the vector and notifies its observers, passing the vector as parameter.
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

data

protected java.util.Vector data
Vector of Objects
Constructor Detail

ObservableVector

public ObservableVector()
Default constructor. Sets up the data vector
Method Detail

addElement

public void addElement(java.lang.Object element)
Adds an element to the vector and notifies its observers, passing the vector as parameter.
Parameters:
element - Object to be added

removeElement

public void removeElement(java.lang.Object element)
Removes an element from the vector and notifies its observers, passing the vector as parameter.
Parameters:
element - Object to be removed

getObject

public java.lang.Object getObject()
Implements Observable.getObject()
Returns:
the object vector (data)