public interface GridColumn<T>
Modifier and Type | Interface and Description |
---|---|
static class |
GridColumn.ColumnWidthMode
Enum that identify the width mode of a column
|
static interface |
GridColumn.HeaderMetaData
MetaData for the column's header
|
Modifier and Type | Method and Description |
---|---|
default void |
edit(GridCell<T> cell,
GridBodyCellEditContext context,
Consumer<GridCellValue<T>> callback)
Edit the cell (normally in response to a mouse double-click event)
|
default void |
edit(GridCell<T> cell,
GridBodyCellRenderContext context,
Consumer<GridCellValue<T>> callback)
Edit the cell (normally in response to a mouse double-click event)
|
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
|
double |
getWidth()
Returns the column's width
|
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 |
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
|
List<GridColumn.HeaderMetaData> getHeaderMetaData()
GridColumnRenderer<T> getColumnRenderer()
default void edit(GridCell<T> cell, GridBodyCellRenderContext context, Consumer<GridCellValue<T>> callback)
cell
- context
- callback
- default void edit(GridCell<T> cell, GridBodyCellEditContext context, Consumer<GridCellValue<T>> callback)
cell
- context
- callback
- double getWidth()
void setWidth(double width)
width
- boolean isLinked()
GridColumn<?> getLink()
void setLink(GridColumn<?> link)
link
- int getIndex()
void setIndex(int index)
index
- boolean isResizable()
void setResizable(boolean isResizable)
isResizable
- true if the column can be re-sized.boolean isMovable()
void setMovable(boolean isMovable)
isMovable
- true if the column can be moved.boolean isFloatable()
void setFloatable(boolean isFloatable)
isFloatable
- true if the column can be floated.boolean isVisible()
void setVisible(boolean isVisible)
isVisible
- true if the column is visible.Double getMinimumWidth()
void setMinimumWidth(Double minimumWidth)
minimumWidth
- Minimum width, or null if no minimum widthDouble getMaximumWidth()
void setMaximumWidth(Double maximumWidth)
maximumWidth
- Maximum width, or null if no minimum widthGridColumn.ColumnWidthMode getColumnWidthMode()
void setColumnWidthMode(GridColumn.ColumnWidthMode columnWidthMode)
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.