public class ColumnLocation extends Object implements org.apache.wicket.util.io.IClusterable
First attribute of location is alignment. Alignment specifies, whether the column is located on the left side of the table, on the right side, or in the middle. Columns in the middle of the table take all space between columns on the left and columns on the right.
Next two attributes are size and unit:
| Modifier and Type | Class and Description |
|---|---|
static class |
ColumnLocation.Alignment
Alignment of the column.
|
static class |
ColumnLocation.Unit
Units.
|
| Constructor and Description |
|---|
ColumnLocation(ColumnLocation.Alignment alignment,
int size,
ColumnLocation.Unit unit)
Constructs the ColumnLocation object.
|
| Modifier and Type | Method and Description |
|---|---|
ColumnLocation.Alignment |
getAlignment()
Returns the alignment of this column.
|
int |
getSize()
Returns the size of this column.
|
ColumnLocation.Unit |
getUnit()
Returns the unit of a column.
|
public ColumnLocation(ColumnLocation.Alignment alignment, int size, ColumnLocation.Unit unit)
alignment - The column alignmentsize - The column size in expressed in the provided unitunit - The unit that the size argument is expressed inIllegalArgumentException - if the unit does not matche the alignmentpublic ColumnLocation.Alignment getAlignment()
public int getSize()
public ColumnLocation.Unit getUnit()
Copyright © 2016. All Rights Reserved.