| Package | com.adobe.portfolio.components.supportClasses |
| Class | public class ColorPalette |
| Inheritance | ColorPalette flash.events.EventDispatcher |
| Property | Defined By | ||
|---|---|---|---|
| accentColor : Number [read-only]
The accentColor color, as specified by this palette. | ColorPalette | ||
| background : Number The background color, as specified by this palette. | ColorPalette | ||
| cardBackground : Number The cardBackground color, as specified by this palette. | ColorPalette | ||
| cardBorder : Number The cardBorder color, as specified by this palette. | ColorPalette | ||
| isHighContrast : Boolean
A boolean indicating whether or not this object represents a color palette in high contrast mode. | ColorPalette | ||
| primaryColor : Number [read-only]
The primaryColor color, as specified by this palette. | ColorPalette | ||
| primaryText : Number The primaryText color, as specified by this palette. | ColorPalette | ||
| secondaryText : Number The secondaryText color, as specified by this palette. | ColorPalette | ||
| Method | Defined By | ||
|---|---|---|---|
ColorPalette(target:IEventDispatcher = null) | ColorPalette | ||
generateRawPalette():Object
Returns a raw color palette object corresponding to this palette's color values
suitable for updating the INavigatorHost. | ColorPalette | ||
reset():void Resets the color palette to its default values. | ColorPalette | ||
setColorPalette(navHostPalette:Object):void
Sets this palette according to the raw color palette object specified by an INavigatorHost. | ColorPalette | ||
| accentColor | property |
accentColor:Number [read-only]
The accentColor color, as specified by this palette. This property is identical to the
secondaryText property, but is exposed with an alternate name to reflect usage.
This property can be used as the source for data binding.
public function get accentColor():NumberSee also
| background | property |
background:NumberThe background color, as specified by this palette.
This property can be used as the source for data binding.
public function get background():Number public function set background(value:Number):void| cardBackground | property |
cardBackground:NumberThe cardBackground color, as specified by this palette.
This property can be used as the source for data binding.
public function get cardBackground():Number public function set cardBackground(value:Number):void| cardBorder | property |
cardBorder:NumberThe cardBorder color, as specified by this palette.
This property can be used as the source for data binding.
public function get cardBorder():Number public function set cardBorder(value:Number):void| isHighContrast | property |
isHighContrast:BooleanA boolean indicating whether or not this object represents a color palette in high contrast mode.
This property can be used as the source for data binding.
public function get isHighContrast():Boolean public function set isHighContrast(value:Boolean):void| primaryColor | property |
primaryColor:Number [read-only]
The primaryColor color, as specified by this palette. This property is identical to the
cardBackground property, but is exposed with an alternate name to reflect usage.
This property can be used as the source for data binding.
public function get primaryColor():NumberSee also
| primaryText | property |
primaryText:NumberThe primaryText color, as specified by this palette.
This property can be used as the source for data binding.
public function get primaryText():Number public function set primaryText(value:Number):void| secondaryText | property |
secondaryText:NumberThe secondaryText color, as specified by this palette.
This property can be used as the source for data binding.
public function get secondaryText():Number public function set secondaryText(value:Number):void| ColorPalette | () | Constructor |
public function ColorPalette(target:IEventDispatcher = null)target:IEventDispatcher (default = null) |
| generateRawPalette | () | method |
public function generateRawPalette():ObjectReturns a raw color palette object corresponding to this palette's color values suitable for updating the INavigatorHost.
ReturnsObject |
| reset | () | method |
public function reset():voidResets the color palette to its default values. XXX What should the default values be?
| setColorPalette | () | method |
public function setColorPalette(navHostPalette:Object):voidSets this palette according to the raw color palette object specified by an INavigatorHost.
Parameters
navHostPalette:Object |