public class FlexComboBase extends FlexObject
Modifier | Constructor and Description |
---|---|
protected |
FlexComboBase(JtfObjectHandle handle,
Desktop desktop)
Creates a new FlexComboBase with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Defines the value of the type property of the event object for a close event.
|
void |
close(FlexTriggerEvent triggerEvent)
Defines the value of the type property of the event object for a close event.
|
double |
getBackgroundAlpha()
Gets the alpha level of the color defined by the backgroundColor property, of the image or SWF file defined by the backgroundImage style.
|
Color |
getBackgroundColor()
Gets the background color of a component.
|
String |
getBackgroundImage()
Gets the background image of a component.
|
String |
getBackgroundSize()
Gets the percentage to change the image size to for the specified backgroundImage.
|
Color |
getColor()
Gets the color of text in the component, including the component label.
|
Color |
getDisabledColor()
Gets the background color of the component when it is disabled.
|
List<Double> |
getFillAlphas()
Gets the alphas used for the background fill of controls.
|
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.
|
Color |
getHighlightColor()
Gets the highlight color of the drop-down list.
|
String |
getRestrict()
Gets the set of characters that a user can or cannot enter into the text field.
|
int |
getSelectedIndex()
Gets the index in the data provider of the selected item.
|
String |
getText()
Gets the contents of the text field.
|
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.
|
void |
input(String text)
Creates an Event object that contains information about text events.
|
boolean |
isDropShadowEnabled()
Gets whether the ComboBase container's drop shadow is visible.
|
boolean |
isEditable()
Gets whether the control is editable, which lets the user directly type entries that are not specified in the dataProvider, or not editable, which requires the user select from the items in the dataProvider.
|
void |
open()
Defines the value of the type property of the event object for a open event.
|
void |
open(FlexTriggerEvent triggerEvent)
Defines the value of the type property of the event object for a open event.
|
void |
scroll(int position,
FlexScrollDirection direction,
FlexScrollDetail detail)
Defines the value of the type property of the event object for a scroll event.
|
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, getValue, 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 FlexComboBase(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the FlexComboBasedesktop
- the desktop on which this object livespublic void close()
public void close(FlexTriggerEvent triggerEvent)
triggerEvent
- a value indicating the type of input action that triggered the eventpublic 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 open()
public void open(FlexTriggerEvent triggerEvent)
triggerEvent
- a value indicating the type of input action that triggered the eventpublic void scroll(int position, FlexScrollDirection direction, FlexScrollDetail detail)
position
- contains the new scroll positiondirection
- contains the scroll direction, either ScrollEventDirection.HORIZONTAL or ScrollEventDirection.VERTICAL.detail
- provides the specifics of the type of scroll activity. Constants for the possible values are provided in the ScrollEventDetail class.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 double getBackgroundAlpha()
Valid values range from 0.0 to 1.0.
For most controls, the default value is 1.0, but for ToolTip controls, the default value is 0.95 and for Alert controls, the default value is 0.9. The default value is 1.0.
public Color getBackgroundColor()
You can have both a backgroundColor and a backgroundImage set. Some components do not have a background. The DataGrid control ignores this style. The default value is undefined, which means it is not set. If both this style and the backgroundImage style are undefined, the component has a transparent background.
For the Application container, this style specifies the background color while the application loads, and a background gradient while it is running. Flex calculates the gradient pattern between a color slightly darker than the specified color, and a color slightly lighter than the specified color.
The default skins of most Flex controls are partially transparent. As a result, the background color of a container partially shows through to controls that are in that container. You can avoid this by setting the alpha values of the control's fillAlphas property to 1.
public String getBackgroundImage()
This can be an absolute or relative URL or class.
You can either have both a backgroundColor and a backgroundImage set at the same time. The background image is displayed on top of the background color. The default value is undefined, meaning "not set." If this style and the backgroundColor style are undefined, the component has a transparent background.
The default skins of most Flex controls are partially transparent. As a result, the background image of a container partially shows through to controls that are in that container. You can avoid this by setting the alpha values of the control's fillAlphas property to 1.
public String getBackgroundSize()
A value of 100%
stretches the image to fit the entire component. To specify a percentage value, you must include the percent sign (%). The default for the Application container is 100%. The default value for all other containers is auto, which maintains the original size of the image.
public Color getColor()
public Color getDisabledColor()
The global default value is undefined. The default value for List controls is 0xDDDDDD (light gray). If a container is disabled, the background is dimmed, and the degree of dimming is controlled by the disabledOverlayAlpha style.
public boolean isDropShadowEnabled()
public boolean isEditable()
If true keyboard input will be entered in the editable text field; otherwise it will be used as shortcuts to select items in the dataProvider.
The default value is false. This property is ignored by the DateField control.
public List<Double> getFillAlphas()
Use [1, 1] to make the control background opaque. The default value is [ 0.6, 0.4 ].
public List<Color> getFillColors()
Pass the same color for both values for a flat-looking control. The default value is [ 0xFFFFFF, 0xCCCCCC ].
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()
Recognized values are normal and bold. The default value for Button controls is bold. The default value for all other controls is normal.
public Color getHighlightColor()
public String getRestrict()
public int getSelectedIndex()
If there is a prompt property, the selectedIndex value can be set to -1 to show the prompt. If there is no prompt, property then selectedIndex will be set to 0 once a dataProvider is set.
If the ComboBox control is editable, the selectedIndex property is -1 if the user types any text into the text field.
Unlike many other Flex properties that are invalidating (setting them does not have an immediate effect), the selectedIndex and selectedItem properties are synchronous; setting one immediately affects the other.
The default value is -1.
public String getText()
getText
in class TestObject
public String getTextAlign()
public String getTextDecoration()
Possible values are none
and underline
. The default value is none
.
public int getTextIndent()
Copyright 2009-2012 Micro Focus. All Rights Reserved.