Packagecom.degrafa.paint.palette
Classpublic dynamic class Palette
InheritancePalette Inheritance mx.utils.ObjectProxy
Implementsmx.core.IMXMLObject
SubclassesAutoPalette

Base palette object.

Default MXML Propertyentries



Public Properties
 PropertyDefined by
  document : Object
[read-only] The MXML document that created this object.
Palette
  entries : Array
An array of PaletteEntry objects.
Palette
  id : String
The identifier used by document to refer to this object.
Palette
  isInitialized : Boolean
[read-only]
Palette
  name : String
[read-only] The name that refers to this object.
Palette
  palette : Palette
Palette
  paletteEntries : Dictionary
An dictionary of palette entries.
Palette
Public Methods
 MethodDefined by
  
Palette
  
clear():void
Removes all palette entries.
Palette
  
getItemByIndex(value:int):*
Returns a palette entry item by index.
Palette
  
getItemByName(value:String):*
Returns a palette entry item by name.
Palette
  
getValueByIndex(value:int):*
Returns a palette entry value by index.
Palette
  
getValueByName(value:String):*
Returns a palette entry value by name.
Palette
  
initialized(document:Object, id:String):void
Called after the implementing object has been created and all component properties specified on the MXML tag have been initialized.
Palette
Protected Methods
 MethodDefined by
  
callProperty(name:*, ... rest):*
Palette
  
getProperty(name:*):*
Palette
  
setProperty(name:*, value:*):void
Palette
Events
 EventSummaryDefined by
    Palette
    Palette
Property detail
documentproperty
document:Object  [read-only]

The MXML document that created this object.

This property can be used as the source for data binding.

Implementation
    public function get document():Object
entriesproperty 
entries:Array  [read-write]

An array of PaletteEntry objects.

This property can be used as the source for data binding.

Implementation
    public function get entries():Array
    public function set entries(value:Array):void
idproperty 
id:String  [read-write]

The identifier used by document to refer to this object.

This property can be used as the source for data binding.

Implementation
    public function get id():String
    public function set id(value:String):void
isInitializedproperty 
isInitialized:Boolean  [read-only]

This property can be used as the source for data binding.

Implementation
    public function get isInitialized():Boolean
nameproperty 
name:String  [read-only]

The name that refers to this object.

This property can be used as the source for data binding.

Implementation
    public function get name():String
paletteproperty 
public var palette:Palette
paletteEntriesproperty 
public var paletteEntries:Dictionary

An dictionary of palette entries.

Constructor detail
Palette()constructor
public function Palette()
Method detail
callProperty()method
flash_proxy override function callProperty(name:*, ... rest):*Parameters
name:*
 
... rest

Returns
*
clear()method 
public function clear():void

Removes all palette entries.

getItemByIndex()method 
public function getItemByIndex(value:int):*

Returns a palette entry item by index.

Parameters
value:int

Returns
* — a palette entry object.
getItemByName()method 
public function getItemByName(value:String):*

Returns a palette entry item by name.

Parameters
value:String

Returns
* — a palette entry object.
getProperty()method 
flash_proxy override function getProperty(name:*):*Parameters
name:*

Returns
*
getValueByIndex()method 
public function getValueByIndex(value:int):*

Returns a palette entry value by index.

Parameters
value:int

Returns
* — a palette entry objects value.
getValueByName()method 
public function getValueByName(value:String):*

Returns a palette entry value by name.

Parameters
value:String

Returns
* — a palette entry objects value.
initialized()method 
public function initialized(document:Object, id:String):void

Called after the implementing object has been created and all component properties specified on the MXML tag have been initialized.

Parameters
document:Object — The MXML document that created this object.
 
id:String — The identifier used by document to refer to this object.
setProperty()method 
flash_proxy override function setProperty(name:*, value:*):voidParameters
name:*
 
value:*
Event detail
initializeevent 
Event object type: mx.events.FlexEvent

propertyChangeevent  
Event object type: mx.events.PropertyChangeEvent