Classes | |
| class | CheckListElement |
Public Member Functions | |
| CheckListModel () | |
| void | add (int index, Object element) |
| void | addElement (Object element) |
| boolean | contains (Object element) |
| void | copyInto (Object[] anArray) |
| Object | elementAt (int index) |
| Object | firstElement () |
| Object | get (int index) |
| Object | getElementAt (int index) |
| int | indexOf (Object element) |
| int | indexOf (Object element, int index) |
| void | insertElementAt (Object element, int index) |
| boolean | isChecked (int index) |
| Object | lastElement () |
| int | lastIndexOf (Object element) |
| int | lastIndexOf (Object element, int index) |
| Object | remove (int index) |
| boolean | removeElement (Object element) |
| Object | set (int index, Object element) |
| void | setChecked (int index, boolean value) |
| Object[] | toArray () |
| void | toggleChecked (int index) |
Protected Member Functions | |
| Object | convertFromModel (CheckListElement element) |
| CheckListElement | convertToModel (Object element) |
| CheckListElement | internalGet (int index) |
Data model used by JCheckList to store the checked state for each entry. The data model provides this functionality transparently. Each object that is added to the model will be wraped together with a boolean variable indicating its checked state. Model provides complete functionality of the javax.swing.DefaultListModel.
Creation date: (12/25/2001 16:27:43)
| com::cosylab::gui::components::r2::CheckListModel::CheckListModel | ( | ) | [inline] |
CheckListModel constructor comment.
| void com::cosylab::gui::components::r2::CheckListModel::add | ( | int | index, | |
| Object | element | |||
| ) | [inline] |
Adds element to the model, inserting it at the location specified by index.
Creation date: (12/25/2001 16:38:26)
| index | int Index of the element | |
| element | java.lang.Object element to insert. |
References convertToModel().
Referenced by com::cosylab::gui::components::r2::JCheckList::getCheckedItems().
| void com::cosylab::gui::components::r2::CheckListModel::addElement | ( | Object | element | ) | [inline] |
Appends element to the end of the list.
Creation date: (12/25/2001 16:43:03)
| element | Object element to add |
References convertToModel().
Referenced by com::cosylab::logging::settings::FilterChooserDialog::ButtonListener::actionPerformed(), com::cosylab::logging::settings::FilterChooserDialog::setupFields(), and com::cosylab::logging::settings::FieldChooserDialog::setupFields().
| boolean com::cosylab::gui::components::r2::CheckListModel::contains | ( | Object | element | ) | [inline] |
Returns whether the element is in the model.
Creation date: (12/25/2001 16:44:17)
| element | java.lang.Object |
References convertToModel().
| Object com::cosylab::gui::components::r2::CheckListModel::convertFromModel | ( | CheckListElement | element | ) | [inline, protected] |
Internal method to unwrap the element stored in CheckListElement.
Creation date: (12/25/2001 16:34:57)
| element | com.cosylab.gui.components.CheckListElement |
References com::cosylab::gui::components::r2::CheckListModel::CheckListElement::getElement().
Referenced by firstElement(), get(), lastElement(), lastIndexOf(), remove(), and set().
| CheckListElement com::cosylab::gui::components::r2::CheckListModel::convertToModel | ( | Object | element | ) | [inline, protected] |
Internal method to wrap the element to the list.
Creation date: (12/25/2001 16:30:33)
| item | java.lang.Object |
Referenced by add(), addElement(), contains(), indexOf(), insertElementAt(), lastIndexOf(), removeElement(), and set().
| void com::cosylab::gui::components::r2::CheckListModel::copyInto | ( | Object[] | anArray | ) | [inline] |
Copies the contents of this model into the array. Array must contain sufficient space.
Creation date: (12/25/2001 16:45:22)
| anArray | java.lang.Object[] |
Referenced by toArray().
| Object com::cosylab::gui::components::r2::CheckListModel::elementAt | ( | int | index | ) | [inline] |
Returns the element at the specified index.
Creation date: (12/25/2001 16:46:59)
| index | int |
| Object com::cosylab::gui::components::r2::CheckListModel::firstElement | ( | ) | [inline] |
Returns first element of the list.
Creation date: (12/25/2001 16:47:48)
References convertFromModel().
| Object com::cosylab::gui::components::r2::CheckListModel::get | ( | int | index | ) | [inline] |
Returns the element at the specified position.
Creation date: (12/25/2001 16:48:36)
| index | int |
References convertFromModel().
Referenced by com::cosylab::logging::settings::FilterChooserDialog::ButtonListener::actionPerformed(), com::cosylab::gui::components::r2::JCheckList::getCheckedItems(), com::cosylab::logging::settings::FilterChooserDialog::getFilters(), com::cosylab::gui::components::r2::ListSearchListener::keyTyped(), and com::cosylab::logging::settings::FilterChooserDialog::saveFilters().
| Object com::cosylab::gui::components::r2::CheckListModel::getElementAt | ( | int | index | ) | [inline] |
Returns element at the specified position.
Creation date: (12/25/2001 16:49:14)
| index | int |
| int com::cosylab::gui::components::r2::CheckListModel::indexOf | ( | Object | element, | |
| int | index | |||
| ) | [inline] |
Returns index of first occurence of the object after the specified index.
Creation date: (12/25/2001 16:59:13)
| element | java.lang.Object | |
| index | int |
References convertToModel().
| int com::cosylab::gui::components::r2::CheckListModel::indexOf | ( | Object | element | ) | [inline] |
Returns index of the object or -1 if the object is not in the list.
Creation date: (12/25/2001 16:58:29)
| element | java.lang.Object |
References convertToModel().
| void com::cosylab::gui::components::r2::CheckListModel::insertElementAt | ( | Object | element, | |
| int | index | |||
| ) | [inline] |
Inserts element to the specified position in the list.
Creation date: (12/25/2001 16:59:53)
| element | java.lang.Object | |
| index | int |
References convertToModel().
| CheckListElement com::cosylab::gui::components::r2::CheckListModel::internalGet | ( | int | index | ) | [inline, protected] |
Internal helper routine. Only performs type-cast on the internal element.
Creation date: (12/25/2001 18:20:16)
Referenced by isChecked(), setChecked(), and toggleChecked().
| boolean com::cosylab::gui::components::r2::CheckListModel::isChecked | ( | int | index | ) | [inline] |
Returns true if the element at the specified index is checked.
Creation date: (12/25/2001 18:19:40)
| index | int |
References internalGet(), and com::cosylab::gui::components::r2::CheckListModel::CheckListElement::isChecked().
Referenced by com::cosylab::logging::settings::FilterChooserDialog::ButtonListener::actionPerformed(), com::cosylab::logging::settings::FilterChooserDialog::applyFilters(), com::cosylab::gui::components::r2::JCheckList::getChecked(), com::cosylab::gui::components::r2::JCheckList::getCheckedItems(), and com::cosylab::logging::settings::FilterChooserDialog::saveFilters().
| Object com::cosylab::gui::components::r2::CheckListModel::lastElement | ( | ) | [inline] |
Returns the last element of the list.
Creation date: (12/25/2001 17:00:27)
References convertFromModel().
| int com::cosylab::gui::components::r2::CheckListModel::lastIndexOf | ( | Object | element, | |
| int | index | |||
| ) | [inline] |
Returns last occurence of the object in the list after specified index.
Creation date: (12/25/2001 17:01:50)
| element | java.lang.Object | |
| index | int |
References convertFromModel().
| int com::cosylab::gui::components::r2::CheckListModel::lastIndexOf | ( | Object | element | ) | [inline] |
Returns index of the last ocurrence of the object or -1 if there is no such entry in the list.
Creation date: (12/25/2001 17:01:09)
| element | java.lang.Object |
References convertToModel().
| Object com::cosylab::gui::components::r2::CheckListModel::remove | ( | int | index | ) | [inline] |
Removes element specified by index from the list.
Creation date: (12/25/2001 18:15:03)
| index | int |
References convertFromModel().
| boolean com::cosylab::gui::components::r2::CheckListModel::removeElement | ( | Object | element | ) | [inline] |
Removes the element from the list. If the element is not in the list, this method returns false.
Creation date: (12/25/2001 18:16:12)
| element | java.lang.Object |
References convertToModel().
| Object com::cosylab::gui::components::r2::CheckListModel::set | ( | int | index, | |
| Object | element | |||
| ) | [inline] |
Sets new value for the element at the specified index.
Creation date: (12/25/2001 18:17:13)
| index | int | |
| element | java.lang.Object |
References convertFromModel(), and convertToModel().
Referenced by com::cosylab::logging::settings::FilterChooserDialog::ButtonListener::actionPerformed().
| void com::cosylab::gui::components::r2::CheckListModel::setChecked | ( | int | index, | |
| boolean | value | |||
| ) | [inline] |
Sets the checked state of element at the specified index.
Creation date: (12/25/2001 18:21:42)
| index | int index of the element. | |
| value | boolean new checked state. |
References com::cosylab::gui::components::r2::CheckListModel::CheckListElement::getElement(), internalGet(), and com::cosylab::gui::components::r2::CheckListModel::CheckListElement::setChecked().
Referenced by com::cosylab::logging::settings::FilterChooserDialog::ButtonListener::actionPerformed(), com::cosylab::gui::components::r2::JCheckList::setChecked(), com::cosylab::logging::settings::FilterChooserDialog::setupFields(), and com::cosylab::logging::settings::FieldChooserDialog::setupFields().
| Object [] com::cosylab::gui::components::r2::CheckListModel::toArray | ( | ) | [inline] |
Returns contents of this list as an array.
Creation date: (12/25/2001 18:18:37)
References copyInto().
| void com::cosylab::gui::components::r2::CheckListModel::toggleChecked | ( | int | index | ) | [inline] |
Toggles the checked state of the element at specified index.
Creation date: (12/25/2001 18:21:17)
| index | int |
References com::cosylab::gui::components::r2::CheckListModel::CheckListElement::getElement(), internalGet(), and com::cosylab::gui::components::r2::CheckListModel::CheckListElement::toggleChecked().
1.6.2