public class UiDevice extends UiNode
LAYER_DEFAULT, LAYER_OPTICAL, LAYER_PACKET
Constructor and Description |
---|
UiDevice(UiTopology topology,
Device device)
Creates a new UI device.
|
Modifier and Type | Method and Description |
---|---|
Device |
backingDevice()
Returns the device instance backing this UI device.
|
DeviceId |
id()
Returns the identity of the device.
|
String |
idAsString()
Returns a string representation of the element identifier.
|
RegionId |
regionId()
Returns the identifier of the region to which this device belongs.
|
void |
setRegionId(RegionId regionId)
Sets the ID of the region to which this device belongs.
|
String |
toString() |
String |
type()
Returns a string representation of the type of the backing device.
|
UiRegion |
uiRegion()
Returns the UI region to which this device belongs.
|
public UiDevice(UiTopology topology, Device device)
topology
- parent topologydevice
- backing devicepublic void setRegionId(RegionId regionId)
regionId
- region identifierpublic DeviceId id()
public String idAsString()
UiElement
idAsString
in class UiElement
public Device backingDevice()
public RegionId regionId()
public UiRegion uiRegion()
public String type()