com.osbcp.css
Class CSS

java.lang.Object
  extended by com.osbcp.css.CSS
All Implemented Interfaces:
java.io.Serializable

public class CSS
extends java.lang.Object
implements java.io.Serializable

Java representation of CSS which can be exported to a stylesheet file.

Author:
Christoffer Pettersson
See Also:
Serialized Form

Field Summary
static AUTO AUTO
          Convenient variable that represents the AUTO unit
 
Constructor Summary
CSS()
          Constructor that creates a new CSS instance.
 
Method Summary
 CSS addPseudoSelector(PseudoSelector pseudoSelector, CSS css)
          Adds a pseudo selector to the current CSS.
 CSS clear(java.lang.String key)
          Clears a specific CSS attribute.
static CM CM(int length)
          Creates a new centimeter (cm) CSS unit.
 CSS copy()
          Copies the current CSS object to a new CSS object.
static EM EM(int length)
          Creates a new em CSS unit.
static EX EX(int length)
          Creates a new ex CSS unit.
static void export(java.lang.Class<?> stylesheetClass, java.io.File stylesheetFile, boolean includeComments)
          Exports all the CSS declared in a specific class to a specific file.
 java.lang.String getClassName()
          Returns the class name for the CSS, based on the declared attributes.
 java.util.Map<java.lang.String,java.io.Serializable> getSheet()
          Returns all the current declared CSS attributes.
static IN IN(int length)
          Creates a new inch (in) CSS unit.
static MM MM(int length)
          Creates a new millimeter (mm) CSS unit.
static PC PC(int length)
          Creates a new pica (pc) CSS unit.
static PCT PCT(int length)
          Creates a new percent (%) CSS unit.
static PT PT(int length)
          Creates a new point (pt) CSS unit.
