public class FlexLabel extends FlexObject
Modifier | Constructor and Description |
---|---|
protected |
FlexLabel(JtfObjectHandle handle,
Desktop desktop)
Creates a new FlexLabel with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
String |
getHtmlText()
Gets the text displayed by the Label control, including HTML markup that expresses the styles of that text.
|
String |
getText()
Gets the plain text displayed by this control.
|
String |
getTextAlign()
Gets the alignment of text within a container.
|
String |
getTextDecoration()
Gets whether the text is underlined.
|
int |
getTextIndent()
Gets the offset of the first line of text from the left side of the container, in pixels.
|
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 FlexLabel(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the FlexLabeldesktop
- the desktop on which this object livespublic Color getColor()
public Color getDisabledColor()
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 String getHtmlText()
When you specify HTML text in this property, you can use the subset of HTML tags that is supported by the Flash TextField control.
public String getText()
getText
in class TestObject
public String getTextAlign()
Possible values are:left, right, or center.
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()
Possible values are none
and underline
. The default value is none
.
public int getTextIndent()
Copyright 2009-2012 Micro Focus. All Rights Reserved.