Package com.dassault_systemes.catweb.base.catlet

   
Class CSO

 
Class Hierarchy
java.lang.Object
  |
  +-com.dassault_systemes.catweb.base.catlet.CSO
Class Location

Framework : PortalBase

Module : PLBbase

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

    CSO()

Default constructor


Method Detail

addCSOListener

    public synchronized void addCSOListener(CSOListener l)

Adds the specified listener to receive CSO events.


addElement

    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


empty

    public void empty()

Removes all elements from CSO. An event is fired to warn that all elements have been removed from the CSO


fireCSOEvent

    public void fireCSOEvent(int type, Object[] objects)

fire a CSOEvent constructed with the specified type and specified objects


getElement

    public Object getElement(int index)

Returns the element located at the specified index. Returns null if index is not valid


getElements

    public Object[] getElements()

Returns all the elements contained in the CSO.


getSize

    public int getSize()

Returns the number of elements contained in the CSO


locate

    public int locate(Object element)

Returns the position in CSO of the specified element. Returns -1 if element is not in CSO.


removeCSOListener

    public synchronized void removeCSOListener(CSOListener l)

Removes the specified listener so that it no longer receives.


removeElement

    public void removeElement(Object element)

Removes an element from CSO. A CSOEvent is fired to warn an element has been removed from the CSO


replace

    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



Copyright © 2000, Dassault Systèmes. All rights reserved