static PX PX(int length)
          Creates a new pixel (px) CSS unit.
 void setAttributeSelector(java.io.Serializable attribute)
          Sets the attribute selector.
 void setAttributeSelector(java.io.Serializable attribute, java.io.Serializable value)
          Sets the attribute selector.
 CSS setBackground(java.io.Serializable color, java.io.Serializable url, BackgroundRepeat repeat, BackgroundPosition position)
          Sets the background property.
 CSS setBackgroundAttachment(BackgroundAttachment attachment)
          Sets the background-attachment property.
 CSS setBackgroundColor(java.io.Serializable color)
          Sets the background-color property.
 CSS setBackgroundImage(java.io.Serializable url)
          Sets the background-image property.
 CSS setBackgroundPosition(BackgroundPosition position)
          Sets the background-position property.
 CSS setBackgroundPosition(Unit xpos, Unit ypos)
          Sets the background-position property.
 CSS setBackgroundRepeat(BackgroundRepeat repeat)
          Sets the background-repeat property.
 CSS setBorder(BorderWidth width, BorderStyle style, java.io.Serializable color)
          Sets the border property.
 CSS setBorder(Unit width, BorderStyle style, java.io.Serializable color)
          Sets the border property.
 CSS setBorderBottom(BorderWidth width, BorderStyle style, java.io.Serializable color)
          Sets the border-bottom property.
 CSS setBorderBottom(Unit width, BorderStyle style, java.io.Serializable color)
          Sets the border-bottom property.
 CSS setBorderBottomColor(java.io.Serializable color)
          Sets the border-bottom-color property.
 CSS setBorderBottomStyle(BorderStyle style)
          Sets the border-bottom-style property.
 CSS setBorderBottomWidth(BorderWidth width)
          Sets the border-bottom-width property.
 CSS setBorderBottomWidth(Unit width)
          Sets the border-bottom-width property.
 CSS setBorderColor(java.io.Serializable color)
          Sets the border-color property.
 CSS setBorderLeft(BorderWidth width, BorderStyle style, java.io.Serializable color)
          Sets the border-left property.
 CSS setBorderLEft(Unit width, BorderStyle style, java.io.Serializable color)
          Sets the border-left property.
 CSS setBorderLeftColor(java.io.Serializable color)
          Sets the border-left-color property.
 CSS setBorderLeftStyle(BorderStyle style)
          Sets the border-left-style property.
 CSS setBorderLeftWidth(BorderWidth width)
          Sets the border-left-width property.
 CSS setBorderLeftWidth(Unit width)
          Sets the border-left-width property.
 CSS setBorderRight(BorderWidth width, BorderStyle style, java.io.Serializable color)
          Sets the border-right property.
 CSS setBorderRight(Unit width, BorderStyle style, java.io.Serializable color)
          Sets the border-right property.
 CSS setBorderRightColor(java.io.Serializable color)
          Sets the border-right-color property.
 CSS setBorderRightStyle(BorderStyle style)
          Sets the border-right-style property.
 CSS setBorderRightWidth(BorderWidth width)
          Sets the border-right-width property.
 CSS setBorderRightWidth(Unit width)
          Sets the border-right-width property.
 CSS setBorderStyle(BorderStyle style)
          Sets the border-style property.
 CSS setBorderTop(BorderWidth width, BorderStyle style, java.io.Serializable color)
          Sets the border-top property.
 CSS setBorderTop(Unit width, BorderStyle style, java.io.Serializable color)
          Sets the border-top property.
 CSS setBorderTopColor(java.io.Serializable color)
          Sets the border-top-color property.
 CSS setBorderTopStyle(BorderStyle style)
          Sets the border-top-style property.
 CSS setBorderTopWidth(BorderWidth width)
          Sets the border-top-width property.
 CSS setBorderTopWidth(Unit width)
          Sets the border-top-width property.
 CSS setBorderWidth(BorderWidth width)
          Sets the border-width property.
 CSS setBorderWidth(Unit width)
          Sets the border-width property.
 CSS setBottom(Unit bottom)
          Sets the bottom property.
 CSS setClear(Clear clear)
          Sets the clear property.
 CSS setClipShape(Unit top, Unit right, Unit bottom, Unit left)
          Sets the clip property.
 CSS setColor(java.io.Serializable color)
          Sets the color property.
 CSS setCursor(Cursor cursor)
          Sets the cursor property.
 CSS setCursor(java.io.Serializable url)
          Sets the cursor property.
 CSS setDirection(TextDirection direction)
          Sets the direction property.
 CSS setDisplay(Display display)
          Sets the display property.
 CSS setFloat(Float f)
          Sets the float property.
 CSS setFontFamily(java.io.Serializable family)
          Sets the font-family property.
 CSS setFontSize(Unit size)
          Sets the font-size property.
 CSS setFontStyle(FontStyle style)
          Sets the font-style property.
 CSS setFontVariant(FontVariant variant)
          Sets the font-variant property.
 CSS setFontWeight(FontWeight weight)
          Sets the font-weight property.
 CSS setHeight(Unit height)
          Sets the height property.
 CSS setLeft(Unit left)
          Sets the left property.
 CSS setLetterSpacing(Unit spacing)
          Sets the letter-spacing property.
 CSS setLineHeight(Unit height)
          Sets the line-height property.
 CSS setListStyleImage(java.io.Serializable url)
          Sets the list-style-image property.
 CSS setListStylePosition(ListStylePosition position)
          Sets the list-style-position property.
 CSS setListStyleType(ListStyleType type)
          Sets the list-style-type property.
 CSS setMargin(Unit margin)
          Sets the margin property.
 CSS setMargin(Unit topBottom, Unit rightLeft)
          Sets the margin property.
 CSS setMargin(Unit top, Unit rightLeft, Unit bottom)
          Sets the margin property.
 CSS setMargin(Unit top, Unit right, Unit bottom, Unit left)
          Sets the margin property.
 CSS setMarginBottom(Unit margin)
          Sets the margin-bottom property.
 CSS setMarginLeft(Unit margin)
          Sets the margin-left property.
 CSS setMarginRight(Unit margin)
          Sets the margin-right property.
 CSS setMarginTop(Unit margin)
          Sets the margin-top property.
 CSS setMaxHeight(Unit height)
          Sets the max-height property.
 CSS setMaxWidth(Unit width)
          Sets the max-width property.
 CSS setMinHeight(Unit height)
          Sets the min-height property.
 CSS setMinWidth(Unit width)
          Sets the min-width property.
 CSS setOutline(java.io.Serializable color, OutlineStyle style, OutlineWidth width)
          Sets the outline property.
 CSS setOutline(java.io.Serializable color, OutlineStyle style, Unit width)
          Sets the outline property.
 CSS setOutlineColor(java.io.Serializable color)
          Sets the outline-color property.
 CSS setOutlineStyle(OutlineStyle style)
          Sets the outline-style property.
 CSS setOutlineStyle(OutlineWidth width)
          Sets the outline-width property.
 CSS setOutlineWidth(Unit width)
          Sets the outline-width property.
 CSS setOverflow(Overflow overflow)
          Sets the overflow property.
 CSS setPadding(Unit padding)
          Sets the padding property.
 CSS setPadding(Unit topBottom, Unit rightLeft)
          Sets the padding property.
 CSS setPadding(Unit top, Unit rightLeft, Unit bottom)
          Sets the padding property.
 CSS setPadding(Unit top, Unit right, Unit bottom, Unit left)
          Sets the padding property.
 CSS setPaddingBottom(Unit margin)
          Sets the padding-bottom property.
 CSS setPaddingLeft(Unit margin)
          Sets the padding-left property.
 CSS setPaddingRight(Unit margin)
          Sets the padding-right property.
 CSS setPaddingTop(Unit margin)
          Sets the padding-top property.
 CSS setPosition(Position position)
          Sets the position property.
 CSS setRight(Unit right)
          Sets the right property.
 CSS setTextAlign(TextAlign alignment)
          Sets the text-align property.
 CSS setTextDecoration(TextDecoration decoration)
          Sets the text-decoration property.
 CSS setTextIndent(Unit indent)
          Sets the text-indent property.
 CSS setTextShadow(Unit hShadow, Unit vShadow, Unit blur, java.io.Serializable color)
          Sets the text-shadow property.
 CSS setTextTransform(TextTransform transform)
          Sets the text-transform property.
 CSS setTop(Unit top)
          Sets the top property.
 CSS setVerticalAlign(Unit alignment)
          Sets the vertical-align property.
 CSS setVerticalAlign(VerticalAlign alignment)
          Sets the vertical-align property.
 CSS setWhiteSpace(WhiteSpace space)
          Sets the white-space property.
 CSS setWidth(Unit width)
          Sets the width property.
 CSS setVisibility(Visibility visibility)
          Sets the visibility property.
 CSS setWordSpacing(Unit spacing)
          Sets the word-spacing property.
 CSS setZIndex(int zIndex)
          Sets the z-index property.
 java.lang.String toString()
          Returns the CSS properties on a single row, for example: background-color: color; text-align: right; color: blue;
 java.lang.String toStringBlock()
          Returns the CSS properties in a structured block, for example: #4cafc7ba191a3557d9fe40b67957dbaa { background-color: color; }
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AUTO

