|
|
Package com.dassault_systemes.catweb.base.catlet |
Class CSO
|
Class Hierarchy |
java.lang.Object | +-com.dassault_systemes.catweb.base.catlet.CSO
Class Location |
Class Description |
public class CSO
The container of Current Selection Object.
Field Summary |
Constructor Summary |
CSO() |
Method Summary |
void | addElement(Object element) |
void | removeElement(Object element) |
void | empty() |
void | replace(Object element) |
int | getSize() |
Object | getElement(int index) |
Object[] | getElements() |
int | locate(Object element) |
void | addCSOListener(CSOListener l) |
void | removeCSOListener(CSOListener l) |
void | fireCSOEvent(int type, Object[] objects) |
Field Detail |
Constructor Detail |
CSO()Default constructor
Method Detail |
void addElement(Object element)Adds an element in the CSO. If this element is already in CSO nothing is done. A CSOEvent is fired to warn a new element has been added in cso
void removeElement(Object element)Removes an element from CSO. A CSOEvent is fired to warn an element has been removed from the CSO
void empty()Removes all elements from CSO. An event is fired to warn that all elements have been removed from the CSO
void replace(Object element)Replaces all elements in the CSO by the specified element. A CSO event is fired to warn that an element has replaced the current selection in CSO
int getSize()Returns the number of elements contained in the CSO
Object getElement(int index)Returns the element located at the specified index. Returns null if index is not valid
Object[] getElements()Returns all the elements contained in the CSO.
int locate(Object element)Returns the position in CSO of the specified element. Returns -1 if element is not in CSO.
void addCSOListener(CSOListener l)Adds the specified listener to receive CSO events.
void removeCSOListener(CSOListener l)Removes the specified listener so that it no longer receives.
void fireCSOEvent(int type, Object[] objects)fire a CSOEvent constructed with the specified type and specified objects