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()

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

    CSO()

Default constructor


Method Detail

addElement

    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


removeElement

    void removeElement(Object element)

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


empty

    void empty()

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


replace

    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


getSize

    int getSize()

Returns the number of elements contained in the CSO


getElement

    Object getElement(int index)

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


getElements

    Object[] getElements()

Returns all the elements contained in the CSO.


locate

    int locate(Object element)

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


addCSOListener

    void addCSOListener(CSOListener l)

Adds the specified listener to receive CSO events.


removeCSOListener

    void removeCSOListener(CSOListener l)

Removes the specified listener so that it no longer receives.


fireCSOEvent

    void fireCSOEvent(int type, Object[] objects)

fire a CSOEvent constructed with the specified type and specified objects



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