public static AUTO AUTO
Convenient variable that represents the AUTO unit

Constructor Detail

CSS

public CSS()
Constructor that creates a new CSS instance.

Method Detail

getClassName

public java.lang.String getClassName()
Returns the class name for the CSS, based on the declared attributes. This class name is also used when creating a CSS block.

Returns:
The class name for the CSS, based on the declared attributes.

copy

public CSS copy()
Copies the current CSS object to a new CSS object.

Returns:
The current CSS object to a new CSS object.

clear

public CSS clear(java.lang.String key)
Clears a specific CSS attribute.

Parameters:
key - The CSS attribute name to be cleared
Returns:
The current CSS object

getSheet

public java.util.Map<java.lang.String,java.io.Serializable> getSheet()
Returns all the current declared CSS attributes.

Returns:
All the current declared CSS attributes.

setAttributeSelector

public void setAttributeSelector(java.io.Serializable attribute)
Sets the attribute selector.

Parameters:
attribute - The attribute.
See Also:
CSS Attribute Selectors

setAttributeSelector

public void setAttributeSelector(java.io.Serializable attribute,
                                 java.io.Serializable value)
Sets the attribute selector.

Parameters:
attribute - The attribute.
value - The value.
See Also:
CSS Attribute Selectors

export

public static void export(java.lang.Class<?> stylesheetClass,
                          java.io.File stylesheetFile,
                          boolean includeComments)
                   throws java.lang.Exception
Exports all the CSS declared in a specific class to a specific file.

Parameters:
stylesheetClass - The class that contains the declared CSS fields.
stylesheetFile - The output file to be created and written to.
includeComments - True if comments should be written as well.
Throws:
java.lang.Exception - If any error occurs

toStringBlock

public java.lang.String toStringBlock()
Returns the CSS properties in a structured block, for example:
 #4cafc7ba191a3557d9fe40b67957dbaa {
        background-color: color;
 } 
 

Returns:
The CSS in a structured block

toString

public java.lang.String toString()
Returns the CSS properties on a single row, for example:
 background-color: color; text-align: right; color: blue;
 

Overrides:
toString in class java.lang.Object
Returns:
The CSS properties on a single row, for example:

CM

public static CM CM(int length)
Creates a new centimeter (cm) CSS unit.

Parameters:
length - The numeric length value.
Returns:
A new centimeter (cm) CSS unit.
See Also:
CSS Units

EM

public static EM EM(int length)
Creates a new em CSS unit.

Parameters:
length - The numeric length value.
Returns:
A new em CSS unit.
See Also:
CSS Units

EX

public static EX EX(int length)
Creates a new ex CSS unit.

Parameters:
length - The numeric length value.
Returns:
A new ex CSS unit.
See Also:
CSS Units

IN

public static IN IN(int length)
Creates a new inch (in) CSS unit.

Parameters:
length - The numeric length value.
Returns:
A new inch (in) CSS unit.
See Also:
CSS Units

MM

public static MM MM(int length)
Creates a new millimeter (mm) CSS unit.

Parameters:
length - The numeric length value.
Returns:
A new millimeter (mm) CSS unit.
See Also:
CSS Units

PC

public static PC PC(int length)
Creates a new pica (pc) CSS unit.

Parameters:
length - The numeric length value.
Returns:
A new pica (pc) CSS unit.
See Also:
CSS Units

PCT

