public abstract class CockpitValueControl extends CockpitControl
| Modifier and Type | Class and Description |
|---|---|
static class |
CockpitValueControl.ValueFormat
Format of the 2nd caption of the
CockpitControl. |
| Modifier and Type | Field and Description |
|---|---|
protected CockpitControlDataSource |
dataSource |
protected boolean |
minColorRed |
protected CockpitThresholds |
thresholds |
protected CockpitValueControl.ValueFormat |
valueFormat |
| Modifier | Constructor and Description |
|---|---|
protected |
CockpitValueControl(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element control) |
| Modifier and Type | Method and Description |
|---|---|
CockpitControlDataSource |
dataSource()
Returns the
CockpitControlDataSource of the CockpitControl. |
CockpitValueControl.ValueFormat |
getValueFormat()
Returns the format of the 2nd caption.
|
boolean |
isMinColorRed()
Returns
true if the color for the minimum value is red, false
if the color for the minimum value is green. |
void |
setMinColorRed(boolean minColorRed)
Sets the color for the minimum value to red.
|
void |
setValueFormat(CockpitValueControl.ValueFormat valueFormat)
Sets the format of the 2nd caption.
|
CockpitThresholds |
thresholds()
Returns the
CockpitThresholds of the CockpitControl. |
getCaption, getHeight, getId, getLeft, getTop, getWidth, setCaption, setHeight, setLeft, setTop, setWidth, storeprotected CockpitValueControl.ValueFormat valueFormat
protected boolean minColorRed
protected CockpitThresholds thresholds
protected CockpitControlDataSource dataSource
protected CockpitValueControl(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element control)
public CockpitThresholds thresholds()
CockpitThresholds of the CockpitControl.public CockpitControlDataSource dataSource()
CockpitControlDataSource of the CockpitControl.public CockpitValueControl.ValueFormat getValueFormat()
public void setValueFormat(CockpitValueControl.ValueFormat valueFormat)
valueFormat - ValueFormatpublic void setMinColorRed(boolean minColorRed)
minColorRed - Minimum color is redpublic boolean isMinColorRed()
true if the color for the minimum value is red, false
if the color for the minimum value is green.