public class FlexSlider extends FlexObject
The current value of the slider is determined by the relative location of the thumb between the end points of the slider, corresponding to the slider's minimum and maximum values.
Modifier | Constructor and Description |
---|---|
protected |
FlexSlider(JtfObjectHandle handle,
Desktop desktop)
Creates a new FlexSlider with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
change(double value)
Dispatched when the slider changes value due to mouse or keyboard interaction.
|
void |
change(double value,
int thumbIndex)
Dispatched when the slider changes value due to mouse or keyboard interaction.
|
void |
change(double value,
int thumbIndex,
String clickTarget)
Dispatched when the slider changes value due to mouse or keyboard interaction.
|
void |
change(double value,
int thumbIndex,
String clickTarget,
FlexTriggerEvent triggerEvent)
Dispatched when the slider changes value due to mouse or keyboard interaction.
|
void |
change(double value,
int thumbIndex,
String clickTarget,
FlexTriggerEvent triggerEvent,
String keyCode)
Dispatched when the slider changes value due to mouse or keyboard interaction.
|
double |
getDataTipPrecision()
Gets the number of decimal places to use for the data tip text.
|
String |
getDirection()
Gets the orientation of the slider control.
|
List<Color> |
getFillColors()
Gets the colors used to tint the background of the control.
|
List<String> |
getLabels()
Gets an array of strings used for the slider labels.
|
String |
getLabelStyleName()
Gets the name of the style to use for the slider label.
|
double |
getMaximum()
Gets the maximum allowed value on the slider.
|
double |
getMinimum()
Gets the minimum allowed value on the slider control.
|
double |
getSnapInterval()
Gets the increment value of the slider thumb as the user moves the thumb.
|
int |
getThumbCount()
Gets the number of thumbs allowed on the slider.
|
Color |
getTickColor()
Gets the color of the tick marks.
|
double |
getTickLength()
Gets the length in pixels of the tick marks.
|
double |
getTickThickness()
Gets the thickness in pixels of the tick marks.
|
List<Color> |
getTrackColors()
Gets the colors of the track, as an array of two colors.
|
Double |
getValue()
Gets the position of the thumb, and is a number between the minimum and maximum properties.
|
List<Double> |
getValues()
Gets an array of values for each thumb when thumbCount is greater than 1.
|
boolean |
isLiveDragging()
Gets whether live dragging is enabled for the slider.
|
boolean |
isShowDataTip()
Gets whether the data tip shows during user interaction.
|
changeFocus, changeFocus, changeFocus, getAutomationClassName, getAutomationIndex, getAutomationName, getClassName, getCurrentState, getErrorColor, getErrorString, getId, getNumAutomationChildren, getPercentHeight, getPercentWidth, getScaleX, getScaleY, getThemeColor, getToolTip, isEnabled, isFocusEnabled, isUseHandCursor, move, move, move, setFocus
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getAlpha, getHeight, getStyle, getTabIndex, getWidth, getX, getY, isMouseEnabled, isTabChildren, isTabEnabled, isVisible, mouseMove, mouseMove, nativeToString, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getText, highlightObject, highlightObject, highlightObject, invokeMethods, textCapture, textCapture, textClick, textClick, textClick, textClick, textClick, textClick, textExists, textExists, textExists, textExists, textExists, textRectangle, textRectangle, textRectangle, textRectangle, textRectangle, waitForChildDisappearance, waitForChildDisappearance, waitForDisappearance, waitForDisappearance, waitForObject, waitForObject, waitForProperty, waitForProperty
equals, exists, find, find, findAll, findAll, getCustomTypeName, getDesktop, getHandle, getLocator, getProperty, getTypeName, hashCode, imageClick, imageClick, imageClick, imageClick, imageClick, imageClick, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageExists, imageExists, imageExists, imageExistsFile, imageExistsFile, imageExistsFile, imageRectangle, imageRectangle, imageRectangle, imageRectangleFile, imageRectangleFile, imageRectangleFile, invoke, preventFinalLocator, setProperty, toString
protected FlexSlider(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the FlexSliderdesktop
- the desktop on which this object livespublic void change(double value)
value
- the new value of the sliderpublic void change(double value, int thumbIndex)
value
- the new value of the sliderthumbIndex
- the zero-based index of the thumb whose position has changedpublic void change(double value, int thumbIndex, String clickTarget)
value
- the new value of the sliderthumbIndex
- the zero-based index of the thumb whose position has changedclickTarget
- whether the slider track or a slider thumb was pressedpublic void change(double value, int thumbIndex, String clickTarget, FlexTriggerEvent triggerEvent)
value
- the new value of the sliderthumbIndex
- the zero-based index of the thumb whose position has changedclickTarget
- whether the slider track or a slider thumb was pressedtriggerEvent
- the event, such as a mouse or keyboard event, that triggered the actionpublic void change(double value, int thumbIndex, String clickTarget, FlexTriggerEvent triggerEvent, String keyCode)
value
- the new value of the sliderthumbIndex
- the zero-based index of the thumb whose position has changedclickTarget
- whether the slider track or a slider thumb was pressedtriggerEvent
- the event, such as a mouse or keyboard event, that triggered the actionkeyCode
- the key code value of the key pressed or releasedpublic double getDataTipPrecision()
A value of 0 means to round all values to an integer. The default value is 2.
public String getDirection()
public List<Color> getFillColors()
Pass the same color for both values for a flat-looking control. The default value is [ 0xFFFFFF, 0xCCCCCC ].
public List<String> getLabels()
Flex positions the labels at the beginning of the track, and spaces them evenly between the beginning of the track and the end of the track.
The default value is undefined.
public String getLabelStyleName()
public boolean isLiveDragging()
If false, Flex sets the value and values properties and dispatches the change event when the user stops dragging the slider thumb. If true, Flex sets the value and values properties and dispatches the change event continuously as the user moves the thumb.
The default value is false.
public double getMaximum()
public double getMinimum()
public boolean isShowDataTip()
If set to true, show a data tip during user interaction containing the current value of the slider.
The default value is true.
public double getSnapInterval()
For example, if snapInterval is 2, the minimum value is 0, and the maximum value is 10, the thumb snaps to the values 0, 2, 4, 6, 8, and 10 as the user move the thumb. A value of 0, means that the slider moves continuously between the minimum and maximum values.
The default value is 0.
public int getThumbCount()
Possible values are 1 or 2. If set to 1, then the value property contains the current value of the slider. If set to 2, then the values property contains an array of values representing the value for each thumb.
The default value is 1.
public Color getTickColor()
Use a hex color value or the string name of a known color. The default value is 0x6F7777.
public double getTickLength()
If direction is Direction.HORIZONTAL, then adjust the height of the tick marks. If direction is Direction.VERTICAL, then adjust the width. The default value is 3.
public double getTickThickness()
If direction is horizontal, then adjust the width of the tick marks. If direction is vertical, then adjust the height. The default value is 1.
public List<Color> getTrackColors()
You can use the same color twice for a solid track color.
You use this property along with the fillAlphas property. Typically you set fillAlphas to [ 1.0, 1.0 ] when setting trackColors.
The default value is [ 0xE7E7E7, 0xE7E7E7 ].
public Double getValue()
Use the value property when thumbCount is 1. When thumbCount is greater than 1, use the values property instead. The default value is equal to the minimum property.
getValue
in class TestObject
Copyright 2009-2012 Micro Focus. All Rights Reserved.