Packagecom.sibirjak.jakute.constants
Classpublic class JCSS_StyleValueFormat



Public Constants
 ConstantDefined by
  FORMAT_BOOLEAN : String = "jcss_format_boolan"
[static] Constant for the boolean formatter.
JCSS_StyleValueFormat
  FORMAT_CLASS : String = "jcss_format_class"
[static] Constant for the class formatter.
JCSS_StyleValueFormat
  FORMAT_HTML_COLOR : String = "jcss_format_html_color"
[static] Constant for the color formatter.
JCSS_StyleValueFormat
  FORMAT_HTML_COLOR_LIST : String = "jcss_format_html_color_list"
[static] Constant for the color list formatter.
JCSS_StyleValueFormat
  FORMAT_NUMBER : String = "jcss_format_number"
[static] Constant for the number formatter.
JCSS_StyleValueFormat
  FORMAT_SKIN : String = "jcss_format_skin"
[static] Constant for the skin formatter.
JCSS_StyleValueFormat
  FORMAT_STRING : String = "jcss_format_string"
[static] Constant for the string formatter.
JCSS_StyleValueFormat
  FORMAT_STRING_LIST : String = "jcss_format_string_list"
[static] Constant for the string list formatter.
JCSS_StyleValueFormat
Constant detail
FORMAT_BOOLEANconstant
public static const FORMAT_BOOLEAN:String = "jcss_format_boolan"

Constant for the boolean formatter.

The boolean formatter casts true, 1, "1" and "true" to true and the rest to false.

FORMAT_CLASSconstant 
public static const FORMAT_CLASS:String = "jcss_format_class"

Constant for the class formatter.

If the given value is already of type class, the value is returned. All other values are tried to convert into a class by using flash.utils.getDefinitionByName().

FORMAT_HTML_COLORconstant 
public static const FORMAT_HTML_COLOR:String = "jcss_format_html_color"

Constant for the color formatter.

The color formatter accepts uint values or HTML color values such as "#FF0000". uint values are simply returned while HTML color values are converted into uint.

FORMAT_HTML_COLOR_LISTconstant 
public static const FORMAT_HTML_COLOR_LIST:String = "jcss_format_html_color_list"

Constant for the color list formatter.

If the value is passed as String, the string list formatter splits the given value on the comma char and returns an array of uint values. A valid example value is: color: #FFFFFF, #FF0000, #FF00FF;

If the value is passed as Array, the formatter returns that array.

FORMAT_NUMBERconstant 
public static const FORMAT_NUMBER:String = "jcss_format_number"

Constant for the number formatter.

The number formatter simply casts the given value to Number.

FORMAT_SKINconstant 
public static const FORMAT_SKIN:String = "jcss_format_skin"

Constant for the skin formatter.

If the given value is already of type JCSS_SkinReference, the value is returned.

If the value is of type String, the formatter creates a new JCSS_SkinReference using the following pattern:

   com.path.to.the.SkinClass [cache=CACHENAME, construct=CONSTRUCTOR_PARAMETER]
   

The parameters in the square brackets are optional. Use use them to create cached stateful skins where the client is supposed to cache a skin instance using the value of the cache parameter and to pass the value of the construct parameter right to the constructor of the skin. This enables different states for skins of the same class.

You can set a skin style programatically as shown in the next listing:

   myButton.setStyle(":over", "skin", new JCSS_SkinReference(SkinClass, "over", "over"));
   

The first parameter of JCSS_SkinReference is a reference to the class to be instantiated as the skin. The second is a cache identifier, the last parameter is a value that gets passed to the skin class constructor.

FORMAT_STRINGconstant 
public static const FORMAT_STRING:String = "jcss_format_string"

Constant for the string formatter.

The string formatter simply casts the given value to String.

FORMAT_STRING_LISTconstant 
public static const FORMAT_STRING_LIST:String = "jcss_format_string_list"

Constant for the string list formatter.

If the value is passed as String, the string list formatter splits the given value on the comma char and returns an array of values.

If the value is passed as Array, the formatter returns that array.