public class SimpleBoxFormBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SIZE_UNDEFINED |
| Constructor and Description |
|---|
SimpleBoxFormBuilder()
Default Ctor
|
SimpleBoxFormBuilder(Border border) |
SimpleBoxFormBuilder(int defaultRowHeight) |
SimpleBoxFormBuilder(int defaultRowHeight,
Border border) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Component c)
Add a component to Form at position pointer by cursor,
Increments cursor by one.
|
void |
add(Component c,
int maxWidth) |
void |
add(String name,
Component c)
Add a component with label, increments cursor by two.
|
void |
addBox(Component c) |
Border |
getBorder() |
int |
getCharWidth() |
int |
getDefaultRowHeight() |
int |
getDefaultSpace() |
JComponent |
getForm()
Builds the panel form.
|
int |
getHeight() |
org.springframework.context.MessageSource |
getMessageSource() |
boolean |
isDebug() |
boolean |
isFixedHeight() |
void |
next() |
void |
reset()
Reset the form builder to reuse for creating a new panel
|
void |
row() |
void |
row(int rowHeight)
Move cursor to next row.
|
void |
setBorder(Border border) |
void |
setCharWidth(int charWidth) |
void |
setDebug(boolean debug) |
void |
setDefaultRowHeight(int defaultRowHeight) |
void |
setDefaultSpace(int defaultSpace) |
void |
setFixedHeight(boolean fixedHeight) |
void |
setHeight(int height) |
void |
setMaxWidth(int i) |
void |
setMessageSource(org.springframework.context.MessageSource messageSource) |
public static final int SIZE_UNDEFINED
public SimpleBoxFormBuilder()
public SimpleBoxFormBuilder(Border border)
public SimpleBoxFormBuilder(int defaultRowHeight)
public SimpleBoxFormBuilder(int defaultRowHeight,
Border border)
public void add(Component c)
c - Component to addpublic void add(Component c, int maxWidth)
public void addBox(Component c)
public void add(String name, Component c)
name - label stringc - component.public void setMaxWidth(int i)
i - public void row()
public void row(int rowHeight)
public JComponent getForm()
public void reset()
public void next()
public int getHeight()
public void setHeight(int height)
public boolean isDebug()
public void setDebug(boolean debug)
public org.springframework.context.MessageSource getMessageSource()
public void setMessageSource(org.springframework.context.MessageSource messageSource)
public boolean isFixedHeight()
public void setFixedHeight(boolean fixedHeight)
fixedHeight - the fixedHeight to setpublic int getDefaultRowHeight()
public void setDefaultRowHeight(int defaultRowHeight)
defaultRowHeight - the defaultRowHeight to setpublic Border getBorder()
public void setBorder(Border border)
border - the border to setpublic int getDefaultSpace()
public void setDefaultSpace(int defaultSpace)
defaultSpace - the defaultSpace to setpublic int getCharWidth()
public void setCharWidth(int charWidth)
charWidth - the charWidth to setCopyright © 2014 JDAL. All Rights Reserved.