public class FlexNumericStepper extends FlexObject
The NumericStepper control consists of a single-line input text field and a pair of arrow buttons for stepping through the possible values. The Up Arrow and Down Arrow keys also cycle through the values.
Modifier | Constructor and Description |
---|---|
protected |
FlexNumericStepper(JtfObjectHandle handle,
Desktop desktop)
Creates a new FlexNumericStepper with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
change(double value)
Dispatched when the value of the NumericStepper control changes as a result of user interaction.
|
Color |
getColor()
Gets the color of text in the component, including the component label.
|
Color |
getDisabledColor()
Gets the color of text in the component if it is disabled.
|
List<Color> |
getFillColors()
Gets the colors used to tint the background of the control.
|
String |
getFontFamily()
Gets the name of the font to use.
|
double |
getFontSize()
Gets the height of the text, in pixels.
|
String |
getFontStyle()
Gets whether the text is italic font.
|
String |
getFontWeight()
Gets whether the text is boldface.
|
double |
getMaximum()
Gets the maximum value of the NumericStepper.
|
double |
getMinimum()
Gets the minimum value of the NumericStepper.
|
double |
getNextValue()
Gets the value that is one step larger than the current value property and not greater than the maximum property value.
|
double |
getPreviousValue()
Gets the value that is one step smaller than the current value property and not smaller than the maximum property value.
|
double |
getStepSize()
Gets the non-zero unit of change between values.
|
String |
getTextAlign()
Gets the alignment of text within a container.
|
String |
getTextDecoration()
Gets whether the text is underlined.
|
int |
getTextIndent()
Gets the offset of first line of text from the left side of the container, in pixels.
|
Double |
getValue()
Gets the value displayed in the text area of the NumericStepper control.
|
void |
input(String text)
Creates an Event object that contains information about text events.
|
void |
selectText(int beginIndex,
int endIndex)
Lets you track selection within a text field.
|
void |
type(String keyCode)
Dispatched when the user presses a key.
|
void |
type(String keyCode,
ModifierKey keyModifier)
Dispatched when the user presses a key.
|
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 FlexNumericStepper(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the FlexNumericStepperdesktop
- the desktop on which this object livespublic void change(double value)
value
- the value of the NumericStepper control when the event was dispatchedpublic void input(String text)
text
- one or more characters of text entered by the user. Event listeners can access this information through the text property.public void selectText(int beginIndex, int endIndex)
beginIndex
- index at which selection startsendIndex
- index at which selection endspublic void type(String keyCode)
keyCode
- the key code value of the key pressed or releasedpublic void type(String keyCode, ModifierKey keyModifier)
keyCode
- the key code value of the key pressed or releasedkeyModifier
- the key modifiers (for example, the Ctrl key) to usepublic Color getColor()
public Color getDisabledColor()
public List<Color> getFillColors()
public String getFontFamily()
Unlike in a full CSS implementation, comma-separated lists are not supported. You can use any font family name. If you specify a generic font name, it is converted to an appropriate device font. The default value is Verdana
.
public double getFontSize()
The default value is 10 for all controls except the ColorPicker control. For the ColorPicker control, the default value is 11.
public String getFontStyle()
Recognized values are normal
and italic
. The default value is normal
.
public String getFontWeight()
The default value for Button controls is bold. The default value for all other controls is normal.
public double getMaximum()
The maximum can be any number, including a fractional value. The default value is 10.
public double getMinimum()
The minimum can be any number, including a fractional value. The default value is 0.
public double getNextValue()
public double getPreviousValue()
public double getStepSize()
The value property must be a multiple of this number. The default value is 1.
public String getTextAlign()
The default value for most components is left. For the FormItem component, the default value is right. For the Button, LinkButton, and AccordionHeader components, the default value is center, and this property is only recognized when the labelPlacement property is set to left or right. If labelPlacement is set to top or bottom, the text and any icon are centered.
public String getTextDecoration()
none
and underline
. The default value is none
.public int getTextIndent()
public Double getValue()
If a user enters number that is not a multiple of the stepSize property or is not in the range between the maximum and minimum properties, this property is set to the closest valid value.
The default value is 0.
getValue
in class TestObject
Copyright 2009-2012 Micro Focus. All Rights Reserved.