public interface DisplayListener
DisplayListener
interface defines a method that
is called in response to Display
events. Examples of
Display
events include the addition of new
Displays
and changes to the hardware state or assignation status
of an existing Display
.
A DisplayListener may be added using the
Display.setDisplayListener
method.Modifier and Type | Method and Description |
---|---|
void |
hardwareStateChanged(Display d,
DisplayHardwareState newState)
This method is called when the hardware state of a Display's hardware
changes, e.g.
|
void |
hardwareStateChanged(Display d,
DisplayState newState)
This method is called when the state of a Display's hardware changes.
|
void hardwareStateChanged(Display d, DisplayState newState)
unassigned
or assigned
argument
for the newState
parameter, respectively.d
- the DisplaynewState
- the new state of the Display (
assigned
, or
unassigned
).void hardwareStateChanged(Display d, DisplayHardwareState newState)
Display
becomes available
for the application (with
enabled
). This is
the case when the device establishes a connection with new auxiliary
display hardware.Copyright (c) 2013, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.