public interface BorderStyleProperties
BorderStyleProperties
interface represents common border styling properties. It is used wherever a border
can be styled.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBorderColor()
Border color applied to all borders.
|
java.lang.String |
getBorderRadius()
Border radius.
|
java.lang.String |
getBorderStyle()
Border style applied to all borders.
|
java.lang.String |
getBorderWidth()
Border width applied to all four borders.
|
java.lang.String |
getBottomBorderWidth()
Bottom border width, overriding property
borderWidth . |
java.lang.String |
getLeftBorderWidth()
Left border width, overriding property
borderWidth . |
java.lang.String |
getRightBorderWidth()
Right border width, overriding property
borderWidth . |
java.lang.String |
getTopBorderWidth()
Top border width, overriding property
borderWidth . |
void |
setBorderColor(java.lang.String borderColor)
Sets border color.
|
void |
setBorderRadius(java.lang.String borderRadius)
Sets border radius.
|
void |
setBorderStyle(java.lang.String borderStyle)
Sets border style.
|
void |
setBorderWidth(java.lang.String borderWidth)
Sets the border width applied to all four borders.
|
void |
setBottomBorderWidth(java.lang.String bottomBorderWidth)
Sets the bottom border width, overriding property
borderWidth . |
void |
setLeftBorderWidth(java.lang.String leftBorderWidth)
Sets the left border width, overriding property
borderWidth . |
void |
setRightBorderWidth(java.lang.String rightBorderWidth)
Sets the right border width, overriding property
borderWidth . |
void |
setTopBorderWidth(java.lang.String topBorderWidth)
Sets the top border width, overriding property
borderWidth . |
java.lang.String getBorderWidth()
leftBorderWidth
,
rightBorderWidth
, topBorderWidth
and bottomBorderWidth
properties are all not specified.
This is equivalent to the CSS border-width property, and any valid value for this CSS property can be used when setting a value.setBorderWidth(String)
void setBorderWidth(java.lang.String borderWidth)
leftBorderWidth
,
rightBorderWidth
, topBorderWidth
and bottomBorderWidth
properties are all not specified.
This is equivalent to the CSS border-width property, and any valid value for this CSS property can be used when setting a value.
Setting this property to null
removes any existing value.
Note that for a border to be visible, the borderStyle
and borderColor
properties are also required.
Examples:
controls.PANEL1.borderWidth = "2px"; controls.PANEL1.borderStyle = "solid"; controls.PANEL1.borderColor = "black"; controls.TEXT1.setBorderWidth("medium");
java.lang.String getTopBorderWidth()
borderWidth
.
This is equivalent to the CSS border-top-width property, and any valid value for this CSS property can be used when setting a value.setTopBorderWidth(String)
void setTopBorderWidth(java.lang.String topBorderWidth)
borderWidth
.
This is equivalent to the CSS border-top-width property, and any valid value for this CSS property can be used when setting a value.
Setting this property to null
removes any existing value.
Note that for a border to be visible, the borderStyle
and borderColor
properties are also required.
Examples:
controls.PANEL1.topBorderWidth = "2px"; controls.PANEL1.borderStyle = "solid"; controls.PANEL1.borderColor = "black"; controls.TEXT1.setTopBorderWidth("medium");
java.lang.String getRightBorderWidth()
borderWidth
.
This is equivalent to the CSS border-right-width property, and any valid value for this CSS property can be used when setting a value.setRightBorderWidth(String)
void setRightBorderWidth(java.lang.String rightBorderWidth)
borderWidth
.
This is equivalent to the CSS border-right-width property, and any valid value for this CSS property can be used when setting a value.
Setting this property to null
removes any existing value.
Note that for a border to be visible, the borderStyle
and borderColor
properties are also required.
Examples:
controls.PANEL1.rightBorderWidth = "2px"; controls.PANEL1.borderStyle = ControlConstants.BORDER_STYLE_SOLID; controls.PANEL1.borderColor = "black"; controls.TEXT1.setRightBorderWidth("medium");
java.lang.String getBottomBorderWidth()
borderWidth
.
This is equivalent to the CSS border-bottom-width property, and any valid value for this CSS property can be used when setting a value.setBottomBorderWidth(String)
void setBottomBorderWidth(java.lang.String bottomBorderWidth)
borderWidth
.
This is equivalent to the CSS border-bottom-width property, and any valid value for this CSS property can be used when setting a value.
Setting this property to null
removes any existing value.
Note that for a border to be visible, the borderStyle
and borderColor
properties are also required.
Examples:
controls.PANEL1.bottomBorderWidth = "2px"; controls.PANEL1.borderStyle = "solid"; controls.PANEL1.borderColor = "black"; controls.TEXT1.setBottomBorderWidth("medium");
java.lang.String getLeftBorderWidth()
borderWidth
.
This is equivalent to the CSS border-left-width property, and any valid value for this CSS property can be used when setting a value.setLeftBorderWidth(String)
void setLeftBorderWidth(java.lang.String leftBorderWidth)
borderWidth
.
This is equivalent to the CSS border-left-width property, and any valid value for this CSS property can be used when setting a value.
Setting this property to null
removes any existing value.
Note that for a border to be visible, the borderStyle
and borderColor
properties are also required.
Examples:
controls.PANEL1.leftBorderWidth = "2px"; controls.PANEL1.borderStyle = "solid"; controls.PANEL1.borderColor = "black"; controls.TEXT1.setLeftBorderWidth("medium");
java.lang.String getBorderStyle()
setBorderStyle(String)
void setBorderStyle(java.lang.String borderStyle)
Supported values:
Value | Constant |
---|---|
None | ControlConstants.NONE |
Solid | ControlConstants.BORDER_STYLE_SOLID |
Dotted | ControlConstants.BORDER_STYLE_DOTTED |
Dashed | ControlConstants.BORDER_STYLE_DASHED |
Double | ControlConstants.BORDER_STYLE_DOUBLE |
Groove | ControlConstants.BORDER_STYLE_GROOVE |
Ridged | ControlConstants.BORDER_STYLE_RIDGED |
Setting a value of null
removes any existing value for the property.
Note that for a border to be visible, a border width property and the borderColor
property is also required.
Examples:
controls.PANEL1.borderStyle = ControlConstants.BORDER_STYLE_SOLID; controls.PANEL1.borderWidth = "2px"; controls.PANEL1.borderColor = "black"; controls.TEXT1.setBorderStyle(ControlConstants.NONE);
java.lang.String getBorderColor()
setBorderColor(String)
void setBorderColor(java.lang.String borderColor)
null
removes any existing value.
Note that for a border to be visible, a border width property and the borderStyle
property is also required.
Examples:
controls.PANEL1.borderColor = "black"; controls.PANEL1.borderWidth = "2px"; controls.PANEL1.borderStyle = "solid"; controls.TEXT1.setBorderColor("#ff00ff");
java.lang.String getBorderRadius()
setBorderRadius(String)
void setBorderRadius(java.lang.String borderRadius)
Note that it is not possible to set vertical radii properties (as is possible with the CSS3 border-radius property).
Setting this property to null
removes any existing value.
Implementation:
Border radius is implemented using a combination of the CSS3 border-radius property and a mix of non-standard CSS properties
for older browsers that do not support border-radius. Although CSS3 is not yet fully released, the part of the specification
containing the border-radius property is considered stable. For Internet Explorer 6, 7 and 8, the CSS3 PIE plugin is used.
This property is supported by all browsers supported by Ebase Xi with the exception of Opera 10.0, where it is ignored and
square borders will be shown.
Examples:
// set corners: top left, top right, bottom right, bottom left controls.PANEL1.borderRadius = "20px 40px 40px 80px"; // set top left and bottom right corners to 20px, top right and bottom left borders to 40px controls.PANEL1.borderRadius = "20px, 40px"; // set all corners to a radius of 20px controls.PANEL1.borderRadius = "20px";