All Packages Class Hierarchy This Package Previous Next Index
Class org.w3c.css.properties.CssPaddingRight
java.lang.Object
|
+----org.w3c.css.properties.CssProperty
|
+----org.w3c.css.properties.CssPaddingSide
|
+----org.w3c.css.properties.CssPaddingRight
- public class CssPaddingRight
- extends CssPaddingSide
'padding-right'
Value: <length> | <percentage>
Initial: 0
Applies to: all elements
Inherited: no
Percentage values: refer to parent element's width
This property sets the right padding of an element.
BLOCKQUOTE { padding-right: 10px }
Padding values cannot be negative.
-
CssPaddingRight()
- Create a new CssPaddingRight
-
CssPaddingRight(CssExpression)
- Create a new CssPaddingRight
-
CssPaddingRight(CssPaddingSide)
- Create a new CssPaddingRight with an another CssPaddingSide
-
addToStyle(CssStyle)
- Add this property to the CssStyle.
-
equals(CssProperty)
- Compares two properties for equality.
-
getPropertyInStyle(CssStyle, boolean)
- Get this property in the style.
-
getPropertyName()
- Returns the name of this property
CssPaddingRight
public CssPaddingRight()
- Create a new CssPaddingRight
CssPaddingRight
public CssPaddingRight(CssPaddingSide another)
- Create a new CssPaddingRight with an another CssPaddingSide
- Parameters:
- another - The another side
CssPaddingRight
public CssPaddingRight(CssExpression expression) throws InvalidParamException
- Create a new CssPaddingRight
- Parameters:
- expression - The expression for this property.
- Throws: InvalidParamException
- Values are incorrect
getPropertyName
public String getPropertyName()
- Returns the name of this property
- Overrides:
- getPropertyName in class CssProperty
addToStyle
public void addToStyle(CssStyle style)
- Add this property to the CssStyle.
- Parameters:
- style - The CssStyle
- Overrides:
- addToStyle in class CssProperty
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
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