org.xwiki.gwt.dom.client
Class Property

java.lang.Object
  extended by org.xwiki.gwt.dom.client.Property
Direct Known Subclasses:
Style.FloatProperty

public class Property
extends Object

Style property.

Version:
$Id: 752cd99f9feaf70bf69bd28ce709448b0a30d433 $

Constructor Summary
Property(String cssName, boolean inheritable, boolean multipleValue, String defaultValue)
          Creates a new style property with the given description.
Property(String cssName, String jsName, boolean inheritable, boolean multipleValue, String defaultValue)
          Creates a new style property with the given description.
 
Method Summary
 String getCSSName()
           
 String getDefaultValue()
           
 String getJSName()
           
 boolean isInheritable()
           
 boolean isMultipleValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Property

public Property(String cssName,
                boolean inheritable,
                boolean multipleValue,
                String defaultValue)
Creates a new style property with the given description.

Parameters:
cssName - the name of property, used in style sheets
inheritable - whether the property is inherited by child nodes or not
multipleValue - whether the property can have multiple values or not
defaultValue - the default value of the property

Property

public Property(String cssName,
                String jsName,
                boolean inheritable,
                boolean multipleValue,
                String defaultValue)
Creates a new style property with the given description.

Parameters:
cssName - the name of property, used in style sheets
jsName - the name of this property, used in scripts
inheritable - whether the property is inherited by child nodes or not
multipleValue - whether the property can have multiple values or not
defaultValue - the default value of the property
Method Detail

getCSSName

public String getCSSName()
Returns:
the name of this property used in style sheets

getJSName

public String getJSName()
Returns:
the name of this property used in scripts

isInheritable

public boolean isInheritable()
Returns:
true if this property is inherited by child nodes, false otherwise

isMultipleValue

public boolean isMultipleValue()
Returns:
true if this property can have multiple values, false otherwise

getDefaultValue

public String getDefaultValue()
Returns:
the default value of this property


Copyright © 2004–2015 XWiki. All rights reserved.