Back to index

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

List of all members.

Public Member Functions

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

Protected Attributes

PRPackedBool mCheckedChanged

Detailed Description

Definition at line 3006 of file nsHTMLInputElement.cpp.

Constructor & Destructor Documentation

Definition at line 3008 of file nsHTMLInputElement.cpp.

    nsRadioVisitor(), mCheckedChanged(aCheckedChanged)
    { }

Definition at line 3012 of file nsHTMLInputElement.cpp.

{ }

Member Function Documentation

NS_IMETHOD nsRadioSetCheckedChangedVisitor::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 3014 of file nsHTMLInputElement.cpp.

    nsCOMPtr<nsIRadioControlElement> radio(do_QueryInterface(aRadio));
    NS_ASSERTION(radio, "Visit() passed a null button (or non-radio)!");
    return NS_OK;

Here is the call graph for this function:

Member Data Documentation

Definition at line 3023 of file nsHTMLInputElement.cpp.

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