{ "type": "class", | |
"qname": "mx.controls.ColorPicker", | |
"baseClassname": "mx.core.UIComponent" | |
, | |
"description": "The ColorPicker control provides a way for a user to choose a color from a swatch list. 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. <p>The ColorPicker control has the following default sizing characteristics:</p> <table class="innertable"> <tr> <th>Characteristic</th> <th>Description</th> </tr> <tr> <td>Default size</td> <td>ColorPicker: 22 by 22 pixels <br>Swatch panel: Sized to fit the ColorPicker control width</br></td> </tr> <tr> <td>Minimum size</td> <td>0 pixels by 0 pixels</td> </tr> <tr> <td>Maximum size</td> <td>Undefined</td> </tr> </table> <p>The <code><mx:ColorPicker></code> tag inherits all of the properties of its superclass, and the following properties:</p> <pre>\\n <mx:ColorPicker\\n <b>Properties</b>\\n colorField="color"\\n labelField="label"\\n selectedColor="0x000000"\\n selectedIndex="0"\\n showTextField="true|false"\\n \\n <b>Styles</b>\\n borderColor="0xA5A9AE"\\n closeDuration="250"\\n closeEasingFunction="undefined"\\n color="0x0B333C"\\n disabledIconColor="0x999999"\\n fillAlphas="[0.6,0.4]"\\n fillColors="[0xFFFFFF, 0xCCCCCC]"\\n focusAlpha="0.5"\\n focusRoundedCorners="tl tr bl br"\\n fontAntiAliasType="advanced"\\n fontfamily="Verdana"\\n fontGridFitType="pixel"\\n fontSharpness="0""\\n fontSize="10"\\n fontStyle="normal"\\n fontThickness="0"\\n fontWeight="normal"\\n highlightAlphas="[0.3,0.0]"\\n iconColor="0x000000"\\n leading="2"\\n openDuration="250"\\n openEasingFunction="undefined"\\n paddingBottom="5"\\n paddingLeft="5"\\n paddingRight="5"\\n paddingTop="4"\\n swatchBorderColor="0x000000"\\n swatchBorderSize="1"\\n swatchPanelStyleName="undefined"\\n textAlign="left"\\n textDecoration="none"\\n textIndent="0"\\n \\n <b>Events</b>\\n change="<i>No default</i>"\\n close="<i>No default</i>"\\n enter="<i>No default</i>"\\n itemRollOut="<i>No default</i>"\\n itemRollOver="<i>No default</i>"\\n open="<i>No default</i>"\\n />\\n </pre>", | |
"tags": [ | |
{ "tagName": "includeExample", | |
"values": ["examples/ColorPickerExample.mxml"]}, | |
{ "tagName": "see", | |
"values": ["mx.controls.List", "mx.effects.Tween", "mx.managers.PopUpManager"]}, | |
{ "tagName": "helpid", | |
"values": ["4917"]}, | |
{ "tagName": "playerversion", | |
"values": ["Flash 9", "AIR 1.1"]}, | |
{ "tagName": "mxml", | |
"values": []}, | |
{ "tagName": "productversion", | |
"values": ["Royale 0.9.3"]}, | |
{ "tagName": "langversion", | |
"values": ["3.0"]} ], | |
"members": [ | |
{ "type": "method", | |
"qname": "mx.controls.ColorPicker", | |
"namespace": "", | |
"bindable": [], | |
"details": [], | |
"deprecated": {}, | |
"description": "Constructor.", | |
"tags": [ | |
{ "tagName": "playerversion", | |
"values": ["Flash 9", "AIR 1.1"]}, | |
{ "tagName": "productversion", | |
"values": ["Royale 0.9.3"]}, | |
{ "tagName": "langversion", | |
"values": ["3.0"]} ], | |
"return": "", | |
"params": []} | |
, | |
{ "type": "accessor", | |
"access": "read-write", | |
"return": "Boolean", | |
"qname": "showTextField", | |
"namespace": "public", | |
"bindable": [], | |
"details": [], | |
"deprecated": {}, | |
"description": "Specifies whether to show the text box that displays the color label or hexadecimal color value.", | |
"tags": [ | |
{ "tagName": "default", | |
"values": ["true"]}, | |
{ "tagName": "playerversion", | |
"values": ["Flash 9", "AIR 1.1"]}, | |
{ "tagName": "productversion", | |
"values": ["Flex 3"]}, | |
{ "tagName": "langversion", | |
"values": ["3.0"]} ]}, | |
{ "type": "accessor", | |
"access": "read-write", | |
"return": "uint", | |
"qname": "selectedColor", | |
"namespace": "public", | |
"bindable": [], | |
"details": [], | |
"deprecated": {}, | |
"description": "The value of the currently selected color in the SwatchPanel object. In the <mx:ColorPicker> tag only, 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.", | |
"tags": [ | |
{ "tagName": "helpid", | |
"values": ["4932"]}, | |
{ "tagName": "playerversion", | |
"values": ["Flash 9", "AIR 1.1"]}, | |
{ "tagName": "productversion", | |
"values": ["Royale 0.9.3"]}, | |
{ "tagName": "langversion", | |
"values": ["3.0"]} ]}, | |
{ "type": "accessor", | |
"access": "read-write", | |
"return": "Object", | |
"qname": "selectedItem", | |
"namespace": "public", | |
"bindable": [], | |
"details": [], | |
"deprecated": {}}] | |
, | |
"events": [ | |
{ "qname": "change", | |
"type": "mx.events.ColorPickerEvent" | |
, | |
"description": "Dispatched when the selected color changes as a result of user interaction.", | |
"tags": [ | |
{ "tagName": "helpid", | |
"values": ["4918"]}, | |
{ "tagName": "playerversion", | |
"values": ["Flash 9", "AIR 1.1"]}, | |
{ "tagName": "eventType", | |
"values": ["mx.events.ColorPickerEvent.CHANGE"]}, | |
{ "tagName": "productversion", | |
"values": ["Royale 0.9.3"]}, | |
{ "tagName": "langversion", | |
"values": ["3.0"]} ]}, | |
{ "qname": "close", | |
"type": "org.apache.royale.events.Event" | |
, | |
"description": "Dispatched when the swatch panel closes.", | |
"tags": [ | |
{ "tagName": "helpid", | |
"values": ["4921"]}, | |
{ "tagName": "playerversion", | |
"values": ["Flash 9", "AIR 1.1"]}, | |
{ "tagName": "eventType", | |
"values": ["mx.events.DropdownEvent.CLOSE"]}, | |
{ "tagName": "productversion", | |
"values": ["Royale 0.9.3"]}, | |
{ "tagName": "langversion", | |
"values": ["3.0"]} ]}] | |
} |