pivot.wtk
Class TablePane.Column

java.lang.Object
  extended by pivot.wtk.TablePane.Column
Enclosing class:
TablePane

public static class TablePane.Column
extends Object

Represents a table pane column.

Author:
tvolkert

Constructor Summary
TablePane.Column()
           
TablePane.Column(int width)
           
TablePane.Column(int width, boolean relative)
           
TablePane.Column(int width, boolean relative, boolean selected)
           
 
Method Summary
 TablePane getTablePane()
          Returns the table pane with which this column is associated.
 int getWidth()
          Returns the column width.
 boolean isRelative()
          Returns the relative flag.
 boolean isSelected()
          Returns the selected flag.
 void setSelected(boolean selected)
          Sets the selected flag.
 void setWidth(int width)
          Set the column width.
 void setWidth(int width, boolean relative)
          Sets the column width.
 void setWidth(String width)
          Set the column width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TablePane.Column

public TablePane.Column()

TablePane.Column

public TablePane.Column(int width)

TablePane.Column

public TablePane.Column(int width,
                        boolean relative)

TablePane.Column

public TablePane.Column(int width,
                        boolean relative,
                        boolean selected)
Method Detail

getTablePane

public TablePane getTablePane()
Returns the table pane with which this column is associated.

Returns:
The column's table pane, or null if the column does not currently belong to a table.

getWidth

public int getWidth()
Returns the column width.

Returns:
The width of the column.

isRelative

public boolean isRelative()
Returns the relative flag.

Returns:
true if the column width is relative, false if it is fixed.

setWidth

public void setWidth(int width)
Set the column width.

Parameters:
width - The absolute width of the column.

setWidth

public void setWidth(String width)
Set the column width.

Parameters:
width - The encoded width of the row. If the string ends with the '*' character, it is treated as a relative value. Otherwise, it is considered an absolute value.

setWidth

public void setWidth(int width,
                     boolean relative)
Sets the column width.

Parameters:
width - The width of the column.
relative - true if the column width is relative, false if it is fixed.

isSelected

public boolean isSelected()
Returns the selected flag.

Returns:
true if the column is selected, false if it is not

setSelected

public void setSelected(boolean selected)
Sets the selected flag.

Parameters:
selected - true to set the column as selected, false to set it as not selected