|
|
|||||
| 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()
Default constructor |
| Method Summary |
| public synchronized void | addCSOListener(CSOListener l)
Adds the specified listener to receive CSO events. |
| public void | addElement(Object element)
Adds an element in the CSO. |
| public void | empty()
Removes all elements from CSO. |
| public void | fireCSOEvent(int type, Object[] objects)
fire a CSOEvent constructed with the specified type and specified objects |
| public Object | getElement(int index)
Returns the element located at the specified index. |
| public Object[] | getElements()
Returns all the elements contained in the CSO. |
| public int | getSize()
Returns the number of elements contained in the CSO |
| public int | locate(Object element)
Returns the position in CSO of the specified element. |
| public synchronized void | removeCSOListener(CSOListener l)
Removes the specified listener so that it no longer receives. |
| public void | removeElement(Object element)
Removes an element from CSO. |
| public void | replace(Object element)
Replaces all elements in the CSO by the specified element. |
| Field Detail |
| Constructor Detail |
CSO()
Default constructor
| Method Detail |
public synchronized void addCSOListener(CSOListener l)
Adds the specified listener to receive CSO events.
public 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
public void empty()
Removes all elements from CSO.
An event is fired to warn that all elements have been removed from the CSO
public void fireCSOEvent(int type, Object[] objects)
fire a CSOEvent constructed with the specified type and specified objects
public Object getElement(int index)
Returns the element located at the specified index.
Returns null if index is not valid
public Object[] getElements()
Returns all the elements contained in the CSO.
public int getSize()
Returns the number of elements contained in the CSO
public int locate(Object element)
Returns the position in CSO of the specified element.
Returns -1 if element is not in CSO.
public synchronized void removeCSOListener(CSOListener l)
Removes the specified listener so that it no longer receives.
public void removeElement(Object element)
Removes an element from CSO.
A CSOEvent is fired to warn an element has been removed from the CSO
public 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