|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--java.util.Vector
|
+--context.arch.subscriber.Callbacks
This class is a container for a group of callbacks. Callbacks can be added, removed, and found in the container.
| Field Summary | |
static java.lang.String |
CALLBACKS
Tag for a widget's callbacks |
| Fields inherited from class java.util.Vector |
capacityIncrement,
elementCount,
elementData |
| Fields inherited from class java.util.AbstractList |
modCount |
| Constructor Summary | |
Callbacks()
Empty constructor |
|
Callbacks(DataObject data)
Constructor that takes a DataObject as a parameter. |
|
| Method Summary | |
void |
addCallback(Callback callback)
Adds the given Callback object to the container. |
void |
addCallback(java.lang.String name,
Attributes attributes)
Adds the given callback name and attributes to the container. |
void |
addCallbacks(Callbacks callbacks)
Adds the given Callbacks object to the container. |
Callback |
getCallback(java.lang.String name)
This method returns the Callback with the given name from this list of Callbacks. |
Callback |
getCallbackAt(int index)
Returns the Callback object at the given index |
boolean |
hasCallback(Callback callback)
Determines whether the given Callback object is in the container |
boolean |
hasCallback(java.lang.String name)
Determines whether a callback with the given name is in the container |
boolean |
hasCallback(java.lang.String name,
Attributes attributes)
Determines whether the given callback name and attributes are in the container. |
int |
indexOfCallback(Callback callback)
Returns the index at which the Callback object occurs |
int |
indexOfCallback(java.lang.String name,
Attributes attributes)
Returns the index at which the given callback name and attributes occurs |
int |
numCallbacks()
Returns the number of Callbacks in the container return the number of Callbacks in the container |
java.lang.String |
toAString()
A printable version of this class. |
DataObject |
toDataObject()
Converts to a DataObject. |
| Methods inherited from class java.util.Vector |
add,
add,
addAll,
addAll,
addElement,
capacity,
clear,
clone,
contains,
containsAll,
copyInto,
elementAt,
elements,
ensureCapacity,
equals,
firstElement,
get,
hashCode,
indexOf,
indexOf,
insertElementAt,
isEmpty,
lastElement,
lastIndexOf,
lastIndexOf,
remove,
remove,
removeAll,
removeAllElements,
removeElement,
removeElementAt,
removeRange,
retainAll,
set,
setElementAt,
setSize,
size,
subList,
toArray,
toArray,
toString,
trimToSize |
| Methods inherited from class java.util.AbstractList |
iterator,
listIterator,
listIterator |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final java.lang.String CALLBACKS
| Constructor Detail |
public Callbacks()
public Callbacks(DataObject data)
data - DataObject that contains the callback info| Method Detail |
public DataObject toDataObject()
public void addCallback(Callback callback)
callback - Callback to add
public void addCallback(java.lang.String name,
Attributes attributes)
name - Name of the callback to addattributes - Attributes of the callback being addedpublic void addCallbacks(Callbacks callbacks)
callbacks - Callbacks to addpublic Callback getCallbackAt(int index)
index - Index into the containerpublic boolean hasCallback(Callback callback)
call - Callback to check
public boolean hasCallback(java.lang.String name,
Attributes attributes)
name - Name of the callback to checkattributes - Attributes of the callback to checkpublic boolean hasCallback(java.lang.String name)
name - Name of the callback to look forpublic int indexOfCallback(Callback callback)
callback - Callback to look for
public int indexOfCallback(java.lang.String name,
Attributes attributes)
name - Name of the callback to look forattributes - Attributes of the callback to look forpublic int numCallbacks()
public Callback getCallback(java.lang.String name)
name - of the Callback to returnpublic java.lang.String toAString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||