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.
|
java.lang.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.
|
java.lang.String |
toString() |
java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
public DeviceId id()
public java.lang.String idAsString()
UiElement
idAsString
in class UiElement
public Device backingDevice()
public RegionId regionId()
public UiRegion uiRegion()
public java.lang.String type()