|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.joseluismartin.gui.form.SimpleBoxFormBuilder
public class SimpleBoxFormBuilder
A FormBuilder that create form using BoxLayouts Add components using a implicit cursor.
Field Summary | |
---|---|
static int |
SIZE_UNDEFINED
|
Constructor Summary | |
---|---|
SimpleBoxFormBuilder()
Default Ctor |
|
SimpleBoxFormBuilder(Border border)
|
|
SimpleBoxFormBuilder(int defaultRowHeight)
|
|
SimpleBoxFormBuilder(int defaultRowHeight,
Border border)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SIZE_UNDEFINED
Constructor Detail |
---|
public SimpleBoxFormBuilder()
public SimpleBoxFormBuilder(Border border)
public SimpleBoxFormBuilder(int defaultRowHeight)
public SimpleBoxFormBuilder(int defaultRowHeight, Border border)
Method Detail |
---|
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 set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |