StyleSheet

public class
loom.css.StyleSheet

Description

Class: StyleSheet The StyleSheet class provides a way to parse a of css and query/merge styles via stylename.

Package: UI.CSS.*

Assembly: UI.loomlib

See Also:

API overview

Constructor

StyleSheet ( name: String = undefined )

Attributes

Public attributes

name: String
onUpdate: StyleUpdatedDelegate
source: String

Protected attributes

Functions

Public functions

clear (): Void
defineAttribute ( name: String , value: Object ): Void

Group: Public Functions

getStyle ( styleNames: String ): IStyle
hasStyle ( name: String ): Boolean
newStyle ( name: String , style: IStyle ): Void
parseCSS ( cssText: String ): Void
relatedStyles ( name: String ): Vector.<String>
styleLookup ( styleName: String , getRelated: Boolean = true ): IStyle

Protected functions

Constructor

StyleSheet ( name: String = undefined )

Attributes

name: String

source: String

Protected attributes

Functions

clear (): Void



defineAttribute ( name: String , value: Object ): Void

Group: Public Functions

Parameters

name: String
value: Object


getFullTypeName (): String
Inherited from Object

native

Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.


Returns

String fully qualified type name of the Object.

getStyle ( styleNames: String ): IStyle

Parameters

styleNames: String


getType (): Type
Inherited from Object

native

Gets the Type that describes the Object.


Returns

Type The Type that describes the object.

getTypeName (): String
Inherited from Object

native

Gets the type name of the Object.


Returns

String type name of the Object.

hasStyle ( name: String ): Boolean

Parameters

name: String


newStyle ( name: String , style: IStyle ): Void

Parameters

name: String
style: IStyle


parseCSS ( cssText: String ): Void

Parameters

cssText: String


relatedStyles ( name: String ): Vector.<String>

Parameters

name: String


styleLookup ( styleName: String , getRelated: Boolean = true ): IStyle

Parameters

styleName: String
getRelated: Boolean = true


toString (): String
Inherited from Object

native

Returns a String that describes the Object. This can be overriden to provide extra details when printing objects using trace().


Returns

String String that described the Object.

Protected functions