Package org.apache.pivot.wtk
Class TablePane.Column
- java.lang.Object
 - 
- org.apache.pivot.wtk.TablePane.Column
 
 
- 
- Enclosing class:
 - TablePane
 
public static class TablePane.Column extends java.lang.ObjectRepresents a table pane column. 
- 
- 
Constructor Summary
Constructors Constructor Description Column()Column(int width)Column(int width, boolean relative)Column(int width, boolean relative, boolean highlighted)Column(TablePane tablePane)Column(TablePane tablePane, int width)Column(TablePane tablePane, int width, boolean relative)Column(TablePane tablePane, int width, boolean relative, boolean highlighted) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TablePanegetTablePane()Returns the table pane with which this column is associated.intgetWidth()Returns the column width.booleanisHighlighted()Returns the highlighted flag.booleanisRelative()Returns the relative flag.voidsetHighlighted(boolean highlighted)Sets the highlighted flag.voidsetWidth(int width)Set the column width.voidsetWidth(int width, boolean relative)Sets the column width.voidsetWidth(java.lang.String width)Set the column width. 
 - 
 
- 
- 
Constructor Detail
- 
Column
public Column()
 
- 
Column
public Column(int width)
 
- 
Column
public Column(int width, boolean relative) 
- 
Column
public Column(int width, boolean relative, boolean highlighted) 
- 
Column
public Column(TablePane tablePane)
 
- 
Column
public Column(TablePane tablePane, int width)
 
- 
Column
public Column(TablePane tablePane, int width, boolean relative)
 
- 
Column
public Column(TablePane tablePane, int width, boolean relative, boolean highlighted)
 
 - 
 
- 
Method Detail
- 
getTablePane
public TablePane getTablePane()
Returns the table pane with which this column is associated.- Returns:
 - The column's table pane, or 
nullif 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:
 trueif the column width is relative,falseif 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(java.lang.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-trueif the column width is relative,falseif it is fixed.
 
- 
isHighlighted
public boolean isHighlighted()
Returns the highlighted flag.- Returns:
 trueif the column is highlighted,falseif it is not
 
- 
setHighlighted
public void setHighlighted(boolean highlighted)
Sets the highlighted flag.- Parameters:
 highlighted-trueto set the column as highlighted,falseto set it as not highlighted
 
 - 
 
 -