org.apache.wicket.extensions.markup.html.tree.table
Class ColumnLocation

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

public class ColumnLocation
extends 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:

Author:
Matej Knopp
See Also:
Serialized Form

Nested Class Summary
static class ColumnLocation.Alignment
          Alignment of the column.
static class ColumnLocation.Unit
          Units.
 
Constructor Summary
ColumnLocation(ColumnLocation.Alignment alignment, int size, ColumnLocation.Unit unit)
          Constructs the ColumnLocation object.
 
Method Summary
 ColumnLocation.Alignment getAlignment()
          Returns the allignment 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

ColumnLocation

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

Parameters:
alignment - The column alignment
size - The column size in expressed in the provided unit
unit - The unit that the size argument is expressed in
Throws:
IllegalArgumentException - if the unit does not matche the alignment
Method Detail

getAlignment

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

Returns:
The alignment of this column

getSize

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

Returns:
The size of this column

getUnit

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

Returns:
The unit of this column


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