|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpivot.wtk.TableView.Column
public static final class TableView.Column
Contains information about a table column.
Field Summary | |
---|---|
static int |
DEFAULT_WIDTH
Default column width. |
Constructor Summary | |
---|---|
TableView.Column()
Creates an empty column. |
|
TableView.Column(String name)
Creates a new column with no header data and a fixed default width. |
|
TableView.Column(String name,
Object headerData)
Creates a new column with a fixed default width. |
|
TableView.Column(String name,
Object headerData,
int width)
Creates a new column with a fixed width. |
|
TableView.Column(String name,
Object headerData,
int width,
boolean relative)
Creates a new column. |
Method Summary | |
---|---|
TableView.CellRenderer |
getCellRenderer()
Returns the column's cell renderer. |
Object |
getFilter()
Returns the column's filter. |
Object |
getHeaderData()
Returns the column header data. |
String |
getName()
Returns the column name. |
SortDirection |
getSortDirection()
Returns the column's sort direction. |
TableView |
getTableView()
Returns the table view with which this column is associated. |
int |
getWidth()
Returns the column width. |
boolean |
isRelative()
Returns the relative flag. |
void |
setCellRenderer(TableView.CellRenderer cellRenderer)
Sets the column's cell renderer. |
void |
setFilter(Object filter)
Sets the column's filter. |
void |
setHeaderData(Object headerData)
Sets the column header data. |
void |
setName(String name)
Sets the column name. |
void |
setSortDirection(SortDirection sortDirection)
Sets the column's sort direction. |
void |
setSortDirection(String sortDirection)
Sets the column's sort direction. |
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 |
Field Detail |
---|
public static final int DEFAULT_WIDTH
Constructor Detail |
---|
public TableView.Column()
public TableView.Column(String name)
name
- The column name.public TableView.Column(String name, Object headerData)
name
- The column name.headerData
- The column header data.public TableView.Column(String name, Object headerData, int width)
name
- The column name.headerData
- The column header data.width
- The width of the column.public TableView.Column(String name, Object headerData, int width, boolean relative)
name
- The column name.headerData
- The column header data.width
- The width of the column.relative
- If true, specifies a relative column width; otherwise,
specifies a fixed column width.Method Detail |
---|
public TableView getTableView()
public String getName()
public void setName(String name)
name
- The column name.public Object getHeaderData()
public void setHeaderData(Object headerData)
headerData
- The column header data, or null for no header data.public int getWidth()
public boolean isRelative()
public void setWidth(int width)
width
- The absolute width of the column.public void setWidth(String width)
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.public void setWidth(int width, boolean relative)
width
- The width of the column.relative
- true if the column width is relative, false if it
is fixed.public SortDirection getSortDirection()
public void setSortDirection(SortDirection sortDirection)
sortDirection
- The column's sort direction, or null to specify no
sort directionpublic final void setSortDirection(String sortDirection)
sortDirection
- The column's sort direction, or null to specify no
sort directionpublic Object getFilter()
public void setFilter(Object filter)
filter
- The column's filter, or null for no filter.public TableView.CellRenderer getCellRenderer()
public void setCellRenderer(TableView.CellRenderer cellRenderer)
cellRenderer
- The cell renderer that is used to draw the contents of this column.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |