Back to index

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

Helper class that listens to the combo boxes button. More...

Inheritance diagram for nsComboButtonListener:
Inheritance graph
[legend]
Collaboration diagram for nsComboButtonListener:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS NS_IMETHOD HandleEvent (nsIDOMEvent *anEvent)
NS_IMETHOD MouseDown (nsIDOMEvent *aMouseEvent)
 Processes a mouse down event.
NS_IMETHOD MouseUp (nsIDOMEvent *aMouseEvent)
 Processes a mouse up event.
NS_IMETHOD MouseDblClick (nsIDOMEvent *aMouseEvent)
 Processes a mouse click event.
NS_IMETHOD MouseOver (nsIDOMEvent *aMouseEvent)
 Processes a mouse enter event.
NS_IMETHOD MouseOut (nsIDOMEvent *aMouseEvent)
 Processes a mouse leave event.
NS_IMETHOD MouseClick (nsIDOMEvent *aMouseEvent)
 Processes a mouse click event.
 nsComboButtonListener (nsComboboxControlFrame *aCombobox)
virtual ~nsComboButtonListener ()
void handleEvent (in nsIDOMEvent event)
 This method is called whenever an event occurs of the type for which the EventListener interface was registered.

Public Attributes

nsComboboxControlFramemComboBox

Detailed Description

Helper class that listens to the combo boxes button.

If the button is pressed the combo box is toggled to open or close. this is used by Accessibility which presses that button Programmatically.

Definition at line 163 of file nsComboboxControlFrame.cpp.


Constructor & Destructor Documentation

Definition at line 183 of file nsComboboxControlFrame.cpp.

  { 
    mComboBox = aCombobox; 
  }
virtual nsComboButtonListener::~nsComboButtonListener ( ) [inline, virtual]

Definition at line 188 of file nsComboboxControlFrame.cpp.

{}

Member Function Documentation

This method is called whenever an event occurs of the type for which the EventListener interface was registered.

Parameters:
evtThe Event contains contextual information about the event. It also contains the stopPropagation and preventDefault methods which are used in determining the event's flow and default action.

Definition at line 168 of file nsComboboxControlFrame.cpp.

{ return PR_FALSE; }
NS_IMETHOD nsComboButtonListener::MouseClick ( nsIDOMEvent aMouseEvent) [inline, virtual]

Processes a mouse click event.

Parameters:
aMouseEvent
See also:
nsIDOMEvent.h
Returns:
whether the event was consumed or ignored.
See also:
nsresult

Implements nsIDOMMouseListener.

Definition at line 175 of file nsComboboxControlFrame.cpp.

  {
    PRBool isDroppedDown;
    mComboBox->IsDroppedDown(&isDroppedDown);
    mComboBox->ShowDropDown(!isDroppedDown);
    return NS_OK; 
  }

Here is the call graph for this function:

NS_IMETHOD nsComboButtonListener::MouseDblClick ( nsIDOMEvent aMouseEvent) [inline, virtual]

Processes a mouse click event.

Parameters:
aMouseEvent
See also:
nsIDOMEvent.h
Returns:
whether the event was consumed or ignored.
See also:
nsresult

Implements nsIDOMMouseListener.

Definition at line 171 of file nsComboboxControlFrame.cpp.

{ return PR_FALSE; }
NS_IMETHOD nsComboButtonListener::MouseDown ( nsIDOMEvent aMouseEvent) [inline, virtual]

Processes a mouse down event.

Parameters:
aMouseEvent
See also:
nsIDOMEvent.h
Returns:
whether the event was consumed or ignored.
See also:
nsresult

Implements nsIDOMMouseListener.

Definition at line 169 of file nsComboboxControlFrame.cpp.

{ return PR_FALSE; }
NS_IMETHOD nsComboButtonListener::MouseOut ( nsIDOMEvent aMouseEvent) [inline, virtual]

Processes a mouse leave event.

Parameters:
aMouseEvent
See also:
nsIDOMEvent.h
Returns:
whether the event was consumed or ignored.
See also:
nsresult

Implements nsIDOMMouseListener.

Definition at line 173 of file nsComboboxControlFrame.cpp.

{ return PR_FALSE; }
NS_IMETHOD nsComboButtonListener::MouseOver ( nsIDOMEvent aMouseEvent) [inline, virtual]

Processes a mouse enter event.

Parameters:
aMouseEvent
See also:
nsIDOMEvent.h
Returns:
whether the event was consumed or ignored.
See also:
nsresult

Implements nsIDOMMouseListener.

Definition at line 172 of file nsComboboxControlFrame.cpp.

{ return PR_FALSE; }
NS_IMETHOD nsComboButtonListener::MouseUp ( nsIDOMEvent aMouseEvent) [inline, virtual]

Processes a mouse up event.

Parameters:
aMouseEvent
See also:
nsIDOMEvent.h
Returns:
whether the event was consumed or ignored.
See also:
nsresult

Implements nsIDOMMouseListener.

Definition at line 170 of file nsComboboxControlFrame.cpp.

{ return PR_FALSE; }

Member Data Documentation

Definition at line 190 of file nsComboboxControlFrame.cpp.


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