|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jtheque.core.utils.ui.PanelBuilder
public final class PanelBuilder
A panel builder.
| Field Summary | |
|---|---|
static int |
BOLD
|
static int |
ITALIC
|
| Constructor Summary | |
|---|---|
PanelBuilder()
Construct a new PanelBuilder. |
|
PanelBuilder(javax.swing.JPanel panel)
Construct a new panel builder. |
|
| Method Summary | ||
|---|---|---|
|
add(T component,
java.lang.Object constraints)
Add a component to the panel with the specified constraints. |
|
javax.swing.JButton |
addButton(javax.swing.Action action,
java.lang.Object constraints)
Add a button to the panel. |
|
void |
addButtonBar(java.lang.Object constraints,
javax.swing.Action... actions)
Add a button bar. |
|
javax.swing.JComboBox |
addComboBox(javax.swing.DefaultComboBoxModel model,
java.lang.Object constraints)
Add a combo box. |
|
javax.swing.JCheckBox |
addI18nCheckBox(java.lang.String key,
java.lang.Object constraints)
Add an internationalized check box. |
|
JThequeLabel |
addI18nLabel(java.lang.String key,
java.lang.Object constraints)
Add an internationalized label to the panel. |
|
void |
addI18nSeparator(java.lang.String key,
java.lang.Object constraints)
Add an internationalized separator. |
|
JThequeLabel |
addInternationalizedLabel(java.lang.String key,
java.lang.Object constraints,
int style)
Add an internationalized label with a specified style to the panel. |
|
void |
addLabel(java.lang.String text,
java.lang.Object constraints)
Add a label to the panel. |
|
javax.swing.JList |
addList(javax.swing.ListModel model,
javax.swing.ListCellRenderer renderer,
java.lang.Object constraints)
Add a Jlist with the specified model. |
|
PanelBuilder |
addPanel(java.lang.Object constraints)
Add a panel to the panel. |
|
void |
addScrolled(javax.swing.JComponent view,
java.lang.Object constraints)
Add a scrolled component. |
|
void |
addScrolledTextArea(java.lang.String text,
java.lang.Object constraints)
Add a scrolled text area. |
|
java.lang.Object |
gbcSet(int x,
int y)
Create a new layout constraints. |
|
java.lang.Object |
gbcSet(int x,
int y,
int fill)
Create a new layout constraints. |
|
java.lang.Object |
gbcSet(int x,
int y,
int fill,
int anchor)
Create a new layout constraints. |
|
java.lang.Object |
gbcSet(int x,
int y,
int fill,
int anchor,
double weightx,
double weighty)
Create a new layout constraints. |
|
java.lang.Object |
gbcSet(int x,
int y,
int fill,
int width,
int height)
Create a new layout constraints. |
|
java.lang.Object |
gbcSet(int x,
int y,
int fill,
int anchor,
int width,
int height)
Create a new layout constraints. |
|
java.lang.Object |
gbcSet(int x,
int y,
int fill,
int anchor,
int width,
int height,
double weightx,
double weighty)
Create a new layout constraints. |
|
javax.swing.JComponent |
getPanel()
Return the builded panel. |
|
void |
setDefaultInsets(java.awt.Insets defaultInsets)
Set the default insets. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BOLD
public static final int ITALIC
| Constructor Detail |
|---|
public PanelBuilder()
public PanelBuilder(javax.swing.JPanel panel)
panel - The panel to build.| Method Detail |
|---|
public <T extends java.awt.Component> T add(T component,
java.lang.Object constraints)
T - The type of component.component - The component to add.constraints - The constraints to use to add to the panel.
public javax.swing.JComboBox addComboBox(javax.swing.DefaultComboBoxModel model,
java.lang.Object constraints)
model - The combobox model.constraints - The constraints to use to add to the panel.
public javax.swing.JCheckBox addI18nCheckBox(java.lang.String key,
java.lang.Object constraints)
key - The internationalization key.constraints - The constraints to use to add to the panel.
public javax.swing.JList addList(javax.swing.ListModel model,
javax.swing.ListCellRenderer renderer,
java.lang.Object constraints)
model - The model to use.renderer - The list renderer.constraints - The constraints to use to add to the panel.
public javax.swing.JButton addButton(javax.swing.Action action,
java.lang.Object constraints)
action - The action to use with the button.constraints - The constraints to use to add to the panel.
public void addLabel(java.lang.String text,
java.lang.Object constraints)
text - The text of the label.constraints - The constraints to use to add to the panel.
public JThequeLabel addI18nLabel(java.lang.String key,
java.lang.Object constraints)
key - The i18n key.constraints - The constraints to use to add to the panel.
public JThequeLabel addInternationalizedLabel(java.lang.String key,
java.lang.Object constraints,
int style)
key - The i18n key.constraints - The constraints to use to add to the panel.style - The font style.
public void addScrolledTextArea(java.lang.String text,
java.lang.Object constraints)
text - The text of the text area.constraints - The constraints to use to add to the panel.
public void addScrolled(javax.swing.JComponent view,
java.lang.Object constraints)
view - The view.constraints - The constraints to use to add to the panel.
public void addI18nSeparator(java.lang.String key,
java.lang.Object constraints)
key - The title key.constraints - The constraints to use to add to the panel.
public void addButtonBar(java.lang.Object constraints,
javax.swing.Action... actions)
constraints - The constraints to use to add to the panel.actions - The actions to add to the button bar.public PanelBuilder addPanel(java.lang.Object constraints)
constraints - The constraints to use to add to the panel.
public javax.swing.JComponent getPanel()
public void setDefaultInsets(java.awt.Insets defaultInsets)
defaultInsets - The default insets.
public java.lang.Object gbcSet(int x,
int y,
int fill,
int anchor,
double weightx,
double weighty)
x - The x position on the grid.y - The y position on the grid.fill - The fill constraint.anchor - The anchor constraint.weightx - The weight in x axis.weighty - The weight in y axis.
public java.lang.Object gbcSet(int x,
int y,
int fill,
int anchor,
int width,
int height,
double weightx,
double weighty)
x - The x position on the grid.y - The y position on the grid.fill - The fill constraint.anchor - The anchor constraint.width - The col span.height - The row span.weightx - The weight in x axis.weighty - The weight in y axis.
public java.lang.Object gbcSet(int x,
int y,
int fill,
int anchor,
int width,
int height)
x - The x position on the grid.y - The y position on the grid.fill - The fill constraint.anchor - The anchor constraint.width - The col span.height - The row span.
public java.lang.Object gbcSet(int x,
int y,
int fill,
int width,
int height)
x - The x position on the grid.y - The y position on the grid.fill - The fill constraint.width - The col span.height - The row span.
public java.lang.Object gbcSet(int x,
int y,
int fill,
int anchor)
x - The x position on the grid.y - The y position on the grid.fill - The fill constraint.anchor - The anchor constraint.
public java.lang.Object gbcSet(int x,
int y,
int fill)
x - The x position on the grid.y - The y position on the grid.fill - The fill constraint.
public java.lang.Object gbcSet(int x,
int y)
x - The x position on the grid.y - The y position on the grid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||