com::cosylab::gui::components::r2::CheckListModel::CheckListElement Class Reference

Collaboration diagram for com::cosylab::gui::components::r2::CheckListModel::CheckListElement:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CheckListElement (Object element)
 CheckListElement (Object element, boolean isChecked)
final boolean equals (Object other)
java.lang.Object getElement ()
boolean isChecked ()
void setChecked (boolean newChecked)
void setElement (java.lang.Object newElement)
final void toggleChecked ()
final String toString ()

Private Attributes

boolean checked = false
Object element = null

Detailed Description

Delegate class used to store objects and provide checked property in CheckListModel transparently. Creation date: (24-Oct-01 11:48:40 AM)

Author:
:

Constructor & Destructor Documentation

com::cosylab::gui::components::r2::CheckListModel::CheckListElement::CheckListElement ( Object  element  )  [inline]

CheckListItem constructor comment.

com::cosylab::gui::components::r2::CheckListModel::CheckListElement::CheckListElement ( Object  element,
boolean  isChecked 
) [inline]

References checked.


Member Function Documentation

final boolean com::cosylab::gui::components::r2::CheckListModel::CheckListElement::equals ( Object  other  )  [inline]

Implements standard comparison for equality.

Instead of comparing delegate CheckListItem it compares the actual objects stored in them. Uses the equals method of these objects. Returns false if invalid type case.

References element, and getElement().

java.lang.Object com::cosylab::gui::components::r2::CheckListModel::CheckListElement::getElement (  )  [inline]

Gets the element stored in this wrapper.

Creation date: (12/25/2001 16:32:42)

Returns:
java.lang.Object

References element.

Referenced by com::cosylab::gui::components::r2::CheckListModel::convertFromModel(), equals(), com::cosylab::gui::components::r2::CheckListModel::setChecked(), and com::cosylab::gui::components::r2::CheckListModel::toggleChecked().

boolean com::cosylab::gui::components::r2::CheckListModel::CheckListElement::isChecked (  )  [inline]

Returns checked state of the element.

Creation date: (12/25/2001 16:23:27)

Returns:
boolean

References checked.

Referenced by com::cosylab::gui::components::r2::CheckListModel::isChecked().

void com::cosylab::gui::components::r2::CheckListModel::CheckListElement::setChecked ( boolean  newChecked  )  [inline]

Sets the checked state of this element.

Creation date: (12/25/2001 16:23:27)

Parameters:
newChecked boolean

References checked.

Referenced by com::cosylab::gui::components::r2::CheckListModel::setChecked().

void com::cosylab::gui::components::r2::CheckListModel::CheckListElement::setElement ( java.lang.Object  newElement  )  [inline]

Sets the element contained in this element.

Creation date: (12/25/2001 16:32:42)

Parameters:
newElement java.lang.Object

References element.

final void com::cosylab::gui::components::r2::CheckListModel::CheckListElement::toggleChecked (  )  [inline]

Toggles the checked state of this element

References checked.

Referenced by com::cosylab::gui::components::r2::CheckListModel::toggleChecked().

final String com::cosylab::gui::components::r2::CheckListModel::CheckListElement::toString (  )  [inline]

References element.


Member Data Documentation


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

Generated by  doxygen 1.6.2