public class FlexColorPicker extends FlexComboBase
显示方形按钮中单个样本的组件的默认模式。当用户单击样本按钮时,样本面板将出现并显示整个样本列表。
| Modifier | Constructor and Description |
|---|---|
protected |
FlexColorPicker(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 FlexColorPicker。
|
| Modifier and Type | Method and Description |
|---|---|
void |
change(Color color)
所选颜色随用户交互的结果更改时发送。
|
int |
getColumnCount()
获取 样本网格中的列数。
|
Color |
getSelectedColor()
获取 SwatchPanel 对象中当前所选颜色的值。
|
boolean |
isShowTextField()
获取 是否显示可显示颜色标签或十六进制颜色值的文本框。
|
close, close, getBackgroundAlpha, getBackgroundColor, getBackgroundImage, getBackgroundSize, getColor, getDisabledColor, getFillAlphas, getFillColors, getFontFamily, getFontSize, getFontStyle, getFontWeight, getHighlightColor, getRestrict, getSelectedIndex, getText, getTextAlign, getTextDecoration, getTextIndent, input, isDropShadowEnabled, isEditable, open, open, scroll, selectText, type, typechangeFocus, changeFocus, changeFocus, getAutomationClassName, getAutomationIndex, getAutomationName, getClassName, getCurrentState, getErrorColor, getErrorString, getId, getNumAutomationChildren, getPercentHeight, getPercentWidth, getScaleX, getScaleY, getThemeColor, getToolTip, isEnabled, isFocusEnabled, isUseHandCursor, move, move, move, setFocusclick, 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, typePasswordKeyscaptureBitmap, 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, waitForPropertyequals, 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, toStringprotected FlexColorPicker(JtfObjectHandle handle, Desktop desktop)
handle - 可确定 FlexColorPicker 的句柄desktop - 此对象所在的桌面public void change(Color color)
color - 已选择的 RGB 颜色public int getColumnCount()
自 3.0 版本开始不再使用:使用 swatchPanelStyleName
public Color getSelectedColor()
您可设置此属性为标准字符串颜色名称,例如“蓝色”。如果数据提供程序包含黑色 (0x000000) 条目,则默认值为 0,否则默认值为数据提供程序索引 0 处的项目颜色。
public boolean isShowTextField()
Copyright 2009-2012 Micro Focus. All Rights Reserved.