public static PCT PCT(int length)
Creates a new percent (%) CSS unit.

Parameters:
length - The numeric length value.
Returns:
A new percent (%) CSS unit.
See Also:
CSS Units

PT

public static PT PT(int length)
Creates a new point (pt) CSS unit.

Parameters:
length - The numeric length value.
Returns:
A new point (pt) CSS unit.
See Also:
CSS Units

PX

public static PX PX(int length)
Creates a new pixel (px) CSS unit.

Parameters:
length - The numeric length value.
Returns:
A new pixel (px) CSS unit.
See Also:
CSS Units

addPseudoSelector

public CSS addPseudoSelector(PseudoSelector pseudoSelector,
                             CSS css)
Adds a pseudo selector to the current CSS.

Parameters:
pseudoSelector - The pseudo selector the CSS should add.
css - The CSS associated with the pseudo selector.
Returns:
The current CSS object.
See Also:
CSS Pseudo-classes

setBackground

public CSS setBackground(java.io.Serializable color,
                         java.io.Serializable url,
                         BackgroundRepeat repeat,
                         BackgroundPosition position)
Sets the background property.

Parameters:
color - The color value to be set.
url - The url value to be set.
repeat - The repeat value to be set.
position - The position value to be set.
Returns:
The current CSS object.
See Also:
CSS Background

setBackgroundColor

public CSS setBackgroundColor(java.io.Serializable color)
Sets the background-color property.

Parameters:
color - The color value to be set.
Returns:
The current CSS object.
See Also:
CSS background-color Property

setBackgroundImage

public CSS setBackgroundImage(java.io.Serializable url)
Sets the background-image property.

Parameters:
url - The url value to be set.
Returns:
The current CSS object.
See Also:
CSS background-image Property

setBackgroundRepeat

public CSS setBackgroundRepeat(BackgroundRepeat repeat)
Sets the background-repeat property.

Parameters:
repeat - The repeat value to be set.
Returns:
The current CSS object.
See Also:
CSS background-repeat Property

setBackgroundAttachment

public CSS setBackgroundAttachment(BackgroundAttachment attachment)
Sets the background-attachment property.

Parameters:
attachment - The attachment value to be set.
Returns:
The current CSS object.
See Also:
CSS background-attachment Property

setBackgroundPosition

public CSS setBackgroundPosition(BackgroundPosition position)
Sets the background-position property.

Parameters:
position - The position value to be set.
Returns:
The current CSS object.
See Also:
CSS background-position Property

setBackgroundPosition

public CSS setBackgroundPosition(Unit xpos,
                                 Unit ypos)
Sets the background-position property.

Parameters:
xpos - The horizontal position.
ypos - The vertical position.
Returns:
The current CSS object.
See Also:
CSS background-position Property

setColor

public CSS setColor(java.io.Serializable color)
Sets the color property.

Parameters:
color - The color value to be set.
Returns:
The current CSS object.
See Also:
CSS Colors

setTextAlign

public CSS setTextAlign(TextAlign alignment)
Sets the text-align property.

Parameters:
alignment - The alignment value to be set.
Returns:
The current CSS object.
See Also:
CSS text-align Property

setDirection

public CSS setDirection(TextDirection direction)
Sets the direction property.

Parameters:
direction - The direction value to be set.
Returns:
The current CSS object.
See Also:
CSS direction Property

setLetterSpacing

public CSS setLetterSpacing(Unit spacing)
Sets the letter-spacing property.

Parameters:
spacing - The spacing value to be set.
Returns:
The current CSS object.
See Also:
CSS letter-spacing Property

setLineHeight

public CSS setLineHeight(Unit height)
Sets the line-height property.

Parameters:
height - The height value to be set.
Returns:
The current CSS object.
See Also:
CSS line-height Property

setTextDecoration

public CSS setTextDecoration(TextDecoration decoration)
Sets the text-decoration property.

Parameters:
decoration - The decoration value to be set.
Returns:
The current CSS object.
See Also:
CSS text-decoration Property

setTextIndent

public CSS setTextIndent(Unit indent)
Sets the text-indent property.

Parameters:
indent - The indent value to be set.
Returns:
The current CSS object.
See Also:
CSS text-indent Property

setTextShadow

public CSS setTextShadow(Unit hShadow,
                         Unit vShadow,
                         Unit blur,
                         java.io.Serializable color)
Sets the text-shadow property.

Parameters:
hShadow - The horizontal shadow value to be set.
vShadow - The vertical shadow value to be set.
blur - The blue value to be set.
color - The color value to be set.
Returns:
The current CSS object.
See Also:
CSS text-shadow Property

setTextTransform

public CSS setTextTransform(TextTransform transform)
Sets the text-transform property.

Parameters:
transform - The transform value to be set.
Returns:
The current CSS object.
See Also:
CSS text-transform Property

setVerticalAlign

