public class FlexColorPicker extends FlexComboBase
The default mode of the component shows a single swatch in a square button. When the user clicks the swatch button, the swatch panel appears and displays the entire swatch list.
Modifier | Constructor and Description |
---|---|
protected |
FlexColorPicker(JtfObjectHandle handle,
Desktop desktop)
Creates a new FlexColorPicker with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
change(Color color)
Dispatched when the selected color changes as a result of user interaction.
|
int |
getColumnCount()
Gets the number of columns in the swatch grid.
|
Color |
getSelectedColor()
Gets the value of the currently selected color in the SwatchPanel object.
|
boolean |
isShowTextField()
Gets whether to show the text box that displays the color label or hexadecimal color value.
|
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, type
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 FlexColorPicker(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the FlexColorPickerdesktop
- the desktop on which this object livespublic void change(Color color)
color
- the RGB color that was selectedpublic int getColumnCount()
Deprecated Since 3.0: Use swatchPanelStyleName
public Color getSelectedColor()
You can set this property to a standard string color name, such as "blue". If the dataProvider contains an entry for black (0x000000), the default value is 0; otherwise, the default value is the color of the item at index 0 of the data provider.
public boolean isShowTextField()
Copyright 2009-2012 Micro Focus. All Rights Reserved.