public class FlexLabel extends FlexObject
Modifier | Constructor and Description |
---|---|
protected |
FlexLabel(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 FlexLabel。
|
Modifier and Type | Method and Description |
---|---|
Color |
getColor()
获取 组件中的文本颜色,包括组件标签。
|
Color |
getDisabledColor()
获取 已禁用组件时组件中的文本颜色。
|
String |
getFontFamily()
获取 可使用的字体名称。
|
double |
getFontSize()
获取 文本高度(像素)。
|
String |
getFontStyle()
获取 文本是否为斜体。
|
String |
getFontWeight()
获取 文本是否为粗体。
|
String |
getHtmlText()
获取 Label 控件显示的文本,包括表示此文本样式的 HTML 标记。
|
String |
getText()
获取 由此控件显示的纯文本。
|
String |
getTextAlign()
获取 容器中的文本对齐。
|
String |
getTextDecoration()
获取 文本是否加下划线。
|
int |
getTextIndent()
获取 容器左侧文本的第一行的偏移(像素)。
|
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
- 可确定 FlexLabel 的句柄desktop
- 此对象所在的桌面public Color getColor()
public Color getDisabledColor()
public String getFontFamily()
不同于完整的 CSS 实施,逗号分隔的列表不受支持。您可以使用任何字体系列名称。如果您指定字体名,则系统会将其转换为相应的设备字体。默认值为 Verdana
。
public double getFontSize()
除 ColorPicker 控件外,对于所有其他控件,默认值为 10;对于 ColorPicker 控件,默认值为 11。
public String getFontStyle()
认可的值为常规
和斜体
。默认值为常规
。
public String getFontWeight()
认可的值为常规和粗体。Button 控件的默认值为粗体。所有其他控件的默认值为常规。
public String getHtmlText()
指定此属性中的 HTML 文本时,您可使用 HTML 标记的子集,Flash TextField 控件支持此子集。
public String getText()
getText
in class TestObject
public String getTextAlign()
可能值为:左、右或居中。
多数组件的默认值为左。对于 FormItem 组件,默认值为右。对于 Button、LinkButton 和 AccordionHeader 组件,默认值为居中,仅在 labelPlacement 属性设为左或右时才能识别此属性。如果 labelPlacement 设为上或下,则将居中对齐文本和所有图标。
public String getTextDecoration()
可能值为无
和下划线
。默认值为无
。
public int getTextIndent()
Copyright 2009-2012 Micro Focus. All Rights Reserved.