public CSS setVerticalAlign(VerticalAlign alignment)
Sets the vertical-align property.

Parameters:
alignment - The alignment value to be set.
Returns:
The current CSS object.
See Also:
CSS vertical-align Property

setVerticalAlign

public CSS setVerticalAlign(Unit alignment)
Sets the vertical-align property.

Parameters:
alignment - The alignment value to be set.
Returns:
The current CSS object.
See Also:
CSS vertical-align Property

setWhiteSpace

public CSS setWhiteSpace(WhiteSpace space)
Sets the white-space property.

Parameters:
space - The space value to be set.
Returns:
The current CSS object.
See Also:
CSS white-space Property

setWordSpacing

public CSS setWordSpacing(Unit spacing)
Sets the word-spacing property.

Parameters:
spacing - The spacing value to be set.
Returns:
The current CSS object.
See Also:
CSS word-spacing Property

setFontFamily

public CSS setFontFamily(java.io.Serializable family)
Sets the font-family property.

Parameters:
family - The family value to be set.
Returns:
The current CSS object.
See Also:
CSS font-family Property

setFontSize

public CSS setFontSize(Unit size)
Sets the font-size property.

Parameters:
size - The family value to be set.
Returns:
The current CSS object.
See Also:
CSS font-size Property

setFontStyle

public CSS setFontStyle(FontStyle style)
Sets the font-style property.

Parameters:
style - The style value to be set.
Returns:
The current CSS object.
See Also:
CSS font-style Property

setFontVariant

public CSS setFontVariant(FontVariant variant)
Sets the font-variant property.

Parameters:
variant - The variant value to be set.
Returns:
The current CSS object.
See Also:
CSS font-variant Property

setFontWeight

public CSS setFontWeight(FontWeight weight)
Sets the font-weight property.

Parameters:
weight - The weight value to be set.
Returns:
The current CSS object.
See Also:
CSS font-weight Property

setListStyleType

public CSS setListStyleType(ListStyleType type)
Sets the list-style-type property.

Parameters:
type - The type value to be set.
Returns:
The current CSS object.
See Also:
CSS list-style-type Property

setListStylePosition

public CSS setListStylePosition(ListStylePosition position)
Sets the list-style-position property.

Parameters:
position - The position value to be set.
Returns:
The current CSS object.
See Also:
CSS list-style-position Property

setListStyleImage

public CSS setListStyleImage(java.io.Serializable url)
Sets the list-style-image property.

Parameters:
url - The url value to be set.
Returns:
The current CSS object.
See Also:
CSS list-style-image Property

setBorder

public CSS setBorder(Unit width,
                     BorderStyle style,
                     java.io.Serializable color)
Sets the border property.

Parameters:
width - The position value to be set.
style - The style value to be set.
color - The color value to be set.
Returns:
The current CSS object.
See Also:
CSS border Property

setBorder

public CSS setBorder(BorderWidth width,
                     BorderStyle style,
                     java.io.Serializable color)
Sets the border property.

Parameters:
width - The position value to be set.
style - The style value to be set.
color - The color value to be set.
Returns:
The current CSS object.
See Also:
CSS border Property

setBorderWidth

public CSS setBorderWidth(Unit width)
Sets the border-width property.

Parameters:
width - The width value to be set.
Returns:
The current CSS object.
See Also:
CSS border-width Property

setBorderWidth

public CSS setBorderWidth(BorderWidth width)
Sets the border-width property.

Parameters:
width - The width value to be set.
Returns:
The current CSS object.
See Also:
CSS border-width Property

setBorderStyle

public CSS setBorderStyle(BorderStyle style)
Sets the border-style property.

Parameters:
style - The style value to be set.
Returns:
The current CSS object.
See Also:
CSS border-style Property

setBorderColor

public CSS setBorderColor(java.io.Serializable color)
Sets the border-color property.

Parameters:
color - The color value to be set.
Returns:
The current CSS object.
See Also:
CSS border-color Property

setBorderTop

public CSS setBorderTop(Unit width,
                        BorderStyle style,
                        java.io.Serializable color)
Sets the border-top property.

Parameters:
width - The width value to be set.
style - The style value to be set.
color - The color value to be set.
Returns:
The current CSS object.
See Also:
CSS border-top Property

setBorderTop

public CSS setBorderTop(BorderWidth width,
                        BorderStyle style,
                        java.io.Serializable color)
Sets the border-top property.

Parameters:
width - The width value to be set.
style - The style value to be set.
color - The color value to be set.
Returns:
The current CSS object.
See Also:
CSS border-top Property

setBorderTopWidth

public CSS setBorderTopWidth(Unit width)
Sets the border-top-width property.

Parameters:
width - The width value to be set.
Returns:
The current CSS object.
See Also:
CSS border-top-width Property

setBorderTopWidth

