|
Großmarkt | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--market.swing.ComponentFactory
Factory class for borders, JTextFields und JTFCheckables
.
Field Summary | |
static int |
CENTER
|
static int |
LEFT
|
static int |
RIGHT
|
Constructor Summary | |
ComponentFactory()
|
Method Summary | |
static Border |
createInsetBorder()
Creates a line border out that leaves some space around the object to which the border is set. |
static Border |
createInsetBorder(Border border,
int top,
int left,
int bottom,
int right)
Creates a compound border out that leaves some space around the object to which the border is set. |
static Border |
createInsetBorder(String label)
Creates a title border out that leaves some space around the object to which the border is set. |
static JTextField |
createTextField(double value,
int size,
boolean editable,
int alignment,
boolean border)
Creates a JTextField. |
static JTextField |
createTextField(String text,
int size,
boolean editable,
int alignment,
boolean border)
Creates a JTextField. |
static JTextField |
createTextField(String text,
int size,
boolean editable,
int alignment,
Color color,
boolean border)
Creates a JTextField. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int LEFT
public static final int CENTER
public static final int RIGHT
Constructor Detail |
public ComponentFactory()
Method Detail |
public static Border createInsetBorder()
public static Border createInsetBorder(String label)
label
- the caption of the title border.
public static Border createInsetBorder(Border border, int top, int left, int bottom, int right)
border
- the outer border.top
- the top inset.left
- the left inset.bottom
- the bottom inset.right
- the right inset.
public static JTextField createTextField(String text, int size, boolean editable, int alignment, boolean border)
text
- the text to be set.size
- the text field's sizeeditable
- defines if text field is editable or notalignment
- the text's alignment in the text field (left, center, right)border
- defines if the text field should have a border.
public static JTextField createTextField(double value, int size, boolean editable, int alignment, boolean border)
value
- the number to be set as text.size
- the text field's sizeeditable
- defines if text field is editable or notalignment
- the text's alignment in the text field (left, center, right)border
- defines if the text field should have a border.
public static JTextField createTextField(String text, int size, boolean editable, int alignment, Color color, boolean border)
text
- the text to be set.size
- the text field's sizeeditable
- defines if text field is editable or notalignment
- the text's alignment in the text field (left, center, right)color
- the color of the text field's text.border
- defines if the text field should have a border.
|
Großmarkt | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |