public interface DisplayListener
DisplayListener
interface defines a method that
is called in response to Display
events. Examples of
Display
events include the addition or removal of new
Displays
and changes to the hardware state or assignation status
of an existing Display
.
A DisplayListener may be added using the static
Display.addDisplayListener
method. It will then be notified about changes
to all Displays
.Modifier and Type | Method and Description |
---|---|
void |
displayAdded(Display d)
This method is called when a new Display is added to the embedded device.
|
void |
displayRemoved(Display d)
This method is called when a Display has been removed from the
embedded device.
|
void |
hardwareStateChanged(Display d,
boolean newState)
This method is called when the state of a Display's hardware changes.
|
void hardwareStateChanged(Display d, boolean newState)
false
or true
argument for the newState
parameter, respectively.d
- the DisplaynewState
- false
if the Display
has been unassigned,
true
if it has been re-assigned.void displayAdded(Display d)
d
- the display that has been added to the devicevoid displayRemoved(Display d)
d
- the display that has been removed from the deviceCopyright (c) 2014, Oracle and/or its affiliates. All rights reserved. Use of this specification is subject to license terms.