Package eu.webtoolkit.jwt
Class WBorder
java.lang.Object
eu.webtoolkit.jwt.WBorder
public class WBorder
extends java.lang.Object
A value class that defines the CSS border style of a widget.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WBorder.Style
Enumeration for border style.static class
WBorder.Width
Enumeration for border width. -
Constructor Summary
Constructors Constructor Description WBorder()
Creates a border indicating no border.WBorder(WBorder.Style style)
Creates a border with given style, thickness and color.WBorder(WBorder.Style style, WBorder.Width width)
Creates a border with given style, thickness and color.WBorder(WBorder.Style style, WBorder.Width width, WColor color)
Creates a border with given style, thickness and color.WBorder(WBorder.Style style, WLength width)
Creates a border with an absolute width.WBorder(WBorder.Style style, WLength width, WColor color)
Creates a border with an absolute width. -
Method Summary
Modifier and Type Method Description WBorder
clone()
Clone method.boolean
equals(WBorder other)
Indicates whether some other object is "equal to" this one.WColor
getColor()
Returns the border color.java.lang.String
getCssText()
Returns the CSS text for this border style.WLength
getExplicitWidth()
Returns the border width when set explicitly.WBorder.Style
getStyle()
Returns the border style.WBorder.Width
getWidth()
Returns the border width.void
setColor(WColor color)
Sets the border color.void
setStyle(WBorder.Style style)
Sets the border style.void
setWidth(WBorder.Width width)
Sets the border width.void
setWidth(WBorder.Width width, WLength explicitWidth)
Sets the border width.Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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:
setColor(WColor color)
-
getStyle
Returns the border style.- See Also:
setStyle(WBorder.Style style)
-
getCssText
public java.lang.String getCssText()Returns the CSS text for this border style. -
clone
Clone method.Clones this border.
- Overrides:
clone
in classjava.lang.Object
-