Package com.uc4.api.objects
Class CockpitLamp
- java.lang.Object
 - 
- com.uc4.api.objects.CockpitControl
 - 
- com.uc4.api.objects.CockpitValueControl
 - 
- com.uc4.api.objects.CockpitLamp
 
 
 
 
- 
public class CockpitLamp extends CockpitValueControl
Represents the Lamp control of theCockpit. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class com.uc4.api.objects.CockpitValueControl
CockpitValueControl.ValueFormat 
 - 
 
- 
Field Summary
- 
Fields inherited from class com.uc4.api.objects.CockpitValueControl
dataSource, minColorRed, thresholds, valueFormat 
 - 
 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedCockpitLamp(com.uc4.util.XMLDocument doc, org.w3c.dom.Element control) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisOnOff()Returntrueif the On/Off function is used,falseif the threshold values.voidsetOnOff(boolean onOff)Specify, whether the On/Off mode is used or not.- 
Methods inherited from class com.uc4.api.objects.CockpitValueControl
dataSource, getValueFormat, isMinColorRed, setMinColorRed, setValueFormat, thresholds 
- 
Methods inherited from class com.uc4.api.objects.CockpitControl
getCaption, getHeight, getId, getLeft, getTop, getWidth, setCaption, setHeight, setLeft, setTop, setWidth, store 
 - 
 
 - 
 
- 
- 
Method Detail
- 
isOnOff
public boolean isOnOff()
Returntrueif the On/Off function is used,falseif the threshold values. It also returnsfalseif the value format is set toValueFormat.TEXT.- Returns:
 - OnOff
 
 
- 
setOnOff
public void setOnOff(boolean onOff)
Specify, whether the On/Off mode is used or not. If set tofalsethe threshold values are used.- Parameters:
 onOff- On/Off mode
 
 - 
 
 -