public class GridPanel extends Object implements XBayaComponent
| Modifier and Type | Field and Description |
|---|---|
static int |
WEIGHT_EQUALLY
Weight all rows or columns equally.
|
static int |
WEIGHT_NONE
Wight none of rows or eolumns.
|
| Constructor and Description |
|---|
GridPanel()
Constructs a GridPanel.
|
GridPanel(boolean scroll)
Constructs a GridPanel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(JComponent component) |
void |
add(JComponent component,
int index) |
void |
add(XBayaComponent component) |
void |
add(XBayaComponent component,
int index) |
JPanel |
getContentPanel() |
JComponent |
getSwingComponent()
Returns the swing component.
|
void |
layout(double[] rowWeights,
double[] columnWeights) |
void |
layout(int numRow,
int numColumn,
int weightedRow,
int weightedColumn)
Layouts the child components of a specified parent component using GridBagLayout.
|
void |
layout(List<Double> rowWeights,
List<Double> columnWeights) |
void |
remove(int index) |
void |
resetPanel() |
public static final int WEIGHT_NONE
public static final int WEIGHT_EQUALLY
public GridPanel()
public GridPanel(boolean scroll)
scroll - true if scroll is needed; false otherwise.public JComponent getSwingComponent()
XBayaComponentgetSwingComponent in interface XBayaComponentXBayaComponent.getSwingComponent()public JPanel getContentPanel()
public void add(XBayaComponent component)
component - public void add(XBayaComponent component, int index)
component - index - public void add(JComponent component)
component - public void add(JComponent component, int index)
component - index - public void remove(int index)
index - public void layout(int numRow,
int numColumn,
int weightedRow,
int weightedColumn)
numRow - The number of rowsnumColumn - The number of columnsweightedRow - The row to weightweightedColumn - The column to weightpublic void layout(double[] rowWeights,
double[] columnWeights)
rowWeights - columnWeights - public void layout(List<Double> rowWeights, List<Double> columnWeights)
rowWeights - columnWeights - public void resetPanel()
Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.