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 | 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, setWidthpublic 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.Copyright © 2021. All rights reserved.