Class ColumnLocation

  extended by org.apache.wicket.extensions.markup.html.tree.table.ColumnLocation
All Implemented Interfaces:, IClusterable

public class ColumnLocation
extends java.lang.Object
implements IClusterable

This class represents location of a column in tree table.

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:

Matej Knopp
See Also:
Serialized Form

Nested Class Summary
static class ColumnLocation.Alignment
          Alignment of the column.
static class ColumnLocation.Unit
Constructor Summary
ColumnLocation(ColumnLocation.Alignment alignment, int size, ColumnLocation.Unit unit)
          Constructs the ColumnLocation object.
Method Summary
 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.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public ColumnLocation(ColumnLocation.Alignment alignment,
                      int size,
                      ColumnLocation.Unit unit)
Constructs the ColumnLocation object.

alignment - The column alignment
size - The column size in expressed in the provided unit
unit - The unit that the size argument is expressed in
java.lang.IllegalArgumentException - if the unit does not matche the alignment
Method Detail


public ColumnLocation.Alignment getAlignment()
Returns the alignment of this column.

The alignment of this column


public int getSize()
Returns the size of this column.

The size of this column


public ColumnLocation.Unit getUnit()
Returns the unit of a column.

The unit of this column

Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.