Package | com.adobe.portfolio.components.supportClasses |
Class | public class ColorPalette |
Inheritance | ColorPalette ![]() |
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)
Default constructor
| 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():Number
See also
background | property |
background:Number
The 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:Number
The 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:Number
The 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: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.
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():Number
See also
primaryText | property |
primaryText:Number
The 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:Number
The 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)
Default constructor
Parameterstarget:IEventDispatcher (default = null )
|
generateRawPalette | () | method |
public function generateRawPalette():Object
Returns a raw color palette object corresponding to this palette's color values suitable for updating the INavigatorHost.
ReturnsObject |
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