|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.havi.ui.HEventMulticaster
The HEventMulticaster
class is intended to assist
platform or subclass implementers with the handling of HAVi
events. Implementations are not required to use this class to
dispatch HAVi events. Applications should not extend the
HEventMulticaster class and implementations are not required to
behave correctly if an application does extend this class. If an
extended multicaster is desired, AWTEventMulticaster
should
be used rather than HEventMulticaster
The HEventMulticaster
class
is intended to handle event dispatching for the following
HAVi events:
HBackgroundImageEvent
HScreenConfigurationEvent
HScreenLocationModifiedEvent
HActionEvent
HFocusEvent
HItemEvent
HTextEvent
HKeyEvent
HAdjustmentEvent
It is an implementation option for this class to insert other
classes in the inheritance tree
(for example java.awt.AWTEventMulticaster). It is allowed that this
may result in
HEventMulticaster inheriting additional methods beyond those
specified here. If this class does extend
java.awt.AWTEventMulticaster
,
it is allowed for the fields defined in this class to be inherited
from that parent class.
Note: the org.davic.resources.ResourceStatusListener specification does not require EventListener to be present. In a HAVi UI implementation, ResourceStatusListener shall extend EventListener.
Parameter | Description | Default value | Set method | Get method |
---|---|---|---|---|
None. |
Description | Default value | Set method | Get method |
---|---|---|---|
None. |
HBackgroundImageListener
,
HScreenConfigurationListener
,
HScreenLocationModifiedListener
,
HActionListener
,
HAdjustmentListener
,
HFocusListener
,
HItemListener
,
HTextListener
,
HKeyListener
,
WindowListener
,
ResourceStatusListener
Field Summary | |
protected java.util.EventListener |
a
|
protected java.util.EventListener |
b
|
Constructor Summary | |
protected |
HEventMulticaster(java.util.EventListener a,
java.util.EventListener b)
Creates an event multicaster instance which chains listener-a with listener-b. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Handles the ActionEvent by invoking the actionPerformed methods on listener-a and listener-b. |
static HActionListener |
add(HActionListener a,
HActionListener b)
Adds HActionListener -a with HActionListener -b and
returns the resulting multicast listener. |
static HAdjustmentListener |
add(HAdjustmentListener a,
HAdjustmentListener b)
Adds HAdjustmentListener -a with HAdjustmentListener -b and
returns the resulting multicast listener. |
static HBackgroundImageListener |
add(HBackgroundImageListener a,
HBackgroundImageListener b)
Adds HBackgroundImageListener -a with HBackgroundImageListener -b and
returns the resulting multicast listener. |
static HFocusListener |
add(HFocusListener a,
HFocusListener b)
Adds HFocusListener -a with HFocusListener -b and
returns the resulting multicast listener. |
static HItemListener |
add(HItemListener a,
HItemListener b)
Adds HItemListener -a with HItemListener -b and
returns the resulting multicast listener. |
static HKeyListener |
add(HKeyListener a,
HKeyListener b)
Adds HKeyListener -a with HKeyListener -b and
returns the resulting multicast listener. |
static HScreenConfigurationListener |
add(HScreenConfigurationListener a,
HScreenConfigurationListener b)
Adds HScreenConfigurationListener -a with HScreenConfigurationListener -b and
returns the resulting multicast listener. |
static HScreenConfigurationListener |
add(HScreenConfigurationListener a,
HScreenConfigurationListener b,
HScreenConfigTemplate tb)
Adds HScreenConfigurationListener -a with
HScreenConfigurationListener -b,
which is notified when
the HScreenDevice's configuration is modified so that it is no longer compatible with the
HScreenConfigTemplate tb.
|
static HScreenLocationModifiedListener |
add(HScreenLocationModifiedListener a,
HScreenLocationModifiedListener b)
Adds HScreenLocationModifiedListener -a with HScreenLocationModifiedListener -b and
returns the resulting multicast listener. |
static HTextListener |
add(HTextListener a,
HTextListener b)
Adds HTextListener -a with HTextListener -b and
returns the resulting multicast listener. |
static ResourceStatusListener |
add(ResourceStatusListener a,
ResourceStatusListener b)
Adds ResourceStatusListener-a with listener-b and returns the resulting multicast listener. |
static java.awt.event.WindowListener |
add(java.awt.event.WindowListener a,
java.awt.event.WindowListener b)
Adds WindowListener-a with WindowListener-b and returns the resulting multicast listener. |
protected static java.util.EventListener |
addInternal(java.util.EventListener a,
java.util.EventListener b)
Returns the resulting multicast listener from adding listener-a and listener-b together. |
void |
caretMoved(HTextEvent e)
Handles the HTextEvent by invoking the
caretMoved methods on listener-a and listener-b. |
void |
currentItemChanged(HItemEvent e)
Handles the HItemEvent by invoking the
currentItemChanged methods on listener-a and listener-b. |
void |
focusGained(java.awt.event.FocusEvent e)
Handles the FocusEvent by invoking the focusGained methods on listener-a and listener-b. |
void |
focusLost(java.awt.event.FocusEvent e)
Handles the FocusEvent by invoking the focusLost methods on listener-a and listener-b. |
void |
imageLoaded(HBackgroundImageEvent e)
Handles the HBackgroundImageEvent by invoking the
imageLoaded methods on listener-a and listener-b. |
void |
imageLoadFailed(HBackgroundImageEvent e)
Handles the HBackgroundImageEvent by invoking the
imageLoadFailed methods on listener-a and listener-b. |
void |
keyPressed(java.awt.event.KeyEvent e)
Handles the HKeyEvent by invoking the
keyPressed methods on listener-a and listener-b. |
void |
keyReleased(java.awt.event.KeyEvent e)
Handles the HKeyEvent by invoking the
keyReleased methods on listener-a and listener-b. |
void |
keyTyped(java.awt.event.KeyEvent e)
Handles the HKeyEvent by invoking the
keyTyped methods on listener-a and listener-b. |
protected java.util.EventListener |
remove(java.util.EventListener oldl)
Removes a listener from this multicaster and returns the result. |
static HActionListener |
remove(HActionListener l,
HActionListener oldl)
Removes the old HActionListener from HActionListener -l and
returns the resulting multicast listener. |
static HAdjustmentListener |
remove(HAdjustmentListener l,
HAdjustmentListener oldl)
Removes the old HAdjustmentListener from HAdjustmentListener -l and
returns the resulting multicast listener. |
static HBackgroundImageListener |
remove(HBackgroundImageListener l,
HBackgroundImageListener oldl)
Removes the old HBackgroundImageListener from HBackgroundImageListener -l and
returns the resulting multicast listener. |
static HFocusListener |
remove(HFocusListener l,
HFocusListener oldl)
Removes the old HFocusListener from HFocusListener -l and
returns the resulting multicast listener. |
static HItemListener |
remove(HItemListener l,
HItemListener oldl)
Removes the old HItemListener from HItemListener -l and
returns the resulting multicast listener. |
static HKeyListener |
remove(HKeyListener l,
HKeyListener oldl)
Removes the old HKeyListener from HKeyListener -l and
returns the resulting multicast listener. |
static HScreenConfigurationListener |
remove(HScreenConfigurationListener l,
HScreenConfigurationListener oldl)
Removes the old HScreenConfigurationListener from HScreenConfigurationListener -l and
returns the resulting multicast listener. |
static HScreenLocationModifiedListener |
remove(HScreenLocationModifiedListener l,
HScreenLocationModifiedListener oldl)
Removes the old HScreenLocationModifiedListener from HScreenLocationModifiedListener -l and
returns the resulting multicast listener. |
static HTextListener |
remove(HTextListener l,
HTextListener oldl)
Removes the old HTextListener from HTextListener -l and
returns the resulting multicast listener. |
static ResourceStatusListener |
remove(ResourceStatusListener l,
ResourceStatusListener oldl)
Removes the old ResourceStatusListener from ResourceStatusListener-l and returns the resulting multicast listener. |
static java.awt.event.WindowListener |
remove(java.awt.event.WindowListener l,
java.awt.event.WindowListener oldl)
Removes the old WindowListener from WindowListener-l and returns the resulting multicast listener. |
protected static java.util.EventListener |
removeInternal(java.util.EventListener l,
java.util.EventListener oldl)
Returns the resulting multicast listener after removing the old listener from listener-l. |
void |
report(HScreenConfigurationEvent e)
Handles the HScreenConfigurationEvent by invoking the
report methods on listener-a and listener-b. |
void |
report(HScreenLocationModifiedEvent e)
Handles the HScreenLocationModifiedEvent by invoking the
report methods on listener-a and listener-b. |
void |
selectionChanged(HItemEvent e)
Handles the HItemEvent by invoking the
selectionChanged methods on listener-a and listener-b. |
void |
statusChanged(ResourceStatusEvent e)
Handles the ResourceStatusEvent by invoking the statusChanged methods on listener-a and listener-b. |
void |
textChanged(HTextEvent e)
Handles the HTextEvent by invoking the
textChanged methods on listener-a and listener-b. |
void |
valueChanged(HAdjustmentEvent e)
Handles the HAdjustmentEvent by invoking the
valueChanged methods on listener-a and listener-b. |
void |
windowActivated(java.awt.event.WindowEvent e)
Handles the windowActivated event by invoking the windowActivated methods on listener-a and listener-b. |
void |
windowClosed(java.awt.event.WindowEvent e)
Handles the windowClosed event by invoking the windowClosed methods on listener-a and listener-b. |
void |
windowClosing(java.awt.event.WindowEvent e)
Handles the windowClosing event by invoking the windowClosing methods on listener-a and listener-b. |
void |
windowDeactivated(java.awt.event.WindowEvent e)
Handles the windowDeactivated event by invoking the windowDeactivated methods on listener-a and listener-b. |
void |
windowDeiconified(java.awt.event.WindowEvent e)
Handles the windowDeiconified event by invoking the windowDeiconified methods on listener-a and listener-b. |
void |
windowIconified(java.awt.event.WindowEvent e)
Handles the windowIconified event by invoking the windowIconified methods on listener-a and listener-b. |
void |
windowOpened(java.awt.event.WindowEvent e)
Handles the windowOpened event by invoking the windowOpened methods on listener-a and listener-b. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final java.util.EventListener a
protected final java.util.EventListener b
Constructor Detail |
protected HEventMulticaster(java.util.EventListener a, java.util.EventListener b)
a
- listener-ab
- listener-bMethod Detail |
protected java.util.EventListener remove(java.util.EventListener oldl)
oldl
- the listener to be removedprotected static java.util.EventListener addInternal(java.util.EventListener a, java.util.EventListener b)
a
- event listener-ab
- event listener-bprotected static java.util.EventListener removeInternal(java.util.EventListener l, java.util.EventListener oldl)
l
- the listener being removed fromoldl
- the listener being removedpublic static HBackgroundImageListener add(HBackgroundImageListener a, HBackgroundImageListener b)
HBackgroundImageListener
-a with HBackgroundImageListener
-b and
returns the resulting multicast listener.
a
- HBackgroundImageListener-ab
- HBackgroundImageListener-bpublic static HBackgroundImageListener remove(HBackgroundImageListener l, HBackgroundImageListener oldl)
HBackgroundImageListener
from HBackgroundImageListener
-l and
returns the resulting multicast listener.
l
- HBackgroundImageListener-loldl
- the HBackgroundImageListener being removedpublic static java.awt.event.WindowListener add(java.awt.event.WindowListener a, java.awt.event.WindowListener b)
a
- WindowListener-ab
- WindowListener-bpublic static java.awt.event.WindowListener remove(java.awt.event.WindowListener l, java.awt.event.WindowListener oldl)
l
- WindowListener-loldl
- the WindowListener being removedpublic static HScreenConfigurationListener add(HScreenConfigurationListener a, HScreenConfigurationListener b)
HScreenConfigurationListener
-a with HScreenConfigurationListener
-b and
returns the resulting multicast listener.
a
- HScreenConfigurationListener-ab
- HScreenConfigurationListener-bpublic static HScreenConfigurationListener add(HScreenConfigurationListener a, HScreenConfigurationListener b, HScreenConfigTemplate tb)
HScreenConfigurationListener
-a with
HScreenConfigurationListener
-b,
which is notified when
the HScreenDevice's
configuration is modified so that it is no longer compatible with the
HScreenConfigTemplate
tb.
It returns the resulting multicast listener.
a
- HScreenConfigurationListener-ab
- HScreenConfigurationListener-btb
- HScreenConfigTemplate associated with HScreenConfigurationListener-bpublic static HScreenConfigurationListener remove(HScreenConfigurationListener l, HScreenConfigurationListener oldl)
HScreenConfigurationListener
from HScreenConfigurationListener
-l and
returns the resulting multicast listener.
l
- HScreenConfigurationListener-loldl
- the HScreenConfigurationListener being removedpublic static HScreenLocationModifiedListener add(HScreenLocationModifiedListener a, HScreenLocationModifiedListener b)
HScreenLocationModifiedListener
-a with HScreenLocationModifiedListener
-b and
returns the resulting multicast listener.
a
- HScreenLocationModifiedListener-ab
- HScreenLocationModifiedListener-bpublic static HScreenLocationModifiedListener remove(HScreenLocationModifiedListener l, HScreenLocationModifiedListener oldl)
HScreenLocationModifiedListener
from HScreenLocationModifiedListener
-l and
returns the resulting multicast listener.
l
- HScreenLocationModifiedListener-loldl
- the HScreenLocationModifiedListener being removedpublic void imageLoaded(HBackgroundImageEvent e)
HBackgroundImageEvent
by invoking the
imageLoaded
methods on listener-a and listener-b.
imageLoaded
in interface HBackgroundImageListener
e
- the HBackgroundImageEvent eventpublic void imageLoadFailed(HBackgroundImageEvent e)
HBackgroundImageEvent
by invoking the
imageLoadFailed
methods on listener-a and listener-b.
imageLoadFailed
in interface HBackgroundImageListener
e
- the HBackgroundImageEvent eventpublic void report(HScreenConfigurationEvent e)
HScreenConfigurationEvent
by invoking the
report
methods on listener-a and listener-b.
report
in interface HScreenConfigurationListener
e
- the HScreenConfigurationEvent eventpublic void report(HScreenLocationModifiedEvent e)
HScreenLocationModifiedEvent
by invoking the
report
methods on listener-a and listener-b.
report
in interface HScreenLocationModifiedListener
e
- the HScreenLocationModifiedEvent eventpublic void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
e
- the window eventpublic void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
e
- the window eventpublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed
in interface java.awt.event.WindowListener
e
- the window eventpublic void windowIconified(java.awt.event.WindowEvent e)
windowIconified
in interface java.awt.event.WindowListener
e
- the window eventpublic void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified
in interface java.awt.event.WindowListener
e
- the window eventpublic void windowActivated(java.awt.event.WindowEvent e)
windowActivated
in interface java.awt.event.WindowListener
e
- the window eventpublic void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated
in interface java.awt.event.WindowListener
e
- the window eventpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- the ActionEvent eventpublic void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
e
- the FocusEvent eventpublic void focusGained(java.awt.event.FocusEvent e)
focusGained
in interface java.awt.event.FocusListener
e
- the FocusEvent eventpublic void valueChanged(HAdjustmentEvent e)
HAdjustmentEvent
by invoking the
valueChanged
methods on listener-a and listener-b.
valueChanged
in interface HAdjustmentListener
e
- the HAdjustmentEvent eventpublic void selectionChanged(HItemEvent e)
HItemEvent
by invoking the
selectionChanged
methods on listener-a and listener-b.
selectionChanged
in interface HItemListener
e
- the HItemEvent eventpublic void currentItemChanged(HItemEvent e)
HItemEvent
by invoking the
currentItemChanged
methods on listener-a and listener-b.
currentItemChanged
in interface HItemListener
e
- the HItemEvent eventpublic void textChanged(HTextEvent e)
HTextEvent
by invoking the
textChanged
methods on listener-a and listener-b.
textChanged
in interface HTextListener
e
- the HTextEvent eventpublic void caretMoved(HTextEvent e)
HTextEvent
by invoking the
caretMoved
methods on listener-a and listener-b.
caretMoved
in interface HTextListener
e
- the HTextEvent eventpublic void keyTyped(java.awt.event.KeyEvent e)
HKeyEvent
by invoking the
keyTyped
methods on listener-a and listener-b.
keyTyped
in interface java.awt.event.KeyListener
e
- the HKeyEvent eventpublic void keyPressed(java.awt.event.KeyEvent e)
HKeyEvent
by invoking the
keyPressed
methods on listener-a and listener-b.
keyPressed
in interface java.awt.event.KeyListener
e
- the HKeyEvent eventpublic void keyReleased(java.awt.event.KeyEvent e)
HKeyEvent
by invoking the
keyReleased
methods on listener-a and listener-b.
keyReleased
in interface java.awt.event.KeyListener
e
- the HKeyEvent eventpublic static HTextListener add(HTextListener a, HTextListener b)
HTextListener
-a with HTextListener
-b and
returns the resulting multicast listener.
a
- HTextListener-ab
- HTextListener-bpublic static HTextListener remove(HTextListener l, HTextListener oldl)
HTextListener
from HTextListener
-l and
returns the resulting multicast listener.
l
- HTextListener-loldl
- the HTextListener being removedpublic static HItemListener add(HItemListener a, HItemListener b)
HItemListener
-a with HItemListener
-b and
returns the resulting multicast listener.
a
- HItemListener-ab
- HItemListener-bpublic static HItemListener remove(HItemListener l, HItemListener oldl)
HItemListener
from HItemListener
-l and
returns the resulting multicast listener.
l
- HItemListener-loldl
- the HItemListener being removedpublic static HFocusListener add(HFocusListener a, HFocusListener b)
HFocusListener
-a with HFocusListener
-b and
returns the resulting multicast listener.
a
- HFocusListener-ab
- HFocusListener-bpublic static HFocusListener remove(HFocusListener l, HFocusListener oldl)
HFocusListener
from HFocusListener
-l and
returns the resulting multicast listener.
l
- HFocusListener-loldl
- the HFocusListener being removedpublic static HAdjustmentListener add(HAdjustmentListener a, HAdjustmentListener b)
HAdjustmentListener
-a with HAdjustmentListener
-b and
returns the resulting multicast listener.
a
- HAdjustmentListener-ab
- HAdjustmentListener-bpublic static HAdjustmentListener remove(HAdjustmentListener l, HAdjustmentListener oldl)
HAdjustmentListener
from HAdjustmentListener
-l and
returns the resulting multicast listener.
l
- HAdjustmentListener-loldl
- the HAdjustmentListener being removedpublic static HActionListener add(HActionListener a, HActionListener b)
HActionListener
-a with HActionListener
-b and
returns the resulting multicast listener.
a
- HActionListener-ab
- HActionListener-bpublic static HActionListener remove(HActionListener l, HActionListener oldl)
HActionListener
from HActionListener
-l and
returns the resulting multicast listener.
l
- HActionListener-loldl
- the HActionListener being removedpublic static HKeyListener add(HKeyListener a, HKeyListener b)
HKeyListener
-a with HKeyListener
-b and
returns the resulting multicast listener.
a
- HKeyListener-ab
- HKeyListener-bpublic static HKeyListener remove(HKeyListener l, HKeyListener oldl)
HKeyListener
from HKeyListener
-l and
returns the resulting multicast listener.
l
- HKeyListener-loldl
- the HKeyListener being removedpublic void statusChanged(ResourceStatusEvent e)
statusChanged
in interface ResourceStatusListener
e
- the ResourceStatusEvent eventpublic static ResourceStatusListener add(ResourceStatusListener a, ResourceStatusListener b)
a
- listener-ab
- listener-bpublic static ResourceStatusListener remove(ResourceStatusListener l, ResourceStatusListener oldl)
l
- ResourceStatusListener-loldl
- the ResourceStatusListener being removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |