|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.TableView.Column
@DefaultProperty(value="cellRenderer") public static 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. |
TableView.HeaderDataRenderer |
getHeaderDataRenderer()
Returns the column header data renderer. |
int |
getMaximumWidth()
Get the maximum width the column is allowed to be. |
int |
getMinimumWidth()
Gets the minimum width the column is allowed to be. |
String |
getName()
Returns the column name. |
TableView |
getTableView()
Returns the table view with which this column is associated. |
int |
getWidth()
Returns the column width. |
Limits |
getWidthLimits()
Gets the minimum and maximum widths to which the column can size. |
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 |
setHeaderDataRenderer(TableView.HeaderDataRenderer headerDataRenderer)
Sets the column header data renderer. |
void |
setMaximumWidth(int maximumWidth)
Set the maximum width the column is allowed to be. |
void |
setMinimumWidth(int minimumWidth)
Sets the minimum width the column is allowed to be. |
void |
setName(String name)
Sets the column name. |
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. |
void |
setWidthLimits(int minimumWidth,
int maximumWidth)
Sets the minimum and maximum widths the column can size to. |
void |
setWidthLimits(Limits widthLimits)
Sets the minimum and maximum widths to which the column can size. |
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 TableView.HeaderDataRenderer getHeaderDataRenderer()
public void setHeaderDataRenderer(TableView.HeaderDataRenderer headerDataRenderer)
headerDataRenderer
- 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 Limits getWidthLimits()
public void setWidthLimits(int minimumWidth, int maximumWidth)
minimumWidth
- Column width cannot be smaller than this size.maximumWidth
- Column width cannot be greater than this size.public void setWidthLimits(Limits widthLimits)
widthLimits
- The new width limits.public int getMinimumWidth()
public void setMinimumWidth(int minimumWidth)
minimumWidth
- Minimum column width.public int getMaximumWidth()
public void setMaximumWidth(int maximumWidth)
maximumWidth
- Maximum column width.public 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 |