|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo2.webrender.output.CssStyle
echopointng.ui.util.CssStyleEx
public class CssStyleEx
CssStyleEx adds extra setter functions to the CssStyle class.
It supports pseudo attributes as well.
| Constructor Summary | |
|---|---|
CssStyleEx()
Constructs a CssStyleEx |
|
CssStyleEx(Component component)
Constructs a CssStyleEx and sets the "discoverable" style
attributes from component by calling
Render.asComponent(this,component); |
|
CssStyleEx(Component component,
Style defaultStyle)
Constructs a CssStyleEx and sets the "discoverable" style
attributes from component by calling
Render.asComponent(this,component); |
|
| Method Summary | |
|---|---|
void |
setBackground(Color background)
Renders the background color as a CSS "background-color" value |
void |
setBorder(Border border)
Sets the border for this style |
void |
setFont(Font font)
Renders the font color as a seris of CSS values |
void |
setForeground(Color foreground)
Renders the foregound color as a CSS "color" value |
void |
setNoWrap()
Sets "white-space" to "nowrap" |
java.lang.String |
toString()
Renders a debug representation of the object. |
| Methods inherited from class nextapp.echo2.webrender.output.CssStyle |
|---|
getAttribute, hasAttributes, renderInline, setAttribute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CssStyleEx()
CssStyleEx
public CssStyleEx(Component component)
CssStyleEx and sets the "discoverable" style
attributes from component by calling
Render.asComponent(this,component);
component - -
the component o get style attributes from
public CssStyleEx(Component component,
Style defaultStyle)
CssStyleEx and sets the "discoverable" style
attributes from component by calling
Render.asComponent(this,component);
component - -
the component o get style attributes fromdefaultStyle - -
a style to use as a default source of property information if
it cant be found in the component.| Method Detail |
|---|
public void setBackground(Color background)
foreground - -
the foregound Colorpublic void setFont(Font font)
font - -
the Fontpublic void setForeground(Color foreground)
foreground - -
the foregound Colorpublic void setNoWrap()
public void setBorder(Border border)
border - - the Border in questionpublic java.lang.String toString()
CssStyle
toString in class CssStyleCssStyle.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||