|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A scaled-down set interface with listeners. This is basically a java.util.Set with several additional features: constraints on values, and listeners on state changes. Many applications will use the ModifiableObjectSet subinterface, which adds mutation methods.
This interface itself does not specify thread-safety semantics. The particular implementation or use in a larger interface should specify this. For example, standalone ObjectSets may be fully synchronized and thread-safe. ObjectSets related to AWT or Swing objects may require that all interaction be done on the AWT event thread.
Method Summary | |
void |
addObjectSetListener(ObjectSetListener listener)
Add an ObjectSetListener. |
boolean |
contains(Object obj)
Ask whether an object is present in the set. |
void |
removeObjectSetListener(ObjectSetListener listener)
Remove an ObjectSetListener. |
Methods inherited from interface com.virtuosotechnologies.lib.container.ObjectContainer |
getConstraints, getContentsAsArray, getSize |
Method Detail |
public boolean contains(Object obj)
obj
- object to test
public void addObjectSetListener(ObjectSetListener listener)
listener
- new listenerpublic void removeObjectSetListener(ObjectSetListener listener)
listener
- listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |