|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Borderable
The Borderable
interface is used to produce a border around a
component. This border can have width, color and a border style.
The setBorderColor, setBorderSize and setBorderStyle methods will also set the left, top, right and bottom border properties.
These more specific left, top, right and bottom border properties take precedence over the general border properties, in that they are applied last during applyStyle() and are drawn so they override anything previously set by the general border properties.
Nested Class Summary | |
---|---|
static class |
Borderable.NestedStyleInfo
Nested public static StyleInfo class. |
Field Summary | |
---|---|
static byte |
BORDER_DASHED
Defines a dashed border |
static byte |
BORDER_DOTTED
Defines a dotted border |
static byte |
BORDER_DOUBLE
Defines two borders. |
static byte |
BORDER_GROOVE
Defines a 3D grooved border |
static byte |
BORDER_INSET
Defines a 3D inset border |
static byte |
BORDER_NONE
Defines no border |
static byte |
BORDER_OUTSET
Defines a 3D outset border |
static byte |
BORDER_RIDGE
Defines a 3D ridged border |
static byte |
BORDER_SOLID
Defines a solid border |
static SymbolicValue[] |
borderStyleSymbolics
Helper static SymbolicValue[] - Borderable borderStyle Symbolics |
static java.lang.String |
STYLE_BORDER_COLOR
A style constant for the BorderColor property. |
static java.lang.String |
STYLE_BORDER_SIZE
A style constant for the BorderSize property. |
static java.lang.String |
STYLE_BORDER_STYLE
A style constant for the BorderStyle property. |
static java.lang.String |
STYLE_BOTTOM_BORDER_COLOR
A style constant for the bottomBorderColor property. |
static java.lang.String |
STYLE_BOTTOM_BORDER_SIZE
A style constant for the bottomBorderSize property. |
static java.lang.String |
STYLE_BOTTOM_BORDER_STYLE
A style constant for the bottomBorderStyle property. |
static java.lang.String |
STYLE_LEFT_BORDER_COLOR
A style constant for the leftBorderColor property. |
static java.lang.String |
STYLE_LEFT_BORDER_SIZE
A style constant for the leftBorderSize property. |
static java.lang.String |
STYLE_LEFT_BORDER_STYLE
A style constant for the leftBorderStyle property. |
static java.lang.String |
STYLE_RIGHT_BORDER_COLOR
A style constant for the rightBorderColor property. |
static java.lang.String |
STYLE_RIGHT_BORDER_SIZE
A style constant for the rightBorderSize property. |
static java.lang.String |
STYLE_RIGHT_BORDER_STYLE
A style constant for the rightBorderStyle property. |
static java.lang.String |
STYLE_TOP_BORDER_COLOR
A style constant for the topBorderColor property. |
static java.lang.String |
STYLE_TOP_BORDER_SIZE
A style constant for the topBorderSize property. |
static java.lang.String |
STYLE_TOP_BORDER_STYLE
A style constant for the topBorderStyle property. |
Method Summary | |
---|---|
void |
applyStyle(Style style)
This will apply the borderColor, borderWidth and borderStyle properties first followed by the left, top, right and bottom borer properties. |
Color |
getBorderColor()
|
int |
getBorderSize()
|
int |
getBorderStyle()
Returns the border style of the Borderable. |
Color |
getBottomBorderColor()
|
int |
getBottomBorderSize()
|
int |
getBottomBorderStyle()
|
Color |
getLeftBorderColor()
|
int |
getLeftBorderSize()
|
int |
getLeftBorderStyle()
|
Color |
getRightBorderColor()
|
int |
getRightBorderSize()
|
int |
getRightBorderStyle()
|
Color |
getTopBorderColor()
|
int |
getTopBorderSize()
|
int |
getTopBorderStyle()
|
void |
setBorderColor(Color borderColor)
Sets the Color of the Borderable's border. |
void |
setBorderSize(int borderSize)
Sets the size of the Borderables's border. |
void |
setBorderStyle(int borderStyle)
Sets the border style of the Borderable. |
void |
setBottomBorderColor(Color borderColor)
Sets the Color of the Borderable's bottom border. |
void |
setBottomBorderSize(int borderSize)
Sets the size of the Borderables's bottom border. |
void |
setBottomBorderStyle(int borderStyle)
Sets the border style of the Borderables's bottom border. |
void |
setLeftBorderColor(Color borderColor)
Sets the Color of the Borderable's left border. |
void |
setLeftBorderSize(int borderSize)
Sets the size of the Borderables's left border. |
void |
setLeftBorderStyle(int borderStyle)
Sets the border style of the Borderables's left border. |
void |
setRightBorderColor(Color borderColor)
Sets the Color of the Borderable's right border. |
void |
setRightBorderSize(int borderSize)
Sets the size of the Borderables's right border. |
void |
setRightBorderStyle(int borderStyle)
Sets the border style of the Borderables's right border. |
void |
setTopBorderColor(Color borderColor)
Sets the Color of the Borderable's top border. |
void |
setTopBorderSize(int borderSize)
Sets the size of the Borderables's top border. |
void |
setTopBorderStyle(int borderStyle)
Sets the border style of the Borderables's top border. |
Field Detail |
---|
static final byte BORDER_NONE
static final byte BORDER_SOLID
static final byte BORDER_INSET
static final byte BORDER_DOTTED
static final byte BORDER_DOUBLE
static final byte BORDER_GROOVE
static final byte BORDER_RIDGE
static final byte BORDER_DASHED
static final byte BORDER_OUTSET
static final java.lang.String STYLE_BORDER_COLOR
Color
static final java.lang.String STYLE_BORDER_SIZE
int
static final java.lang.String STYLE_BORDER_STYLE
int
static final java.lang.String STYLE_LEFT_BORDER_COLOR
Color
static final java.lang.String STYLE_LEFT_BORDER_SIZE
int
static final java.lang.String STYLE_LEFT_BORDER_STYLE
int
static final java.lang.String STYLE_TOP_BORDER_COLOR
Color
static final java.lang.String STYLE_TOP_BORDER_SIZE
int
static final java.lang.String STYLE_TOP_BORDER_STYLE
int
static final java.lang.String STYLE_RIGHT_BORDER_COLOR
Color
static final java.lang.String STYLE_RIGHT_BORDER_SIZE
int
static final java.lang.String STYLE_RIGHT_BORDER_STYLE
int
static final java.lang.String STYLE_BOTTOM_BORDER_COLOR
Color
static final java.lang.String STYLE_BOTTOM_BORDER_SIZE
int
static final java.lang.String STYLE_BOTTOM_BORDER_STYLE
int
static final SymbolicValue[] borderStyleSymbolics
Method Detail |
---|
Color getBorderColor()
Color
of the Borderable's
border.int getBorderSize()
Borderables's
border.int getBorderStyle()
void setBorderColor(Color borderColor)
Color
of the Borderable's
border.
This will also set the left, top, right and bottom border color.
void setBorderSize(int borderSize)
Borderables's
border.
This will also set the left, top, right and bottom border size.
void setBorderStyle(int borderStyle)
void applyStyle(Style style)
Component.applyStyle(nextapp.echo.Style)
Color getLeftBorderColor()
Color
of the Borderable's
left border.int getLeftBorderSize()
Borderables's
left border.int getLeftBorderStyle()
Borderables's
left border.getBorderStyle()
void setLeftBorderColor(Color borderColor)
Color
of the Borderable's
left border.
void setLeftBorderSize(int borderSize)
Borderables's
left border.
void setLeftBorderStyle(int borderStyle)
Borderables's
left border.
setBorderStyle(int)
Color getTopBorderColor()
Color
of the Borderable's
top border.int getTopBorderSize()
Borderables's
top border.int getTopBorderStyle()
Borderables's
top border.getBorderStyle()
void setTopBorderColor(Color borderColor)
Color
of the Borderable's
top border.
void setTopBorderSize(int borderSize)
Borderables's
top border.
void setTopBorderStyle(int borderStyle)
Borderables's
top border.
setBorderStyle(int)
Color getRightBorderColor()
Color
of the Borderable's
right border.int getRightBorderSize()
Borderables's
right border.int getRightBorderStyle()
Borderables's
right border.getBorderStyle()
void setRightBorderColor(Color borderColor)
Color
of the Borderable's
right border.
void setRightBorderSize(int borderSize)
Borderables's
right border.
void setRightBorderStyle(int borderStyle)
Borderables's
right border.
setBorderStyle(int)
Color getBottomBorderColor()
Color
of the Borderable's
bottom border.int getBottomBorderSize()
Borderables's
bottom border.int getBottomBorderStyle()
Borderables's
bottom border.getBorderStyle()
void setBottomBorderColor(Color borderColor)
Color
of the Borderable's
bottom border.
void setBottomBorderSize(int borderSize)
Borderables's
bottom border.
void setBottomBorderStyle(int borderStyle)
Borderables's
bottom border.
setBorderStyle(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |