Modifiers | Name | Description |
---|---|---|
static int |
DEFAULT_COMPONENT_COLUMN |
|
static int |
DEFAULT_LABEL_COLUMN |
|
static java.awt.Color |
HINT_TEXT_COLOR |
|
static int |
LONG_TEXT_FIELD_COLUMNS |
|
static int |
MEDIUM_TEXT_FIELD_COLUMNS |
|
static int |
SHORT_TEXT_FIELD_COLUMNS |
Constructor and description |
---|
SimpleForm
() |
SimpleForm
(java.lang.String columnSpec) |
SimpleForm
(java.lang.String columnSpec, javax.swing.border.Border border) |
Type Params | Return Type | Name and description |
---|---|---|
|
javax.swing.JButton |
addButtonWithoutLabelToTheRight(java.lang.String text, java.awt.event.ActionListener actionListener) |
|
void |
addComponent(javax.swing.JComponent component) |
|
void |
addComponentWithoutLabel(javax.swing.JComponent component) |
|
void |
addHiddenValue(java.lang.String name, java.lang.String value) |
|
void |
addInputFieldHintText(java.lang.String text) |
|
T |
addLeftComponent(T component) |
|
javax.swing.JButton |
addRightButton(javax.swing.Action action) |
|
void |
addRightComponent(javax.swing.JComponent component) |
|
void |
addSpace() |
|
void |
addSpace(int size) |
|
void |
append(javax.swing.JComponent component) |
|
void |
append(java.lang.String label, javax.swing.JComponent component) |
|
T |
append(java.lang.String label, T component, java.lang.String alignments) |
|
T |
append(java.lang.String name, javax.swing.JLabel label, T field) |
|
javax.swing.JButton |
appendButton(java.lang.String label, java.lang.String tooltip) |
|
javax.swing.JButton |
appendButtonWithoutLabel(java.lang.String text, java.awt.event.ActionListener actionListener) |
|
javax.swing.JCheckBox |
appendCheckBox(java.lang.String caption, java.lang.String label, boolean selected) |
|
javax.swing.JComboBox |
appendComboBox(java.lang.String label, java.util.Map<?, ?> values) |
|
javax.swing.JComboBox |
appendComboBox(java.lang.String label, java.lang.Object[] values, java.lang.String tooltip) |
|
javax.swing.JComboBox |
appendComboBox(java.lang.String label, javax.swing.ComboBoxModel model, java.lang.String tooltip) |
|
void |
appendFixed(java.lang.String label, javax.swing.JComponent component) |
|
void |
appendHeading(java.lang.String text) Appends a heading with bold text that streches from the default label column to the end of the form |
|
void |
appendHeadingAndHelpButton(java.lang.String text, java.lang.String helpUrl) |
|
void |
appendInOneRow(PropertyComponent propertyComponents) Appends a vararg of PropertyComponents to a single row in the form. |
|
void |
appendLabelAsLink(java.lang.String url, java.lang.String text) Appens a label with hyperlink behaviour that streches from the default label column to the end of the form |
|
javax.swing.JPasswordField |
appendPasswordField(java.lang.String label, java.lang.String tooltip) |
|
javax.swing.JRadioButton |
appendRadioButton(java.lang.String caption, java.lang.String label, javax.swing.ButtonGroup group, boolean selected) |
|
void |
appendSeparator() |
|
javax.swing.JTextArea |
appendTextArea(java.lang.String label, java.lang.String tooltip) |
|
javax.swing.JTextField |
appendTextField(java.lang.String label, java.lang.String tooltip) Appends a label and a text field to the form |
|
javax.swing.JTextField |
appendTextField(java.lang.String label, java.lang.String name, java.lang.String tooltip, int textFieldColumns) Appends a label and a text field to the form |
|
javax.swing.JComponent |
getComponent(java.lang.String label) |
|
java.lang.String |
getComponentValue(java.lang.String label) |
|
int |
getDefaultTextAreaColumns() |
|
int |
getDefaultTextAreaRows() |
|
java.awt.Font |
getLabelFont() |
|
javax.swing.JPanel |
getPanel() |
|
java.lang.String |
getRowAlignment() |
|
int |
getRowCount() |
|
int |
getRowSpacing() |
|
void |
getValues(java.util.Map<java.lang.String, java.lang.String> values) |
|
boolean |
hasComponents() |
|
void |
removeComponent(javax.swing.JComponent component) |
|
void |
setBorder(javax.swing.border.Border border) |
|
void |
setComponentValue(java.lang.String label, java.lang.String value) |
|
void |
setDefaultTextAreaColumns(int defaultTextAreaColumns) |
|
void |
setDefaultTextAreaRows(int defaultTextAreaRows) |
|
void |
setDefaultTextFieldColumns(int defaultTextFieldColumns)
|
|
void |
setEnabled(boolean b) |
|
void |
setLabelFont(java.awt.Font labelFont) |
|
void |
setRowAlignment(java.lang.String rowAlignment) |
|
void |
setRowAlignment(java.lang.String alignment, java.lang.String size, java.lang.String resize) |
|
void |
setRowSpacing(int rowSpacing) |
|
void |
setValues(java.util.Map<java.lang.String, java.lang.String> values) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Appends a heading with bold text that streches from the default label column to the end of the form
text
- The text of the headingAppends a vararg of PropertyComponents to a single row in the form. It's assumed that every other column contains a component and the others are used for spacing including the initial column.
propertyComponents
- The PropertyComponents to be addedAppens a label with hyperlink behaviour that streches from the default label column to the end of the form
url
- The URL to open when clicking on the labeltext
- The text of the labelAppends a label and a text field to the form
label
- The value of the label. Will also be the name of the text field.tooltip
- The value of the text field tool tipAppends a label and a text field to the form
label
- The value of the labelname
- The name of the text fieldtooltip
- The value of the text field tool tiptextFieldColumns
- The number of columns to display for the text field. Should be a constant defined in SimpleForm
defaultTextFieldColumns
- Should be a constant defined in SimpleForm