Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
nsSelectState Class Reference

The restore state used by select. More...

Inheritance diagram for nsSelectState:
Inheritance graph
Collaboration diagram for nsSelectState:
Collaboration graph

List of all members.

Public Member Functions

 nsSelectState ()
virtual ~nsSelectState ()
NS_DECL_ISUPPORTS void PutOption (PRInt32 aIndex, const nsAString &aValue)
PRBool ContainsOption (PRInt32 aIndex, const nsAString &aValue)

Private Attributes

nsCheapStringSet mValues
nsCheapInt32Set mIndices

Detailed Description

The restore state used by select.

Definition at line 180 of file nsHTMLSelectElement.cpp.

Constructor & Destructor Documentation

Definition at line 182 of file nsHTMLSelectElement.cpp.

virtual nsSelectState::~nsSelectState ( ) [inline, virtual]

Definition at line 185 of file nsHTMLSelectElement.cpp.


Member Function Documentation

PRBool nsSelectState::ContainsOption ( PRInt32  aIndex,
const nsAString &  aValue 
) [inline]

Definition at line 201 of file nsHTMLSelectElement.cpp.

    return mValues.Contains(aValue) || mIndices.Contains(aIndex);

Here is the caller graph for this function:

NS_DECL_ISUPPORTS void nsSelectState::PutOption ( PRInt32  aIndex,
const nsAString &  aValue 
) [inline]

Definition at line 191 of file nsHTMLSelectElement.cpp.

    // If the option is empty, store the index.  If not, store the value.
    if (aValue.IsEmpty()) {
    } else {

Member Data Documentation

nsCheapInt32Set nsSelectState::mIndices [private]

Definition at line 208 of file nsHTMLSelectElement.cpp.

nsCheapStringSet nsSelectState::mValues [private]

Definition at line 207 of file nsHTMLSelectElement.cpp.

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