Java com.jgoodies.forms.builder DefaultFormBuilder fields, constructors, methods, implement or subclass

Example usage for Java com.jgoodies.forms.builder DefaultFormBuilder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.jgoodies.forms.builder DefaultFormBuilder.

The text is from its open source code.

Field

RowSpecdefaultRowSpec
Holds the row specification that is reused to describe rows that are intended for labels and components.
intleadingColumnOffset
Holds the offset of the leading column - often 0 or 1.
booleanrowGroupingEnabled
Determines whether new data rows are being grouped or not.

Constructor

DefaultFormBuilder(FormLayout layout)
Constructs a DefaultFormBuilder for the given layout.
DefaultFormBuilder(FormLayout layout, JPanel container)
Constructs a DefaultFormBuilder for the given layout and panel.
DefaultFormBuilder(FormLayout layout, ResourceBundle bundle)
Constructs a DefaultFormBuilder for the given layout and resource bundle.
DefaultFormBuilder(FormLayout layout, StringResourceAccessor localizer)
Constructs a DefaultFormBuilder for the given layout and resource bundle.
DefaultFormBuilder(FormLayout layout, ResourceBundle bundle, JPanel container)
Constructs a DefaultFormBuilder for the given layout, resource bundle, and panel.
DefaultFormBuilder(FormLayout layout, StringResourceAccessor localizer, JPanel container)
Constructs a DefaultFormBuilder for the given layout, resource bundle, and panel.

Method

voidappend(Component component, int columnSpan)
Adds a component to the panel using the default constraints with the given columnSpan.
voidappend(Component c1, Component c2)
Adds two components to the panel; each component will span a single data column.
JLabelappend(String textWithMnemonic, Component component)
Adds a text label and component to the panel.
voidappend(Component component)
Adds a component to the panel using the default constraints with a column span of 1.
JLabelappend(String textWithMnemonic)
Adds a text label to the panel and proceeds to the next column.
voidappend(Component c1, Component c2, Component c3)
Adds three components to the panel; each component will span a single data column.
JLabelappend(String textWithMnemonic, Component c, boolean nextLine)
Adds a text label and component to the panel; the component will span the specified number columns.
JLabelappend(String textWithMnemonic, Component c, int columnSpan)
Adds a text label and component to the panel; the component will span the specified number columns.
JLabelappend(String textWithMnemonic, Component c1, Component c2)
Adds a text label and two components to the panel; each component will span a single column.
JLabelappendI15d(String resourceKey, Component component)
Adds an internationalized (i15d) text label and component to the panel.
JLabelappendI15d(String resourceKey, Component component, boolean nextLine)
Adds an internationalized (i15d) text label and component to the panel.
JLabelappendI15d(String resourceKey, Component c, int columnSpan)
Adds an internationalized (i15d) text label to the panel using the given resource key; then proceeds to the next data column and adds a component with the given column span.
JLabelappendI15d(String resourceKey, Component c1, Component c2)
Adds an internationalized (i15d) text label and two components to the panel; each component will span a single column.
JComponentappendI15dSeparator(String resourceKey)
Appends an internationalized titled separator for the given resource key that spans all columns.
JLabelappendI15dTitle(String resourceKey)
Adds an internationalized title label to the panel and proceeds to the next column.
JComponentappendSeparator(String text)
Adds a separator with the given text that spans all columns.
JComponentappendSeparator()
Adds a separator without text that spans all columns.
JLabelappendTitle(String textWithMnemonic)
Adds a title label to the panel and proceeds to the next column.
DefaultFormBuilderborder(Border border)
DefaultFormBuilderborder(String emptyBorderSpec)
RowSpecgetLineGapSpec()
Returns the row specification that is used to separate component row.
DefaultFormBuilderlineGapSize(ConstantSize lineGapSize)
Sets the size of gaps between component lines using the given constant size.

Examples:

 .lineGapSize(Sizes.ZERO); .lineGapSize(Sizes.DLUY9); .lineGapSize(Sizes.pixel(1)); 
voidsetLeadingColumnOffset(int columnOffset)
Sets the offset of the leading column, often 0 or 1.
voidsetLineGapSize(ConstantSize lineGapSize)
Sets the size of gaps between component lines using the given constant size.

Examples:

 .setLineGapSize(Sizes.ZERO); .setLineGapSize(Sizes.DLUY9); .setLineGapSize(Sizes.pixel(1)); 
voidsetRowGroupingEnabled(boolean enabled)
Enables or disables the grouping of new data rows.