Class WCssDecorationStyle
You can manipulate the decoration style of a single widget using WWidget.getDecorationStyle()
or you can use a WCssDecorationStyle
to add a rule to the
inline style sheet using WCssStyleSheet#addRule()
.
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.webtoolkit.jwt.WObject
WObject.FormData
-
Constructor Summary
ConstructorDescriptionCreates a default style.Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the background color.Returns the background image URL.Returns the background image repeat.final WBorder
Returns the border style.Returns the border style.Returns the cursor style.Returns the cursor image.getFont()
Returns the font.Returns the text color.Returns the text decoration options.void
setBackgroundColor
(WColor color) Sets the background color.final void
setBackgroundImage
(WLink image) Sets a background image.final void
setBackgroundImage
(WLink image, EnumSet<Orientation> repeat) Sets a background image.final void
setBackgroundImage
(WLink image, EnumSet<Orientation> repeat, Side side, Side... sides) Sets a background image.void
setBackgroundImage
(WLink image, EnumSet<Orientation> repeat, EnumSet<Side> sides) Sets a background image.final void
setBackgroundImage
(String url) Sets a background image.final void
setBackgroundImage
(String url, EnumSet<Orientation> repeat) Sets a background image.final void
setBackgroundImage
(String url, EnumSet<Orientation> repeat, Side side, Side... sides) Sets a background image.void
setBackgroundImage
(String url, EnumSet<Orientation> repeat, EnumSet<Side> sides) Sets a background image.final void
Sets the border style.final void
Sets the border style.void
Sets the border style.void
Sets the cursor style.final void
Sets a custom cursor image Url.void
Sets a custom cursor image Url.void
Sets the text font.void
setForegroundColor
(WColor color) Sets the text color.final void
setTextDecoration
(TextDecoration option, TextDecoration... options) Sets text decoration options.void
setTextDecoration
(EnumSet<TextDecoration> options) Sets text decoration options.Methods inherited from class eu.webtoolkit.jwt.WObject
getId, getObjectName, remove, setFormData, setObjectName, tr
-
Constructor Details
-
WCssDecorationStyle
public WCssDecorationStyle()Creates a default style. -
WCssDecorationStyle
Copy constructor.
-
-
Method Details
-
setCursor
Sets the cursor style. -
getCursor
Returns the cursor style.- See Also:
-
setCursor
Sets a custom cursor image Url.The Url should point to a .cur file (this shoul be a real .cur file, renaming an .ico is not enough for Internet Explorer).
-
setCursor
Sets a custom cursor image Url. -
getCursorImage
Returns the cursor image.- See Also:
-
setBackgroundColor
Sets the background color. -
getBackgroundColor
Returns the background color.- See Also:
-
setBackgroundImage
Sets a background image.The
link
may be a URL or a resource.The image may be placed in a particular location by specifying sides by OR'ing
Side
values together, e.g. (Side.Right
|Side.Top
). -
setBackgroundImage
public final void setBackgroundImage(WLink image, EnumSet<Orientation> repeat, Side side, Side... sides) Sets a background image.Calls
setBackgroundImage(image, repeat, EnumSet.of(side, sides))
-
setBackgroundImage
Sets a background image. -
setBackgroundImage
Sets a background image.Calls
setBackgroundImage(image, repeat, EnumSet.noneOf(Side.class))
-
setBackgroundImage
Sets a background image.The image may be placed in a particular location by specifying sides by OR'ing
Side
values together, e.g. (Side.Right
|Side.Top
). -
setBackgroundImage
public final void setBackgroundImage(String url, EnumSet<Orientation> repeat, Side side, Side... sides) Sets a background image.Calls
setBackgroundImage(url, repeat, EnumSet.of(side, sides))
-
setBackgroundImage
Sets a background image. -
setBackgroundImage
Sets a background image.Calls
setBackgroundImage(url, repeat, EnumSet.noneOf(Side.class))
-
getBackgroundImage
Returns the background image URL. -
getBackgroundImageRepeat
Returns the background image repeat. -
setForegroundColor
Sets the text color. -
getForegroundColor
Returns the text color.- See Also:
-
setBorder
Sets the border style.The given
border
will be set for the specifiedsides
.A different border style may be specified for each of the four sides.
-
setBorder
Sets the border style. -
setBorder
Sets the border style. -
getBorder
Returns the border style.Returns the border style set using
setBorder()
for the givenside
. -
getBorder
Returns the border style.Returns
getBorder(Side.Top)
-
setFont
Sets the text font. -
getFont
Returns the font.- See Also:
-
setTextDecoration
Sets text decoration options.You may logically or together any of the options of the TextDecoration enumeration.
The default is 0.
-
setTextDecoration
Sets text decoration options. -
getTextDecoration
Returns the text decoration options.- See Also:
-