com::cosylab::gui::components::r2::JCheckList Class Reference

List of all members.

Classes

class  CheckListRenderer
class  CLKeyAdapter
class  CLMouseAdapter

Public Member Functions

 JCheckList ()
 JCheckList (java.lang.Object[] listData)
 JCheckList (java.util.Vector listData)
boolean[] getChecked ()
Object[] getCheckedItems (boolean isChecked)
void setChecked (boolean[] value)

Protected Member Functions

void checkboxAction ()

Detailed Description

An extension of javax.swing.JList that displays a list with checkboxes before each item, allowing the user to select only specific items. The list is represented by specialized data model, that wraps the objects put into it by an object that provides boolean property. This indicates the checked state of the items. This is provided transparently. Any object can be put into the list, text displayed in the list is obtained by calling that objects toString() method. Creation date: (24-Oct-01 1:13:20 PM)

Author:
:

Constructor & Destructor Documentation

com::cosylab::gui::components::r2::JCheckList::JCheckList (  )  [inline]

Constructs new JCheckedList.

com::cosylab::gui::components::r2::JCheckList::JCheckList ( java.lang.Object[]  listData  )  [inline]

Constructs new JCheckedList.

Parameters:
listData java.lang.Object[]
com::cosylab::gui::components::r2::JCheckList::JCheckList ( java.util.Vector  listData  )  [inline]

Constructs new JCheckedList.

Parameters:
listData java.util.Vector

Member Function Documentation

void com::cosylab::gui::components::r2::JCheckList::checkboxAction (  )  [inline, protected]

Internal helper method toggles the checked state of the item.

Creation date: (12/25/2001 18:34:55)

boolean [] com::cosylab::gui::components::r2::JCheckList::getChecked (  )  [inline]

Returns array containing boolean values of the checked states of the items in this list.

Creation date: (1/2/2002 22:50:19)

Returns:
boolean[]

References com::cosylab::gui::components::r2::CheckListModel::isChecked().

Referenced by com::cosylab::logging::settings::FilterChooserDialog::getChecked(), and com::cosylab::logging::settings::FieldChooserDialog::getChecked().

Object [] com::cosylab::gui::components::r2::JCheckList::getCheckedItems ( boolean  isChecked  )  [inline]

Returns an array of all the items that have the same state as the isChecked parameter. This is a utility method that allows selective retrieval of data in this list.

Parameters:
isChecked boolean
Returns:
Object[]

References com::cosylab::gui::components::r2::CheckListModel::add(), com::cosylab::gui::components::r2::CheckListModel::get(), and com::cosylab::gui::components::r2::CheckListModel::isChecked().

void com::cosylab::gui::components::r2::JCheckList::setChecked ( boolean[]  value  )  [inline]

Sets the checked state of the items in this list. The length of array must match the number of elements in this list.

Creation date: (1/2/2002 22:51:36)

Parameters:
value boolean[]

References com::cosylab::gui::components::r2::CheckListModel::setChecked().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2