public class HEventMulticaster extends Object implements HBackgroundImageListener, HScreenConfigurationListener, HScreenLocationModifiedListener, WindowListener, HActionListener, HAdjustmentListener, HFocusListener, HItemListener, HTextListener, HKeyListener, ResourceStatusListener
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. | |||
| Modifier and Type | Field and Description |
|---|---|
protected EventListener |
a |
protected EventListener |
b |
| Modifier | Constructor and Description |
|---|---|
protected |
HEventMulticaster(EventListener a,
EventListener b)
Creates an event multicaster instance which chains listener-a
with listener-b.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(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 WindowListener |
add(WindowListener a,
WindowListener b)
Adds WindowListener-a with WindowListener-b and
returns the resulting multicast listener.
|
protected static EventListener |
addInternal(EventListener a,
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(FocusEvent e)
Handles the FocusEvent by invoking the
focusGained methods on listener-a and listener-b.
|
void |
focusLost(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(KeyEvent e)
Handles the
HKeyEvent by invoking the
keyPressed methods on listener-a and listener-b. |
void |
keyReleased(KeyEvent e)
Handles the
HKeyEvent by invoking the
keyReleased methods on listener-a and listener-b. |
void |
keyTyped(KeyEvent e)
|
protected EventListener |
remove(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 WindowListener |
remove(WindowListener l,
WindowListener oldl)
Removes the old WindowListener from WindowListener-l and
returns the resulting multicast listener.
|
protected static EventListener |
removeInternal(EventListener l,
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(WindowEvent e)
Handles the windowActivated event by invoking the
windowActivated methods on listener-a and listener-b.
|
void |
windowClosed(WindowEvent e)
Handles the windowClosed event by invoking the
windowClosed methods on listener-a and listener-b.
|
void |
windowClosing(WindowEvent e)
Handles the windowClosing event by invoking the
windowClosing methods on listener-a and listener-b.
|
void |
windowDeactivated(WindowEvent e)
Handles the windowDeactivated event by invoking the
windowDeactivated methods on listener-a and listener-b.
|
void |
windowDeiconified(WindowEvent e)
Handles the windowDeiconified event by invoking the
windowDeiconified methods on listener-a and listener-b.
|
void |
windowIconified(WindowEvent e)
Handles the windowIconified event by invoking the
windowIconified methods on listener-a and listener-b.
|
void |
windowOpened(WindowEvent e)
Handles the windowOpened event by invoking the
windowOpened methods on listener-a and listener-b.
|
protected final EventListener a
protected final EventListener b
protected HEventMulticaster(EventListener a, EventListener b)
a - listener-ab - listener-bprotected EventListener remove(EventListener oldl)
oldl - the listener to be removedprotected static EventListener addInternal(EventListener a, EventListener b)
a - event listener-ab - event listener-bprotected static EventListener removeInternal(EventListener l, 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 WindowListener add(WindowListener a, WindowListener b)
a - WindowListener-ab - WindowListener-bpublic static WindowListener remove(WindowListener l, 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 HBackgroundImageListenere - the HBackgroundImageEvent eventpublic void imageLoadFailed(HBackgroundImageEvent e)
HBackgroundImageEvent by invoking the
imageLoadFailed methods on listener-a and listener-b.imageLoadFailed in interface HBackgroundImageListenere - the HBackgroundImageEvent eventpublic void report(HScreenConfigurationEvent e)
HScreenConfigurationEvent by invoking the
report methods on listener-a and listener-b.report in interface HScreenConfigurationListenere - the HScreenConfigurationEvent eventpublic void report(HScreenLocationModifiedEvent e)
HScreenLocationModifiedEvent by invoking the
report methods on listener-a and listener-b.report in interface HScreenLocationModifiedListenere - the HScreenLocationModifiedEvent eventpublic void windowOpened(WindowEvent e)
windowOpened in interface WindowListenere - the window eventpublic void windowClosing(WindowEvent e)
windowClosing in interface WindowListenere - the window eventpublic void windowClosed(WindowEvent e)
windowClosed in interface WindowListenere - the window eventpublic void windowIconified(WindowEvent e)
windowIconified in interface WindowListenere - the window eventpublic void windowDeiconified(WindowEvent e)
windowDeiconified in interface WindowListenere - the window eventpublic void windowActivated(WindowEvent e)
windowActivated in interface WindowListenere - the window eventpublic void windowDeactivated(WindowEvent e)
windowDeactivated in interface WindowListenere - the window eventpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - the ActionEvent eventpublic void focusLost(FocusEvent e)
focusLost in interface FocusListenere - the FocusEvent eventpublic void focusGained(FocusEvent e)
focusGained in interface FocusListenere - the FocusEvent eventpublic void valueChanged(HAdjustmentEvent e)
HAdjustmentEvent by invoking the
valueChanged methods on listener-a and listener-b.valueChanged in interface HAdjustmentListenere - the HAdjustmentEvent eventpublic void selectionChanged(HItemEvent e)
HItemEvent by invoking the
selectionChanged methods on listener-a and listener-b.selectionChanged in interface HItemListenere - the HItemEvent eventpublic void currentItemChanged(HItemEvent e)
HItemEvent by invoking the
currentItemChanged methods on listener-a and listener-b.currentItemChanged in interface HItemListenere - the HItemEvent eventpublic void textChanged(HTextEvent e)
HTextEvent by invoking the
textChanged methods on listener-a and listener-b.textChanged in interface HTextListenere - the HTextEvent eventpublic void caretMoved(HTextEvent e)
HTextEvent by invoking the
caretMoved methods on listener-a and listener-b.caretMoved in interface HTextListenere - the HTextEvent eventpublic void keyTyped(KeyEvent e)
keyTyped in interface KeyListenere - the HKeyEvent eventpublic void keyPressed(KeyEvent e)
HKeyEvent by invoking the
keyPressed methods on listener-a and listener-b.keyPressed in interface KeyListenere - the HKeyEvent eventpublic void keyReleased(KeyEvent e)
HKeyEvent by invoking the
keyReleased methods on listener-a and listener-b.keyReleased in interface KeyListenere - 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 ResourceStatusListenere - 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 removedCopyright © 2012 code4tv.com. All Rights Reserved.