|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jcontrol.ui.vole.Component | +--jcontrol.ui.vole.Border
This class Border
creates a border
with the given extents.
(C) DOMOLOGIC Home Automation GmbH 2003
Field Summary | |
static int |
ETCHED_BORDER
Rectangular border with etched edges |
protected java.lang.String |
label
|
static int |
ROUND_BORDER
Rectangular border with round corners |
static int |
SIMPLE_BORDER
Simple rectangular border |
protected int |
style
|
Fields inherited from class jcontrol.ui.vole.Component |
focusOwner, font, g, height, listener, parent, visible, width, x, y |
Constructor Summary | |
Border(int x,
int y,
int width,
int height)
Creates a simple rectangular border. |
|
Border(java.lang.String label,
int x,
int y,
int width,
int height)
Creates a labeled rectangular Border. |
Method Summary | |
void |
paint()
Draw the border. |
void |
setLabel(java.lang.String label)
Sets the label of this border. |
void |
setStyle(int style)
Sets the style of this border. |
boolean |
transferFocus()
We never gain the input focus. |
Methods inherited from class jcontrol.ui.vole.Component |
getBounds, getParent, isVisible, onActionEvent, onKeyEvent, remove, removeFocus, requestFocus, setBounds, setFont, setGraphics, setLocation, setParent, setVisible, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, notifyAll, wait |
Field Detail |
public static final int ETCHED_BORDER
protected java.lang.String label
public static final int ROUND_BORDER
public static final int SIMPLE_BORDER
protected int style
Constructor Detail |
public Border(int x, int y, int width, int height)
x
- The x-coordinate of the border's top-left corner.y
- The y-coordinate of the border's top-left corner.width
- The width of the border.height
- The height of the border.public Border(java.lang.String label, int x, int y, int width, int height)
label
- The string label of the border.x
- The x-coordinate of the border's top-left corner.y
- The y-coordinate of the border's top-left corner.width
- The width of the border.height
- The height of the border.Method Detail |
public void paint()
paint
in class Component
public void setLabel(java.lang.String label)
label
- The new label of the border.public void setStyle(int style)
SIMPLE_BORDER
,
ETCHED_BORDER
and
ROUND_BORDER
.
style
- The new style of the border.public boolean transferFocus()
transferFocus
in class Component
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |