Package eu.webtoolkit.jwt
Class WBorder
java.lang.Object
eu.webtoolkit.jwt.WBorder
A value class that defines the CSS border style of a widget.
-
Constructor Summary
ConstructorDescriptionWBorder()
Creates a border indicating no border.WBorder
(BorderStyle style) Creates a border with given style, thickness and color.WBorder
(BorderStyle style, BorderWidth width) Creates a border with given style, thickness and color.WBorder
(BorderStyle style, BorderWidth width, WColor color) Creates a border with given style, thickness and color.WBorder
(BorderStyle style, WLength width) Creates a border with an absolute width.WBorder
(BorderStyle style, WLength width, WColor color) Creates a border with an absolute width. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clone method.boolean
Indicates whether some other object is "equal to" this one.getColor()
Returns the border color.Returns the CSS text for this border style.Returns the border width when set explicitly.getStyle()
Returns the border style.getWidth()
Returns the border width.void
Sets the border color.void
setStyle
(BorderStyle style) Sets the border style.final void
setWidth
(BorderWidth width) Sets the border width.void
setWidth
(BorderWidth width, WLength explicitWidth) Sets the border width.
-
Constructor Details
-
WBorder
public WBorder()Creates a border indicating no border. -
WBorder
Creates a border with given style, thickness and color. -
WBorder
Creates a border with given style, thickness and color. -
WBorder
Creates a border with given style, thickness and color. -
WBorder
Creates a border with an absolute width. -
WBorder
Creates a border with an absolute width.
-
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one. -
setWidth
Sets the border width.If width == Explicit, then the width specified in
explicitWidth
is used. -
setWidth
Sets the border width. -
setColor
Sets the border color. -
setStyle
Sets the border style. -
getWidth
Returns the border width. -
getExplicitWidth
Returns the border width when set explicitly. -
getColor
Returns the border color.- See Also:
-
getStyle
Returns the border style.- See Also:
-
getCssText
Returns the CSS text for this border style. -
clone
Clone method.Clones this border.
-