All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.css.properties.CssPaddingTop

java.lang.Object
   |
   +----org.w3c.css.properties.CssProperty
           |
           +----org.w3c.css.properties.CssPaddingSide
                   |
                   +----org.w3c.css.properties.CssPaddingTop

public class CssPaddingTop
extends CssPaddingSide

   'padding-top'

Value: <length> | <percentage>
Initial: 0
Applies to: all elements
Inherited: no
Percentage values: refer to parent element's width

This property sets the top padding of an element.

   BLOCKQUOTE { padding-top: 0.3em }
 

Padding values cannot be negative.


Constructor Index

 o CssPaddingTop()
Create a new CssPaddingTop
 o CssPaddingTop(CssExpression)
Create a new CssPaddingTop
 o CssPaddingTop(CssPaddingSide)
Create a new CssPaddingTop with an another CssPaddingSide.

Method Index

 o addToStyle(CssStyle)
Add this property to the CssStyle.
 o equals(CssProperty)
Compares two properties for equality.
 o getPropertyInStyle(CssStyle, boolean)
Get this property in the style.
 o getPropertyName()
Returns the name of this property

Constructors

 o CssPaddingTop
 public CssPaddingTop()
Create a new CssPaddingTop

 o CssPaddingTop
 public CssPaddingTop(CssPaddingSide another)
Create a new CssPaddingTop with an another CssPaddingSide.

Parameters:
another - The another side.
 o CssPaddingTop
 public CssPaddingTop(CssExpression expression) throws InvalidParamException
Create a new CssPaddingTop

Parameters:
expression - The expression for this property.
Throws: InvalidParamException
Values are incorrect

Methods

 o getPropertyName
 public String getPropertyName()
Returns the name of this property

Overrides:
getPropertyName in class CssProperty
 o addToStyle
 public void addToStyle(CssStyle style)
Add this property to the CssStyle.

Parameters:
style - The CssStyle
Overrides:
addToStyle in class CssProperty
 o getPropertyInStyle
 public CssProperty getPropertyInStyle(CssStyle style,
                                       boolean resolve)
Get this property in the style.

Parameters:
style - The style where the property is
resolve - if true, resolve the style to find this property
Overrides:
getPropertyInStyle in class CssProperty
 o equals
 public boolean equals(CssProperty property)
Compares two properties for equality.

Parameters:
value - The other property.
Overrides:
equals in class CssProperty

All Packages  Class Hierarchy  This Package  Previous  Next  Index