public CSS setBorderTopWidth(BorderWidth width)
Sets the border-top-width property.

Parameters:
width - The width value to be set.
Returns:
The current CSS object.
See Also:
CSS border-top-width Property

setBorderTopStyle

public CSS setBorderTopStyle(BorderStyle style)
Sets the border-top-style property.

Parameters:
style - The style value to be set.
Returns:
The current CSS object.
See Also:
CSS border-top-style Property

setBorderTopColor

public CSS setBorderTopColor(java.io.Serializable color)
Sets the border-top-color property.

Parameters:
color - The color value to be set.
Returns:
The current CSS object.
See Also:
CSS border-top-color Property

setBorderRight

public CSS setBorderRight(Unit width,
                          BorderStyle style,
                          java.io.Serializable color)
Sets the border-right property.

Parameters:
width - The width value to be set.
style - The style value to be set.
color - The color value to be set.
Returns:
The current CSS object.
See Also:
CSS border-right Property

setBorderRight

public CSS setBorderRight(BorderWidth width,
                          BorderStyle style,
                          java.io.Serializable color)
Sets the border-right property.

Parameters:
width - The width value to be set.
style - The style value to be set.
color - The color value to be set.
Returns:
The current CSS object.
See Also:
CSS border-right Property

setBorderRightWidth

public CSS setBorderRightWidth(Unit width)
Sets the border-right-width property.

Parameters:
width - The width value to be set.
Returns:
The current CSS object.
See Also:
CSS border-right-width Property

setBorderRightWidth

public CSS setBorderRightWidth(BorderWidth width)
Sets the border-right-width property.

Parameters:
width - The width value to be set.
Returns:
The current CSS object.
See Also:
CSS border-right-width Property

setBorderRightStyle

public CSS setBorderRightStyle(BorderStyle style)
Sets the border-right-style property.

Parameters:
style - The style value to be set.
Returns:
The current CSS object.
See Also:
CSS border-right-style Property

setBorderRightColor

public CSS setBorderRightColor(java.io.Serializable color)
Sets the border-right-color property.

Parameters:
color - The color value to be set.
Returns:
The current CSS object.
See Also:
CSS border-right-color Property

setBorderLEft

public CSS setBorderLEft(Unit width,
                         BorderStyle style,
                         java.io.Serializable color)
Sets the border-left property.

Parameters:
width - The width value to be set.
style - The style value to be set.
color - The color value to be set.
Returns:
The current CSS object.
See Also:
CSS border-left Property

setBorderLeft

public CSS setBorderLeft(BorderWidth width,
                         BorderStyle style,
                         java.io.Serializable color)
Sets the border-left property.

Parameters:
width - The width value to be set.
style - The style value to be set.
color - The color value to be set.
Returns:
The current CSS object.
See Also:
CSS border-left Property

setBorderLeftWidth

public CSS setBorderLeftWidth(Unit width)
Sets the border-left-width property.

Parameters:
width - The width value to be set.
Returns:
The current CSS object.
See Also:
CSS border-left-width Property

setBorderLeftWidth

public CSS setBorderLeftWidth(BorderWidth width)
Sets the border-left-width property.

Parameters:
width - The width value to be set.
Returns:
The current CSS object.
See Also:
CSS border-left-width Property

setBorderLeftStyle

public CSS setBorderLeftStyle(BorderStyle style)
Sets the border-left-style property.

Parameters:
style - The style value to be set.
Returns:
The current CSS object.
See Also:
CSS border-left-style Property

setBorderLeftColor

public CSS setBorderLeftColor(java.io.Serializable color)
Sets the border-left-color property.

Parameters:
color - The color value to be set.
Returns:
The current CSS object.
See Also:
CSS border-left-color Property

setBorderBottom

public CSS setBorderBottom(Unit width,
                           BorderStyle style,
                           java.io.Serializable color)
Sets the border-bottom property.

Parameters:
width - The width value to be set.
style - The style value to be set.
color - The color value to be set.
Returns:
The current CSS object.
See Also:
CSS border-bottom Property

setBorderBottom

public CSS setBorderBottom(BorderWidth width,
                           BorderStyle style,
                           java.io.Serializable color)
Sets the border-bottom property.

Parameters:
width - The width value to be set.
style - The style value to be set.
color - The color value to be set.
Returns:
The current CSS object.
See Also:
CSS border-bottom Property

setBorderBottomWidth

public CSS setBorderBottomWidth(Unit width)
Sets the border-bottom-width property.

Parameters:
width - The width value to be set.
Returns:
The current CSS object.
See Also:
CSS border-bottom-width Property

setBorderBottomWidth

public CSS setBorderBottomWidth(BorderWidth width)
Sets the border-bottom-width property.

Parameters:
width - The width value to be set.
Returns:
The current CSS object.
See Also:
CSS border-bottom-width Property

setBorderBottomStyle

