com.infragistics.faces.shared.component.html
Class Style

java.lang.Object
  extended bycom.infragistics.faces.shared.component.html.Style

public class Style
extends java.lang.Object

The Style class represents a CSS Style applied to a component and provide accessors to get/set the main css properties.

The background color and text color can be specified by calling setBackgroundColor(java.awt.Color) and setColor(java.awt.Color) respectively.

Border color, border style and border width can be controlled via getBorderColor(), getBorderStyle() and getBorderWidth().

Font attributes can be specified via isFontBold(), isFontItalic(), getFontName(), isFontOverline(), isFontStrikeout(), isFontUnderline().

The left and top position as well as the dimension can be specified via the setLeft(com.infragistics.faces.shared.component.html.Length), setTop(com.infragistics.faces.shared.component.html.Length), setHeight(com.infragistics.faces.shared.component.html.Length) and setWidth(com.infragistics.faces.shared.component.html.Length) respectively


Field Summary
 java.util.Map attributes
           
 java.awt.Color backgroundColor
           
 java.awt.Color backgroundGradientColor
           
 com.infragistics.faces.shared.enumeration.GradientType backgroundGradientType
           
 java.lang.String backgroundImage
           
 java.lang.Integer backgroundRepeat
           
 java.lang.Integer borderCapStyle
           
 java.awt.Color borderColor
           
 java.lang.Integer borderJoinStyle
           
 Length borderRadius
           
 com.infragistics.faces.shared.enumeration.BorderStyle borderStyle
           
 Length borderWidth
           
 Length bottom
           
 java.awt.Color color
           
 java.lang.Boolean fontBold
           
 java.lang.Boolean fontItalic
           
 java.lang.String fontName
           
 java.lang.Boolean fontOverline
           
 Length fontSize
           
 java.lang.Boolean fontStrikeout
           
 java.lang.Boolean fontUnderline
           
 Length height
           
 Length left
           
 Length marginBottom
           
 Length marginLeft
           
 Length marginRight
           
 Length marginTop
           
 java.lang.String name
           
 Length paddingBottom
           
 Length paddingLeft
           
 Length paddingRight
           
 Length paddingTop
           
 java.lang.Double polish
           
 java.awt.Color polishColor
           
 java.lang.Boolean reflective
           
 Length right
           
 java.awt.Color shadowColor
           
 java.lang.Boolean textWrap
           
 Length top
           
 Length width
           
 
Constructor Summary
Style()
           
 
Method Summary
 java.lang.String getAttribute(java.lang.String key)
           
 java.util.Map getAttributes()
           
 java.awt.Color getBackgroundColor()
           
 java.awt.Color getBackgroundGradientColor()
           
 java.lang.String getBackgroundGradientType()
           
 java.lang.String getBackgroundImage()
           
 int getBackgroundRepeat()
           
 java.lang.Integer getBorderCapStyle()
           
 java.awt.Color getBorderColor()
           
 java.lang.Integer getBorderJoinStyle()
           
 Length getBorderRadius()
           
 com.infragistics.faces.shared.enumeration.BorderStyle getBorderStyle()
           
 Length getBorderWidth()
           
 Length getBottom()
           
 java.awt.Color getColor()
           
 java.lang.String getFontName()
           
 Length getFontSize()
           
 Length getHeight()
           
 Length getLeft()
           
 Length getMarginBottom()
           
 Length getMarginLeft()
           
 Length getMarginRight()
           
 Length getMarginTop()
           
 java.lang.String getName()
           
 Length getPaddingBottom()
           
 Length getPaddingLeft()
           
 Length getPaddingRight()
           
 Length getPaddingTop()
           
 java.lang.Double getPolish()
           
 java.awt.Color getPolishColor()
           
 java.lang.Boolean getReflective()
           
 Length getRight()
           
 java.awt.Color getShadowColor()
           
 boolean getTextWrap()
           
 Length getTop()
           
 Length getWidth()
           
 boolean isFontBold()
           
 boolean isFontItalic()
           
 boolean isFontOverline()
           
 boolean isFontStrikeout()
           
 boolean isFontUnderline()
           
 void setAttribute(java.lang.String key, java.lang.String value)
           
 void setAttributes(java.util.Map attributes)
           
 void setBackgroundColor(java.awt.Color backgroundColor)
           
 void setBackgroundGradientColor(java.awt.Color backgroundGradientColor)
           
 void setBackgroundGradientType(java.lang.String backgroundGradientType)
           
 void setBackgroundImage(java.lang.String backgroundImage)
           
 void setBackgroundRepeat(int backgroundRepeat)
           
 void setBorderCapStyle(java.lang.Integer borderCapType)
           
 void setBorderColor(java.awt.Color borderColor)
           
 void setBorderJoinStyle(java.lang.Integer borderJoinStyle)
           
 void setBorderRadius(Length borderRadius)
           
 void setBorderStyle(com.infragistics.faces.shared.enumeration.BorderStyle borderStyle)
           
 void setBorderWidth(Length borderWidth)
           
 void setBottom(Length bottom)
           
 void setColor(java.awt.Color color)
           
 void setFontBold(boolean fontBold)
           
 void setFontItalic(boolean fontItalic)
           
 void setFontName(java.lang.String fontName)
           
 void setFontOverline(boolean fontOverline)
           
 void setFontSize(Length fontSize)
           
 void setFontStrikeout(boolean fontStrikeout)
           
 void setFontUnderline(boolean fontUnderline)
           
 void setHeight(Length height)
           
 void setLeft(Length left)
           
 void setMarginBottom(Length marginBottom)
           
 void setMarginLeft(Length marginLeft)
           
 void setMarginRight(Length marginRight)
           
 void setMarginTop(Length marginTop)
           
 void setName(java.lang.String name)
           
 void setPaddingBottom(Length paddingBottom)
           
 void setPaddingLeft(Length paddingLeft)
           
 void setPaddingRight(Length paddingRight)
           
 void setPaddingTop(Length paddingTop)
           
 void setPolish(java.lang.Double polish)
           
 void setPolishColor(java.awt.Color specularColor)
           
 void setReflective(java.lang.Boolean reflective)
           
 void setRight(Length right)
           
 void setShadowColor(java.awt.Color shadowColor)
           
 void setTextWrap(boolean textWrap)
           
 void setTop(Length top)
           
 void setWidth(Length width)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

attributes

public java.util.Map attributes

polishColor

public java.awt.Color polishColor

reflective

public java.lang.Boolean reflective

polish

public java.lang.Double polish

shadowColor

public java.awt.Color shadowColor

borderCapStyle

public java.lang.Integer borderCapStyle

borderJoinStyle

public java.lang.Integer borderJoinStyle

backgroundColor

public java.awt.Color backgroundColor

backgroundImage

public java.lang.String backgroundImage

backgroundRepeat

public java.lang.Integer backgroundRepeat

backgroundGradientColor

public java.awt.Color backgroundGradientColor

backgroundGradientType

public com.infragistics.faces.shared.enumeration.GradientType backgroundGradientType

borderColor

public java.awt.Color borderColor

borderStyle

public com.infragistics.faces.shared.enumeration.BorderStyle borderStyle

borderWidth

public Length borderWidth

color

public java.awt.Color color

fontBold

public java.lang.Boolean fontBold

fontItalic

public java.lang.Boolean fontItalic

fontName

public java.lang.String fontName

fontOverline

public java.lang.Boolean fontOverline

fontSize

public Length fontSize

fontStrikeout

public java.lang.Boolean fontStrikeout

fontUnderline

public java.lang.Boolean fontUnderline

textWrap

public java.lang.Boolean textWrap

borderRadius

public Length borderRadius

paddingLeft

public Length paddingLeft

paddingBottom

public Length paddingBottom

paddingRight

public Length paddingRight

paddingTop

public Length paddingTop

marginLeft

public Length marginLeft

marginBottom

public Length marginBottom

marginRight

public Length marginRight

marginTop

public Length marginTop

left

public Length left

top

public Length top

right

public Length right

bottom

public Length bottom

height

public Length height

width

public Length width

name

public java.lang.String name
Constructor Detail

Style

public Style()
Method Detail

getAttribute

public java.lang.String getAttribute(java.lang.String key)

setAttribute

public void setAttribute(java.lang.String key,
                         java.lang.String value)

getAttributes

public java.util.Map getAttributes()

setAttributes

public void setAttributes(java.util.Map attributes)

getShadowColor

public java.awt.Color getShadowColor()

setShadowColor

public void setShadowColor(java.awt.Color shadowColor)

setPolishColor

public void setPolishColor(java.awt.Color specularColor)

getPolishColor

public java.awt.Color getPolishColor()

getPolish

public java.lang.Double getPolish()

setPolish

public void setPolish(java.lang.Double polish)

getReflective

public java.lang.Boolean getReflective()

setReflective

public void setReflective(java.lang.Boolean reflective)

setBorderCapStyle

public void setBorderCapStyle(java.lang.Integer borderCapType)

getBorderCapStyle

public java.lang.Integer getBorderCapStyle()

setBorderJoinStyle

public void setBorderJoinStyle(java.lang.Integer borderJoinStyle)

getBorderJoinStyle

public java.lang.Integer getBorderJoinStyle()

getBackgroundColor

public java.awt.Color getBackgroundColor()

setBackgroundColor

public void setBackgroundColor(java.awt.Color backgroundColor)

getBackgroundGradientType

public java.lang.String getBackgroundGradientType()

setBackgroundGradientType

public void setBackgroundGradientType(java.lang.String backgroundGradientType)

getBackgroundGradientColor

public java.awt.Color getBackgroundGradientColor()

setBackgroundGradientColor

public void setBackgroundGradientColor(java.awt.Color backgroundGradientColor)

getBackgroundImage

public java.lang.String getBackgroundImage()

setBackgroundImage

public void setBackgroundImage(java.lang.String backgroundImage)

getBackgroundRepeat

public int getBackgroundRepeat()

setBackgroundRepeat

public void setBackgroundRepeat(int backgroundRepeat)

getBorderColor

public java.awt.Color getBorderColor()

setBorderColor

public void setBorderColor(java.awt.Color borderColor)

getBorderStyle

public com.infragistics.faces.shared.enumeration.BorderStyle getBorderStyle()

setBorderStyle

public void setBorderStyle(com.infragistics.faces.shared.enumeration.BorderStyle borderStyle)

getBorderWidth

public Length getBorderWidth()

setBorderWidth

public void setBorderWidth(Length borderWidth)

getColor

public java.awt.Color getColor()

setColor

public void setColor(java.awt.Color color)

isFontBold

public boolean isFontBold()

setFontBold

public void setFontBold(boolean fontBold)

isFontItalic

public boolean isFontItalic()

setFontItalic

public void setFontItalic(boolean fontItalic)

getFontName

public java.lang.String getFontName()

setFontName

public void setFontName(java.lang.String fontName)

isFontOverline

public boolean isFontOverline()

setFontOverline

public void setFontOverline(boolean fontOverline)

getFontSize

public Length getFontSize()

setFontSize

public void setFontSize(Length fontSize)

isFontStrikeout

public boolean isFontStrikeout()

setFontStrikeout

public void setFontStrikeout(boolean fontStrikeout)

isFontUnderline

public boolean isFontUnderline()

setFontUnderline

public void setFontUnderline(boolean fontUnderline)

getHeight

public Length getHeight()

setHeight

public void setHeight(Length height)

getPaddingLeft

public Length getPaddingLeft()

setPaddingLeft

public void setPaddingLeft(Length paddingLeft)

getPaddingBottom

public Length getPaddingBottom()

setPaddingBottom

public void setPaddingBottom(Length paddingBottom)

getPaddingRight

public Length getPaddingRight()

setPaddingRight

public void setPaddingRight(Length paddingRight)

getPaddingTop

public Length getPaddingTop()

setPaddingTop

public void setPaddingTop(Length paddingTop)

getMarginLeft

public Length getMarginLeft()

setMarginLeft

public void setMarginLeft(Length marginLeft)

getMarginBottom

public Length getMarginBottom()

setMarginBottom

public void setMarginBottom(Length marginBottom)

getMarginRight

public Length getMarginRight()

setMarginRight

public void setMarginRight(Length marginRight)

getMarginTop

public Length getMarginTop()

setMarginTop

public void setMarginTop(Length marginTop)

getLeft

public Length getLeft()

setLeft

public void setLeft(Length left)

getRight

public Length getRight()

setRight

public void setRight(Length right)

getTop

public Length getTop()

setTop

public void setTop(Length top)

getBottom

public Length getBottom()

setBottom

public void setBottom(Length bottom)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getTextWrap

public boolean getTextWrap()

setTextWrap

public void setTextWrap(boolean textWrap)

getWidth

public Length getWidth()

setWidth

public void setWidth(Length width)

getBorderRadius

public Length getBorderRadius()

setBorderRadius

public void setBorderRadius(Length borderRadius)

toString

public java.lang.String toString()