Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
nsRadioGetCheckedChangedVisitor Class Reference
Inheritance diagram for nsRadioGetCheckedChangedVisitor:
Inheritance graph
Collaboration diagram for nsRadioGetCheckedChangedVisitor:
Collaboration graph

List of all members.

Public Member Functions

 nsRadioGetCheckedChangedVisitor (PRBool *aCheckedChanged, nsIFormControl *aExcludeElement)
virtual ~nsRadioGetCheckedChangedVisitor ()
NS_IMETHOD Visit (nsIFormControl *aRadio, PRBool *aStop)
 Visit a node in the tree.

Protected Attributes


Detailed Description

Definition at line 3029 of file nsHTMLInputElement.cpp.

Constructor & Destructor Documentation

nsRadioGetCheckedChangedVisitor::nsRadioGetCheckedChangedVisitor ( PRBool aCheckedChanged,
nsIFormControl aExcludeElement 
) [inline]

Definition at line 3031 of file nsHTMLInputElement.cpp.

    { }

Definition at line 3038 of file nsHTMLInputElement.cpp.

{ }

Member Function Documentation

NS_IMETHOD nsRadioGetCheckedChangedVisitor::Visit ( nsIFormControl aRadio,
PRBool aStop 
) [inline, virtual]

Visit a node in the tree.

This is meant to be called on all radios in a group, sequentially. (Each radio group implementor may define sequentially in their own way, it just has to be the same every time.) Currently all radio groups are ordered in the order they appear in the document. Radio group implementors should honor the aStop parameter and stop iterating over form controls when Visit() returns true there.

aRadiothe radio button in question (must be nsnull and QI'able to nsIRadioControlElement)
aStopwhether or not to stop iterating (out-param)

Implements nsRadioVisitor.

Definition at line 3040 of file nsHTMLInputElement.cpp.

    if (aRadio == mExcludeElement) {
      return NS_OK;
    nsCOMPtr<nsIRadioControlElement> radio(do_QueryInterface(aRadio));
    NS_ASSERTION(radio, "Visit() passed a null button (or non-radio)!");
    *aStop = PR_TRUE;
    return NS_OK;

Here is the call graph for this function:

Member Data Documentation

Definition at line 3053 of file nsHTMLInputElement.cpp.

Definition at line 3054 of file nsHTMLInputElement.cpp.

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