Back to index

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

#include <nsSliderFrame.h>

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

List of all members.

Public Member Functions

 nsSliderMediator (nsSliderFrame *aSlider)
virtual ~nsSliderMediator ()
virtual void SetSlider (nsSliderFrame *aSlider)
NS_IMETHOD MouseDown (nsIDOMEvent *aMouseEvent)
 Processes a mouse down event.
NS_IMETHOD MouseUp (nsIDOMEvent *aMouseEvent)
 Processes a mouse up event.
NS_IMETHOD MouseClick (nsIDOMEvent *aMouseEvent)
 Processes a mouse click 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 HandleEvent (nsIDOMEvent *aEvent)
void handleEvent (in nsIDOMEvent event)
 This method is called whenever an event occurs of the type for which the EventListener interface was registered.
void notify (in nsITimer timer)

Public Attributes

NS_DECL_ISUPPORTS nsSliderFramemSlider

Detailed Description

Definition at line 58 of file nsSliderFrame.h.


Constructor & Destructor Documentation

Definition at line 67 of file nsSliderFrame.h.

{  mSlider = aSlider; }
virtual nsSliderMediator::~nsSliderMediator ( ) [inline, virtual]

Definition at line 68 of file nsSliderFrame.h.

{}

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 116 of file nsSliderFrame.h.

{ return NS_OK; }
NS_IMETHOD nsSliderMediator::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 92 of file nsSliderFrame.h.

{ return NS_OK; }
NS_IMETHOD nsSliderMediator::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 100 of file nsSliderFrame.h.

{ return NS_OK; }
nsresult nsSliderMediator::MouseDown ( nsIDOMEvent aMouseEvent) [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 783 of file nsSliderFrame.cpp.

{
  // Only process the event if the thumb is not being dragged.
  if (mSlider && !mSlider->isDraggingThumb())
    return mSlider->MouseDown(aMouseEvent);

  return NS_OK;
}

Here is the call graph for this function:

NS_IMETHOD nsSliderMediator::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 114 of file nsSliderFrame.h.

{ return NS_OK; }
NS_IMETHOD nsSliderMediator::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 107 of file nsSliderFrame.h.

{ return NS_OK; }
nsresult nsSliderMediator::MouseUp ( nsIDOMEvent aMouseEvent) [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 793 of file nsSliderFrame.cpp.

{
  // Only process the event if the thumb is not being dragged.
  if (mSlider && !mSlider->isDraggingThumb())
    return mSlider->MouseUp(aMouseEvent);

  return NS_OK;
}

Here is the call graph for this function:

void nsITimerCallback::notify ( in nsITimer  timer) [inherited]
Parameters:
aTimerthe timer which has expired
virtual void nsSliderMediator::SetSlider ( nsSliderFrame aSlider) [inline, virtual]

Definition at line 70 of file nsSliderFrame.h.

{ mSlider = aSlider; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 65 of file nsSliderFrame.h.


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