public class BaseGridColumn<T> extends Object implements GridColumn<T>
GridColumn.ColumnWidthMode, GridColumn.HeaderMetaData
Modifier and Type | Field and Description |
---|---|
protected String |
placeHolder |
Constructor and Description |
---|
BaseGridColumn(GridColumn.HeaderMetaData headerMetaData,
GridColumnRenderer<T> columnRenderer,
double width) |
BaseGridColumn(GridColumn.HeaderMetaData headerMetaData,
GridColumnRenderer<T> columnRenderer,
double width,
String placeHolder) |
BaseGridColumn(List<GridColumn.HeaderMetaData> headerMetaData,
GridColumnRenderer<T> columnRenderer,
double width) |
BaseGridColumn(List<GridColumn.HeaderMetaData> headerMetaData,
GridColumnRenderer<T> columnRenderer,
double width,
String placeHolder) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
GridColumnRenderer<T> |
getColumnRenderer()
Returns the Render for the column
|
GridColumn.ColumnWidthMode |
getColumnWidthMode()
Get column width mode
|
List<GridColumn.HeaderMetaData> |
getHeaderMetaData()
Returns the MetaData for the Header.
|
int |
getIndex()
Returns the logical index to which this column relates.
|
GridColumn<?> |
getLink()
Returns the column to which this column is linked
|
Double |
getMaximumWidth()
Returns the maximum width to which the column can be re-sized
|
Double |
getMinimumWidth()
Returns the minimum width to which the column can be re-sized
|
String |
getPlaceHolder() |
double |
getWidth()
Returns the column's width
|
int |
hashCode() |
boolean |
isFloatable()
Returns a flag indicating whether a column is capable of floating on the left-hand side of the table when clipped horizontally.
|
boolean |
isLinked()
Returns a flag indicating this column is linked to another
|
boolean |
isMovable()
Returns a flag indicating whether a column can be moved.
|
boolean |
isResizable()
Returns a flag indicating whether a column can be re-sized.
|
boolean |
isVisible()
Returns a flag indicating whether a column is visible.
|
void |
setColumnWidthMode(GridColumn.ColumnWidthMode columnWidthMode)
Set column width mode
|
void |
setFloatable(boolean isFloatable)
Sets whether the column is capable of floating on the left-hand side of the table when clipped horizontally.
|
void |
setIndex(int index)
Sets the logical index of the column, to support indirection of columns' access to row data.
|
void |
setLink(GridColumn<?> link)
Sets the column to which this column is linked
|
void |
setMaximumWidth(Double maximumWidth)
Sets the maximum width to which the column can be re-sized
|
void |
setMinimumWidth(Double minimumWidth)
Sets the minimum width to which the column can be re-sized
|
void |
setMovable(boolean isMovable)
Sets whether the column can be moved.
|
void |
setPlaceHolder(String placeHolder) |
void |
setResizable(boolean isResizable)
Sets whether the column can be re-sized.
|
void |
setVisible(boolean isVisible)
Sets whether the column is visible.
|
void |
setWidth(double width)
Sets the columns width
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
edit, edit
protected String placeHolder
public BaseGridColumn(GridColumn.HeaderMetaData headerMetaData, GridColumnRenderer<T> columnRenderer, double width)
public BaseGridColumn(List<GridColumn.HeaderMetaData> headerMetaData, GridColumnRenderer<T> columnRenderer, double width)
public BaseGridColumn(GridColumn.HeaderMetaData headerMetaData, GridColumnRenderer<T> columnRenderer, double width, String placeHolder)
public BaseGridColumn(List<GridColumn.HeaderMetaData> headerMetaData, GridColumnRenderer<T> columnRenderer, double width, String placeHolder)
public List<GridColumn.HeaderMetaData> getHeaderMetaData()
GridColumn
getHeaderMetaData
in interface GridColumn<T>
public GridColumnRenderer<T> getColumnRenderer()
GridColumn
getColumnRenderer
in interface GridColumn<T>
public double getWidth()
GridColumn
getWidth
in interface GridColumn<T>
public void setWidth(double width)
GridColumn
setWidth
in interface GridColumn<T>
public boolean isLinked()
GridColumn
isLinked
in interface GridColumn<T>
public GridColumn<?> getLink()
GridColumn
getLink
in interface GridColumn<T>
public void setLink(GridColumn<?> link)
GridColumn
setLink
in interface GridColumn<T>
public int getIndex()
GridColumn
getIndex
in interface GridColumn<T>
public void setIndex(int index)
GridColumn
setIndex
in interface GridColumn<T>
public boolean isResizable()
GridColumn
isResizable
in interface GridColumn<T>
public void setResizable(boolean isResizable)
GridColumn
setResizable
in interface GridColumn<T>
isResizable
- true if the column can be re-sized.public boolean isMovable()
GridColumn
isMovable
in interface GridColumn<T>
public void setMovable(boolean isMovable)
GridColumn
setMovable
in interface GridColumn<T>
isMovable
- true if the column can be moved.public boolean isFloatable()
GridColumn
isFloatable
in interface GridColumn<T>
public void setFloatable(boolean isFloatable)
GridColumn
setFloatable
in interface GridColumn<T>
isFloatable
- true if the column can be floated.public boolean isVisible()
GridColumn
isVisible
in interface GridColumn<T>
public void setVisible(boolean isVisible)
GridColumn
setVisible
in interface GridColumn<T>
isVisible
- true if the column is visible.public Double getMinimumWidth()
GridColumn
getMinimumWidth
in interface GridColumn<T>
public void setMinimumWidth(Double minimumWidth)
GridColumn
setMinimumWidth
in interface GridColumn<T>
minimumWidth
- Minimum width, or null if no minimum widthpublic Double getMaximumWidth()
GridColumn
getMaximumWidth
in interface GridColumn<T>
public void setMaximumWidth(Double maximumWidth)
GridColumn
setMaximumWidth
in interface GridColumn<T>
maximumWidth
- Maximum width, or null if no minimum widthpublic String getPlaceHolder()
public void setPlaceHolder(String placeHolder)
public GridColumn.ColumnWidthMode getColumnWidthMode()
GridColumn
getColumnWidthMode
in interface GridColumn<T>
public void setColumnWidthMode(GridColumn.ColumnWidthMode columnWidthMode)
GridColumn
setColumnWidthMode
in interface GridColumn<T>
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.