public class SliderConfig extends ControlConfig
Modifier and Type | Field and Description |
---|---|
private static int |
ATTR_MASK_HORIZONTAL
Bitwise mask to mark HORIZONTAL atribute usage.
|
private static int |
ATTR_MASK_LARGE_TO_SMALL
Bitwise mask to mark LARGE TO SMALL atribute usage.
|
private static int |
ATTR_MASK_NO_CURRENT_VALUE
Bitwise mask to mark NO CURRENT VALUE atribute usage.
|
int |
currentValue
Current value of the slider.
|
int |
frequency
How often to display the tic marks.
|
boolean |
horizontal
Widget orientation, horizontal or vertival.
|
boolean |
largeToSmall
The numeric range is large to small, override the default value is small to large.
|
int |
maxValue
Maximum value of the slider.
|
int |
minValue
Minimum value of the slider.
|
java.lang.String |
mousePointer
MOUSE-POINTER attribute
|
boolean |
noCurrentValue
Flag to suppress display the current value for given position on slider control.
|
java.lang.String |
ticMarks
Tick marks mode.
|
static java.lang.String |
TM_BOTH
The tic marks both side mode.
|
static java.lang.String |
TM_BOTTOM
The tic marks bottom side mode.
|
static java.lang.String |
TM_LEFT
The tic marks left side mode.
|
static java.lang.String |
TM_NONE
The tic marks are not drawn.
|
static java.lang.String |
TM_NOT_SET
The tic marks disabled mode.
|
static java.lang.String |
TM_RIGHT
The tic marks right side mode.
|
static java.lang.String |
TM_TOP
The tic marks top side mode.
|
attrSpace, autoResize, clabel, dataType, dropTarget, forceLabel, help, index, INVALID_SELECTION, label, labels, possibleSideLabel, selectionActive, selectionEnd, selectionStart, sideLabelId, untranslatedLabel
align, bgcolor, bgcolorRgb, captionFontSize, clientColumn, clientHeightChars, clientHeightPixels, clientRow, clientWidthChars, clientWidthPixels, clientX, clientY, column, dcolor, dynamic, fgcolor, fgcolorRgb, fixedHeight, fixedWidth, font, fontChanged, fontName, fontSize, fontStyle, frameColumnOffset, frameRowOffset, frameXOffset, frameYOffset, heightChars, heightPixels, initColumn, initHeightChars, initRow, initWidthChars, initX, initY, INV_COORD, locationChanged, movable, name, parentId, pfcolor, resizable, row, selected, sysbgcolor, sysfgcolor, systemParentId, tabStop, title, titleDColor, titleFont, tooltip, widgetPlaced, widthChars, widthPixels, x, y
cfgClass, contextHelpId, disableRedraw, enabled, frameDefValue, frameId, header, hidden, id, manualHightlight, menuKey, menuMouse, modified, popupMenuId, realized, selectable, state, visible, wasRealized, zorder
Modifier | Constructor and Description |
---|---|
|
SliderConfig()
Default constructor (only used in deserialization).
|
protected |
SliderConfig(int id)
Create a new config and associate it with the given widget.
|
protected |
SliderConfig(WidgetId id)
Create a new config and associate it with the given widget.
|
Modifier and Type | Method and Description |
---|---|
void |
applyConfig(WidgetConfig config)
Set new values from the provided configuration instance.
|
void |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
setDynamicFormat
getConfigManager, getDynamicColumnLabel, getDynamicFormat, getDynamicHelp, getDynamicLabel, getDynamicUntranslatedLabel, markFieldsDirty, setDynamicHeader, setDynamicHelp, setDynamicLabel, setDynamicLabels, setDynamicUntranslatedLabel, toString
public static final java.lang.String TM_NOT_SET
public static final java.lang.String TM_NONE
public static final java.lang.String TM_LEFT
public static final java.lang.String TM_RIGHT
public static final java.lang.String TM_TOP
public static final java.lang.String TM_BOTTOM
public static final java.lang.String TM_BOTH
public int minValue
public int maxValue
public int currentValue
public boolean horizontal
public boolean largeToSmall
public boolean noCurrentValue
public java.lang.String ticMarks
public int frequency
public java.lang.String mousePointer
private static final int ATTR_MASK_HORIZONTAL
private static final int ATTR_MASK_LARGE_TO_SMALL
private static final int ATTR_MASK_NO_CURRENT_VALUE
public SliderConfig()
protected SliderConfig(int id)
id
- The ID of the widget to which this configuration belongs.protected SliderConfig(WidgetId id)
id
- The ID of the widget to which this configuration belongs.public void applyConfig(WidgetConfig config)
applyConfig
in class ControlConfig
config
- The instance from which to take values.public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class ControlConfig
in
- The input source from which fields will be restored.java.io.IOException
- In case of I/O errors.java.lang.ClassNotFoundException
- If payload can't be instantiated.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class ControlConfig
out
- The output destination to which fields will be saved.java.io.IOException
- In case of I/O errors.