public CSS setBorderBottomStyle(BorderStyle style)
Sets the border-bottom-style property.

Parameters:
style - The style value to be set.
Returns:
The current CSS object.
See Also:
CSS border-bottom-style Property

setBorderBottomColor

public CSS setBorderBottomColor(java.io.Serializable color)
Sets the border-bottom-color property.

Parameters:
color - The color value to be set.
Returns:
The current CSS object.
See Also:
CSS border-bottom-color Property

setOutline

public CSS setOutline(java.io.Serializable color,
                      OutlineStyle style,
                      Unit width)
Sets the outline property.

Parameters:
color - The color value to be set.
style - The style value to be set.
width - The width value to be set.
Returns:
The current CSS object.
See Also:
CSS outline Property

setOutline

public CSS setOutline(java.io.Serializable color,
                      OutlineStyle style,
                      OutlineWidth width)
Sets the outline property.

Parameters:
color - The color value to be set.
style - The style value to be set.
width - The width value to be set.
Returns:
The current CSS object.
See Also:
CSS outline Property

setOutlineColor

public CSS setOutlineColor(java.io.Serializable color)
Sets the outline-color property.

Parameters:
color - The color value to be set.
Returns:
The current CSS object.
See Also:
CSS outline-color Property

setOutlineStyle

public CSS setOutlineStyle(OutlineStyle style)
Sets the outline-style property.

Parameters:
style - The style value to be set.
Returns:
The current CSS object.
See Also:
CSS outline-style Property

setOutlineWidth

public CSS setOutlineWidth(Unit width)
Sets the outline-width property.

Parameters:
width - The width value to be set.
Returns:
The current CSS object.
See Also:
CSS outline-width Property

setOutlineStyle

public CSS setOutlineStyle(OutlineWidth width)
Sets the outline-width property.

Parameters:
width - The width value to be set.
Returns:
The current CSS object.
See Also:
CSS outline-width Property

setMargin

public CSS setMargin(Unit margin)
Sets the margin property.

Parameters:
margin - The margin value to be set.
Returns:
The current CSS object.
See Also:
CSS margin Property

setMargin

public CSS setMargin(Unit topBottom,
                     Unit rightLeft)
Sets the margin property.

Parameters:
topBottom - The top and bottom values to be set.
rightLeft - The right and left values to be set.
Returns:
The current CSS object.
See Also:
CSS margin Property

setMargin

public CSS setMargin(Unit top,
                     Unit rightLeft,
                     Unit bottom)
Sets the margin property.

Parameters:
top - The top value to be set.
rightLeft - The right and left values to be set.
bottom - The bottom value to be set.
Returns:
The current CSS object.
See Also:
CSS margin Property

setMargin

public CSS setMargin(Unit top,
                     Unit right,
                     Unit bottom,
                     Unit left)
Sets the margin property.

Parameters:
top - The top value to be set.
right - The right value to be set.
bottom - The bottom value to be set.
left - The left value to be set.
Returns:
The current CSS object.
See Also:
CSS margin Property

setMarginBottom

public CSS setMarginBottom(Unit margin)
Sets the margin-bottom property.

Parameters:
margin - The margin value to be set.
Returns:
The current CSS object.
See Also:
CSS margin-bottom Property

setMarginLeft

public CSS setMarginLeft(Unit margin)
Sets the margin-left property.

Parameters:
margin - The margin value to be set.
Returns:
The current CSS object.
See Also:
CSS margin-left Property

setMarginRight

public CSS setMarginRight(Unit margin)
Sets the margin-right property.

Parameters:
margin - The margin value to be set.
Returns:
The current CSS object.
See Also:
CSS margin-right Property

setMarginTop

public CSS setMarginTop(Unit margin)
Sets the margin-top property.

Parameters:
margin - The margin value to be set.
Returns:
The current CSS object.
See Also:
CSS margin-top Property

setPadding

public CSS setPadding(Unit padding)
Sets the padding property.

Parameters:
padding - The padding value to be set.
Returns:
The current CSS object.
See Also:
CSS Padding

setPadding

public CSS setPadding(Unit topBottom,
                      Unit rightLeft)
Sets the padding property.

Parameters:
topBottom - The top and bottom values to be set.
rightLeft - The right and left values to be set.
Returns:
The current CSS object.
See Also:
CSS Padding

setPadding

public CSS setPadding(Unit top,
                      Unit rightLeft,
                      Unit bottom)
Sets the padding property.

Parameters:
top - The top value to be set.
rightLeft - The right and left values to be set.
bottom - The bottom value to be set.
Returns:
The current CSS object.
See Also:
CSS Padding

setPadding

public CSS setPadding(Unit top,
                      Unit right,
                      Unit bottom,
                      Unit left)
Sets the padding property.

