|
Oracle Fusion Middleware JavaScript API Reference for Oracle ADF Faces 11g Release 2 (11.1.2.0.0) E17489-01 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |
org.ecmascript.object.Object | +--oracle.adf.view.js.base.AdfObject | +--oracle.adf.view.js.base.AdfUIPeer | +--oracle.adf.view.js.laf.rich.AdfRichUIPeer | +--oracle.adfinternal.view.js.laf.dhtml.rich.AdfDhtmlChooseColorPeer
public class AdfDhtmlChooseColorPeer extends AdfRichUIPeer
Field Summary |
|
---|---|
private static Object |
|
static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
|
private static Object |
Fields inherited from oracle.adf.view.js.laf.rich.AdfRichUIPeer |
addComponentPropertyChanges, addComponentPropertyGetters, BUSY_STYLECLASS, DISABLED_STYLECLASS, DRAG_SOURCE_STYLECLASS, DROP_TARGET_STYLECLASS, FOCUS_TARGET_STYLECLASS, HOVER_TARGET_STYLECLASS, READONLY_STYLECLASS |
Fields inherited from oracle.adf.view.js.base.AdfObject |
constructor, superclass |
Fields inherited from org.ecmascript.object.Object |
prototype |
Constructor Summary |
|
---|---|
public |
Method Summary |
|
---|---|
protected Object |
|
protected Object |
|
protected Object |
|
protected Object |
|
private static Object |
|
private static String |
|
private Object |
|
private Object |
|
private Object |
|
private Array |
|
private Object |
|
protected Array |
|
protected Array |
|
protected Object |
|
protected Object |
|
protected Object |
|
private HTMLElement |
|
private String |
|
private HTMLElement |
|
private Number |
|
private Object |
|
private Object |
|
protected Object |
|
protected Object |
|
protected Object |
|
protected Object |
|
protected Object |
|
public Object |
|
private static Object |
|
protected Object |
|
protected static Object |
|
private static Object |
|
private Object |
|
private Object |
|
private Object |
|
private Object |
|
public static Object |
|
public static Object |
|
protected Object |
|
private Object |
|
private Object |
|
private Object |
|
private Object |
|
private Object |
|
private Object |
|
private Object |
|
Methods inherited from oracle.adf.view.js.base.AdfUIPeer |
getDefaultDragRecognizer, getParentPeer, initiateDrag, isVisible, needsResizeNotify |
Methods inherited from oracle.adf.view.js.base.AdfObject |
adopt, clone, createCallback, createInitializedObject, createSubclass, ensureClassInitialization, equals, getClass, GetLazyArrayProperty, GetLazyMapProperty, getTypeName, toDebugString, toString |
Field Detail |
---|
private static Object _BUTTON_EXPANDO
static Object __COLOR_VALUE
private static Object _COLOR_VALUE_EXPANDO
private static Object _colorFormat
private static Object _curSwatchSelectionMap
private static Object _CUSTOM_COLOR_BTN
private static Object _CUSTOM_DLG_DRAG_ID
private static Object _CUSTOM_PANEL
private static Object _CUSTOM_PANEL_WRAPPER_ID
private static Object _CUSTOM_ROW_ID
private static Object _DEFAULT_COLOR_BTN
private static Object _initCustomPanelHandlerClass
static Object __LAST_USED_COLOR
private static Object _LAST_USED_COLOR_BTN
private static Object _prevSwatchSelectionMap
private static Object _SELECTION_NEW_SWATCH_KNOWN
private static Object _SELECTION_OLD_SWATCH_KNOWN
private static Object _SELECTION_PROCESSED
private static Object _SELECTION_SWATCHES_KNOWN
private static Object _SELECTION_UNKNOWN
private static Object _selectionStateMap
private static Object _STANDARD_SWATCH_TABLE_ID
private static Object _SWATCH_EXPANDO
Constructor Detail |
---|
public AdfDhtmlChooseColorPeer()
Method Detail |
---|
protected Object ComponentColorValueChanged(Object component,
Object domElement,
Object newValue,
Object oldValue)
component |
- | the AdfRichChooseColor component |
domElement |
- | Root DOM element of this peer |
newValue |
- | the color object of new component value |
oldValue |
- | the color object of old component value |
Object
protected Object ComponentCustomColorDataChanged(Object component,
Object domElement,
Object newValue,
Object oldValue)
component |
- | the AdfRichChooseColor component |
domElement |
- | Root DOM element of this peer |
newValue |
- | the array of new color objects for custom color data |
oldValue |
- | the array of old color objects for custom color data |
Object
protected Object ComponentDefaultColorChanged(Object component,
Object domElement,
Object newValue,
Object oldValue)
component |
- | the AdfRichChooseColor component |
domElement |
- | Root DOM element of this peer |
newValue |
- | the color object of new default Color |
oldValue |
- | the color object of old default Color |
Object
protected Object ComponentLastUsedColorChanged(Object component,
Object domElement,
Object newValue,
Object oldValue)
component |
- | the AdfRichChooseColor component |
domElement |
- | Root DOM element of this peer |
newValue |
- | the color object of new Last Used Color |
oldValue |
- | the color object of old Last Used Color |
Object
private static Object _convertToColorObj(Object colorString)
colorString |
- | the Color string in format #RRGGBB to convert from |
Object
- the Color object obtained by calling TrColorConverter.getAsObject() null if colorString is nullprivate static String _convertToColorString(Object colorObj)
colorObj |
- | the Color object to convert from |
String
- the color string in #RRGGBB format that represent the colorObj.private Object _findSwatchByColor(Object component,
Object colorToMatch,
Object selected)
component |
- | the chooseColor component |
colorToMatch |
- | color object to be matched, null if transparent |
selected |
- | True if the swatch has known/selected state. False if matching the swatch by color, e.g. this happens when users enter color value in text field instead of picking from the grid. This flag is used for the purpose of looking up the right node as well as performance reason. |
Object
- color swatch DOM element that matches colorToMatch value null if the matched color is not in the list of custom color data.private Object _findSwatchFromColorPalette(Object component,
Object colorToMatch,
Object selected)
component |
- | the chooseColor component |
colorToMatch |
- | the string of color to be matched |
selected |
- | True if the swatch has known/selected state. False if matching the swatch by color, e.g. this happens when users enter color value in text field instead of picking from the grid. This flag is used for the purpose of looking up the right node as well as performance reason. |
Object
- color swatch DOM element that matches colorToMatch valueprivate Object _findSwatchFromCustomRow(Object component,
Object colorToMatch)
component |
- | the chooseColor component |
colorToMatch |
- | the string of color to match |
Object
- color swatch DOM element that matches colorToMatch value null if the matched color is not in the list of custom color data.private Array _getColorArrayFromSwatchRow(Object component,
Object rowElement)
component |
- | the AdfRichChooseColor component |
rowElement |
- | the TR DOM element of the color row |
Array
- the array of color strings in form of #RRGGBB (null if transparent)private Object _getColorFromSwatch(Object swatch)
swatch |
- | the DOM of a color swatch cell. |
Object
- color value in the form of #RRGGBB, null if transparentprotected Array GetComponentColorData(Object component,
Object domElement)
component |
- | the AdfRichChooseColor component |
domElement |
- | Root DOM element of this peer |
Array
- the array of color objects (null if transparent). The return value is never null.protected Array GetComponentCustomColorData(Object component,
Object domElement)
component |
- | the AdfRichChooseColor component |
domElement |
- | Root DOM element of this peer |
Array
- the array of color strings in form of #RRGGBB (null if transparent). The return value is null if custom row is hidden.protected Object GetComponentDefaultColor(Object component,
Object domElement)
component |
- | the AdfRichChooseColor component |
domElement |
- | Root DOM element of this peer |
Object
- the default color value in the form of #RRGGBB, null if transparentprotected Object GetComponentLastUsedColor(Object component,
Object domElement)
component |
- | the AdfRichChooseColor component |
domElement |
- | Root DOM element of this peer |
Object
- the lastUsedColor value in form of #RRGGBB, null if transparentprotected Object GetComponentWidth(Object component,
Object domElement)
component |
- | the AdfRichChooseColor component |
domElement |
- | Root DOM element of this peer |
Object
- the with property valueprivate HTMLElement _getCurrentSelection(String clientId)
clientId |
- | the client id of AdfRichChooseColor component |
HTMLElement
- DOM element of currently selected swatchprivate String _getCustomColorRowId(Object component)
component |
- | the AdfRichChooseColor component |
String
- the custom row idprivate HTMLElement _getPrevSelection(String clientId)
clientId |
- | the client id of AdfRichChooseColor component |
HTMLElement
- DOM element of previously selected swatchprivate Number _getSelectionState(String clientId)
clientId |
- | the client id of AdfRichChooseColor component |
Number
- the state of proessing swatch selection (integer value 0 to 4)private Object _getSwatchRows(Object component)
component |
Object
private Object _handleArrowKeys(Object element,
Object key)
element |
- | the current element with focus |
key |
- | the pressed key |
Object
protected Object HandleComponentClick(Object componentEvent)
componentEvent |
- | the component event invoked by mouse click, incuding mouse down on the custom color dialog |
Object
protected Object HandleComponentDialog(Object componentEvent)
componentEvent |
- | the component event invoked as users close select custom color popup. |
Object
protected Object HandleComponentKeyDown(Object componentEvent)
componentEvent |
- | the component event invoked by key down |
Object
protected Object HandleComponentKeyUp(Object componentEvent)
componentEvent |
- | the component event invoked by key up, incuding key up on the custom color dialog |
Object
protected Object HandleComponentMouseDown(Object componentEvent)
componentEvent |
- | the component event invoked by mouse down, incuding mouse down on the custom color dialog |
Object
public Object handleUpdateFromInputComponent(Object chooseComponent,
Object propertyName,
Object newValue)
chooseComponent |
- | the choose component to update |
propertyName |
- | the name of the property to update. |
newValue |
- | the new value of the properties. |
Object
private static Object _initCustomPanelHandlerClass(Object rgbOriginalColor,
Object clientId,
Object callPeer)
rgbOriginalColor |
||
clientId |
||
callPeer |
Object
protected Object InitDomElement(Object component,
Object domElement)
component |
- | Component that this peer will be associated with |
domElement |
- | Root DOM element of this peer |
Object
AdfRichUIPeer.InitDomElement(AdfUIComponent, Object)
protected static Object InitSubclass()
Object
private static Object _initSwatchSelectionHandlerClass(Object clientId,
Object swatchElement)
clientId |
||
swatchElement |
Object
private Object _insertNewCustomColor(Object component,
Object domElement,
Object newColor)
component |
- | the AdfRichChooseColor component |
domElement |
- | Root DOM element of this peer |
newColor |
- | the new color to add in |
Object
private Object _isCustomDialogOpen()
Object
private Object _isSwatch(Object element)
element |
Object
private Object _isSwatchOrTableCell(Object element)
element |
Object
public static Object parse0To255(Object str)
str |
- | a decimal string of RGB value |
Object
- the integer of value 0 to 255 if str is a valid RGB string null if str doesn not represent not a valid RGB stringpublic static Object parseHexColor(Object str)
str |
- | a hexdecimal string of color RGB value in RRGGBB format |
Object
- the integer of decimal RGB value if str is a valid color string null if str doesn not represent not a valid color stringprotected Object PopupClosed(Object component,
Object contentDom,
Object popupId)
component |
- | the AdfRichChooseColor component |
contentDom |
- | the HTML content of the DOM node |
popupId |
- | the id of the popup |
Object
AdfRichUIPeer.PopupClosed(AdfUIComponent, HTMLElement, String)
private Object _selectDOMColorSwatch(Object newSelectNode,
Object oldSelectNode)
newSelectNode |
- | the IMG element of the newly selected cell |
oldSelectNode |
- | the IMG element of the old selected cell |
Object
private Object _setupSwatchRow(Object component,
Object rowElement,
Object colorArray)
component |
- | the AdfRichChooseColor component |
rowElement |
- | the TR DOM element of custom color row |
colorArray |
- | the array holding new color objects |
Object
private Object _showCustomDialog(AdfUIComponent component)
component |
- | the AdfRichChooseColor component |
Object
private Object _updateButtonSwatch(Object buttonSwatchId,
Object newColor)
buttonSwatchId |
- | the id of the button with swatch |
newColor |
- | the new Color object used as background color for the swatch on the button |
Object
private Object _updateCurrentSelection(Object clientId,
Object swatchElement)
clientId |
- | the client id of AdfRichChooseColor component |
swatchElement |
- | swatch DOM element |
Object
private Object _updatePrevSelection(Object clientId,
Object swatchElement)
clientId |
- | the client id of AdfRichChooseColor component |
swatchElement |
- | swatch DOM element |
Object
private Object _updateSelectionState(Object clientId,
Object state)
clientId |
- | the client id of AdfRichChooseColor component |
state |
- | the state of processing swatch selection |
Object
|
Oracle Fusion Middleware JavaScript API Reference for Oracle ADF Faces 11g Release 2 (11.1.2.0.0) E17489-01 |
||||||||
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |