com.infragistics.faces.shared.component.html
Class Style
java.lang.Object
com.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
|
Constructor Summary |
Style()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
Style
public Style()
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()