Parameters:
top - The top value to be set.
right - The right value to be set.
bottom - The bottom value to be set.
left - The left value to be set.
Returns:
The current CSS object.
See Also:
CSS Padding

setPaddingBottom

public CSS setPaddingBottom(Unit margin)
Sets the padding-bottom property.

Parameters:
margin - The margin value to be set.
Returns:
The current CSS object.
See Also:
CSS padding-bottom

setPaddingLeft

public CSS setPaddingLeft(Unit margin)
Sets the padding-left property.

Parameters:
margin - The margin value to be set.
Returns:
The current CSS object.
See Also:
CSS padding-left

setPaddingRight

public CSS setPaddingRight(Unit margin)
Sets the padding-right property.

Parameters:
margin - The margin value to be set.
Returns:
The current CSS object.
See Also:
CSS padding-right

setPaddingTop

public CSS setPaddingTop(Unit margin)
Sets the padding-top property.

Parameters:
margin - The margin value to be set.
Returns:
The current CSS object.
See Also:
CSS padding-top

setWidth

public CSS setWidth(Unit width)
Sets the width property.

Parameters:
width - The width value to be set.
Returns:
The current CSS object.
See Also:
CSS width property

setMinWidth

public CSS setMinWidth(Unit width)
Sets the min-width property.

Parameters:
width - The minimal width value to be set.
Returns:
The current CSS object.
See Also:
CSS min-width property

setMaxWidth

public CSS setMaxWidth(Unit width)
Sets the max-width property.

Parameters:
width - The maximum width value to be set.
Returns:
The current CSS object.
See Also:
CSS max-width property

setHeight

public CSS setHeight(Unit height)
Sets the height property.

Parameters:
height - The height value to be set.
Returns:
The current CSS object.
See Also:
CSS height property

setMinHeight

public CSS setMinHeight(Unit height)
Sets the min-height property.

Parameters:
height - The height value to be set.
Returns:
The current CSS object.
See Also:
CSS min-height property

setMaxHeight

public CSS setMaxHeight(Unit height)
Sets the max-height property.

Parameters:
height - The height value to be set.
Returns:
The current CSS object.
See Also:
CSS max-height property

setBottom

public CSS setBottom(Unit bottom)
Sets the bottom property.

Parameters:
bottom - The bottom value to be set.
Returns:
The current CSS object.
See Also:
CSS bottom Property

setLeft

public CSS setLeft(Unit left)
Sets the left property.

Parameters:
left - The left value to be set.
Returns:
The current CSS object.
See Also:
CSS left Property

setRight

public CSS setRight(Unit right)
Sets the right property.

Parameters:
right - The right value to be set.
Returns:
The current CSS object.
See Also:
CSS right Property

setTop

public CSS setTop(Unit top)
Sets the top property.

Parameters:
top - The top value to be set.
Returns:
The current CSS object.
See Also:
CSS top Property

setClipShape

public CSS setClipShape(Unit top,
                        Unit right,
                        Unit bottom,
                        Unit left)
Sets the clip property.

Parameters:
top - The top value to be set.
right - The right value to be set.
bottom - The bottom value to be set.
left - The left value to be set.
Returns:
The current CSS object.
See Also:
CSS clip Property

setCursor

public CSS setCursor(Cursor cursor)
Sets the cursor property.

Parameters:
cursor - The cursor value to be set.
Returns:
The current CSS object.
See Also:
CSS cursor Property

setCursor

public CSS setCursor(java.io.Serializable url)
Sets the cursor property.

Parameters:
url - The cursor url value to be set.
Returns:
The current CSS object.
See Also:
CSS cursor Property

setOverflow

public CSS setOverflow(Overflow overflow)
Sets the overflow property.

Parameters:
overflow - The overflow value to be set.
Returns:
The current CSS object.
See Also:
CSS overflow Property

setPosition

public CSS setPosition(Position position)
Sets the position property.

Parameters:
position - The position value to be set.
Returns:
The current CSS object.
See Also:
CSS Positioning

setZIndex

public CSS setZIndex(int zIndex)
Sets the z-index property.

Parameters:
zIndex - The z-index value to be set.
Returns:
The current CSS object.
See Also:
CSS z-index Property

setClear

public CSS setClear(Clear clear)
Sets the clear property.

Parameters:
clear - The clear value to be set.
Returns:
The current CSS object.
See Also:
CSS clear Property

setFloat

public CSS setFloat(Float f)
Sets the float property.

Parameters:
f - The float value to be set.
Returns:
The current CSS object.
See Also:
CSS float Property

setDisplay

public CSS setDisplay(Display display)
Sets the display property.

Parameters:
display - The display value to be set.
Returns:
The current CSS object.
See Also:
CSS display Property

setVisibility

public CSS setVisibility(Visibility visibility)
Sets the visibility property.

Parameters:
visibility - The visibility to be set
Returns:
The current CSS object.
See Also:
CSS visibility Property