Class jls.gui.Style

This class provides style for Element.
Defined in: Style.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
jls.gui.Style(properties)
Creates a style.
Method Summary
Method Attributes Method Name and Description
 
activate(properties)
Activates this style.
 
Returns the value of a property.
 
Removes a property.
 
setHandler(handler)
Sets a handler on this style.
 
setProperties(properties, list)
Sets properties.
 
setProperty(key, value)
Sets a property.
Class Detail
jls.gui.Style(properties)
Creates a style.
Parameters:
{Object} properties Optional
The style properties to activate.
Method Detail
activate(properties)
Activates this style.
Parameters:
{Object} properties Optional
The style properties to activate.

{Object} getPropertyValue(key)
Returns the value of a property.
Parameters:
{String} key
The property key.
Returns:
{Object} The property value or null.

{Object} removeProperty(key)
Removes a property.
Parameters:
{String} key
The property key.
Returns:
{Object} The previous property value if any.

{Function} setHandler(handler)
Sets a handler on this style.
Parameters:
{Function} handler
The element to link to this style.
Returns:
{Function} The previous handler if any.

setProperties(properties, list)
Sets properties.
Parameters:
{Object} properties
The style properties to set.
{Array} list Optional
The property to set.

{Object} setProperty(key, value)
Sets a property.
Parameters:
{String} key
The property key.
{String} value
The value of the property.
Returns:
{Object} The previous property value if any.

Documentation generated by JsDoc Toolkit 2.3.2 on Sat Jan 08 2011 02:00:12 GMT+0100 (CET)