info.joseluismartin.gui.form
Class BoxFormBuilder

java.lang.Object
  extended by info.joseluismartin.gui.form.BoxFormBuilder

public class BoxFormBuilder
extends Object

A FormBuilder that create form using columns of Box. Add components using a implicit cursor.

Author:
Jose Luis Martin - (jlm@joseluismartin.info)

Constructor Summary
BoxFormBuilder()
          Default Ctor
BoxFormBuilder(BinderFactory binderFactory)
          Default Ctor
 
Method Summary
 void add(Component c)
          Add a component to Form at position pointer by cursor, Increments cursor by one.
 void add(String name, Component c)
          Add a component with label, increments cursor by two.
 BinderFactory getBinderFactory()
           
 JComponent getForm()
          Builds the panel form.
 int getHeight()
           
 org.springframework.context.MessageSource getMessageSource()
           
 boolean isDebug()
           
 void next()
           
 void reset()
          Reset the form builder to reuse for creating a new panel
 void row()
          Move cursor to next row.
 void setBinderFactory(BinderFactory binderFactory)
           
 void setDebug(boolean debug)
           
 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
 

Constructor Detail

BoxFormBuilder

public BoxFormBuilder()
Default Ctor


BoxFormBuilder

public BoxFormBuilder(BinderFactory binderFactory)
Default Ctor

Method Detail

add

public void add(Component c)
Add a component to Form at position pointer by cursor, Increments cursor by one.

Parameters:
c - Component to add

add

public void add(String name,
                Component c)
Add a component with label, increments cursor by two.

Parameters:
name - label string
c - component.

setMaxWidth

public void setMaxWidth(int i)
Parameters:
i -

row

public void row()
Move cursor to next row.


getForm

public JComponent getForm()
Builds the panel form.

Returns:
the form component

reset

public void reset()
Reset the form builder to reuse for creating a new panel


next

public void next()

getHeight

public int getHeight()

setHeight

public void setHeight(int height)

isDebug

public boolean isDebug()

setDebug

public void setDebug(boolean debug)

getBinderFactory

public BinderFactory getBinderFactory()

setBinderFactory

public void setBinderFactory(BinderFactory binderFactory)

getMessageSource

public org.springframework.context.MessageSource getMessageSource()

setMessageSource

public void setMessageSource(org.springframework.context.MessageSource messageSource)


Copyright © 2012 JDAL. All Rights Reserved.