Packagecom.adobe.portfolio.components.supportClasses
Classpublic class ColorPalette
InheritanceColorPalette Inheritance flash.events.EventDispatcher

A class containing standard color values used by PortfolioFramework components and their skins.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
ColorPalette(target:IEventDispatcher = null)
Default constructor
ColorPalette
  
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
Property Detail
accentColorproperty
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.


Implementation
    public function get accentColor():Number

See also

backgroundproperty 
background:Number

The background color, as specified by this palette.

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


Implementation
    public function get background():Number
    public function set background(value:Number):void
cardBackgroundproperty 
cardBackground:Number

The cardBackground color, as specified by this palette.

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


Implementation
    public function get cardBackground():Number
    public function set cardBackground(value:Number):void
cardBorderproperty 
cardBorder:Number

The cardBorder color, as specified by this palette.

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


Implementation
    public function get cardBorder():Number
    public function set cardBorder(value:Number):void
isHighContrastproperty 
isHighContrast:Boolean

A 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.


Implementation
    public function get isHighContrast():Boolean
    public function set isHighContrast(value:Boolean):void
primaryColorproperty 
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.


Implementation
    public function get primaryColor():Number

See also

primaryTextproperty 
primaryText:Number

The primaryText color, as specified by this palette.

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


Implementation
    public function get primaryText():Number
    public function set primaryText(value:Number):void
secondaryTextproperty 
secondaryText:Number

The secondaryText color, as specified by this palette.

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


Implementation
    public function get secondaryText():Number
    public function set secondaryText(value:Number):void
Constructor Detail
ColorPalette()Constructor
public function ColorPalette(target:IEventDispatcher = null)

Default constructor

Parameters
target:IEventDispatcher (default = null)
Method Detail
generateRawPalette()method
public function generateRawPalette():Object

Returns a raw color palette object corresponding to this palette's color values suitable for updating the INavigatorHost.

Returns
Object
reset()method 
public function reset():void

Resets the color palette to its default values.

setColorPalette()method 
public function setColorPalette(navHostPalette:Object):void

Sets this palette according to the raw color palette object specified by an INavigatorHost.

Parameters

navHostPalette:Object

See also

INavigatorHost.navigatorColorPalette