|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.widgets.Grid.Column<java.lang.Boolean,T>
com.vaadin.client.widgets.Grid.SelectionColumn
public final class Grid.SelectionColumn
| Method Summary | |
|---|---|
int |
getExpandRatio()
Gets the expand ratio for this column. |
double |
getMaximumWidth()
Gets the maximum width for this column. |
double |
getMinimumWidth()
Gets the minimum width for this column. |
java.lang.Boolean |
getValue(T row)
Returns the data that should be rendered into the cell. |
protected void |
setDefaultHeaderContent(Grid.HeaderCell selectionCell)
Resets the default header cell contents to column header captions. |
Grid.Column<java.lang.Boolean,T> |
setEditable(boolean editable)
Sets whether the values in this column should be editable by the user when the row editor is active. |
Grid.Column<java.lang.Boolean,T> |
setExpandRatio(int ratio)
Sets the ratio with which the column expands. |
Grid.Column<java.lang.Boolean,T> |
setMaximumWidth(double pixels)
Sets the maximum width for this column. |
Grid.Column<java.lang.Boolean,T> |
setMinimumWidth(double pixels)
Sets the minimum width for this column. |
Grid.Column<java.lang.Boolean,T> |
setWidth(double pixels)
Sets the pixel width of the column. |
| Methods inherited from class com.vaadin.client.widgets.Grid.Column |
|---|
clearExpandRatio, getHeaderCaption, getHidingToggleCaption, getRenderer, getWidth, getWidthActual, isEditable, isHidable, isHidden, isResizable, isSortable, setHeaderCaption, setHidable, setHidden, setHidingToggleCaption, setRenderer, setResizable, setSortable, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
protected void setDefaultHeaderContent(Grid.HeaderCell selectionCell)
Grid.Column
setDefaultHeaderContent in class Grid.Column<java.lang.Boolean,T>selectionCell - default header cell for this columnpublic Grid.Column<java.lang.Boolean,T> setWidth(double pixels)
Grid.ColumnThis action is done "finally", once the current execution loop returns. This is done to reduce overhead of unintentionally always recalculate all columns, when modifying several columns at once.
If the column is currently hidden, then this set
width has effect only once the column has been made visible again.
setWidth in class Grid.Column<java.lang.Boolean,T>pixels - the width in pixels or negative for auto sizingpublic java.lang.Boolean getValue(T row)
Grid.ColumnTo support other types you will need to pass a custom renderer to the column via the column constructor.
getValue in class Grid.Column<java.lang.Boolean,T>row - The row object that provides the cell content.
public Grid.Column<java.lang.Boolean,T> setExpandRatio(int ratio)
Grid.ColumnBy default, all columns expand equally (treated as if all of them had an expand ratio of 1). Once at least one column gets a defined expand ratio, the implicit expand ratio is removed, and only the defined expand ratios are taken into account.
If a column has a defined width (Grid.Column.setWidth(double)), it
overrides this method's effects.
Example: A grid with three columns, with expand ratios 0, 1 and 2, respectively. The column with a ratio of 0 is exactly as wide as its contents requires. The column with a ratio of 1 is as wide as it needs, plus a third of any excess space, bceause we have 3 parts total, and this column reservs only one of those. The column with a ratio of 2, is as wide as it needs to be, plus two thirds of the excess width.
This action is done "finally", once the current execution loop returns. This is done to reduce overhead of unintentionally always recalculate all columns, when modifying several columns at once.
setExpandRatio in class Grid.Column<java.lang.Boolean,T>public int getExpandRatio()
Grid.Column
getExpandRatio in class Grid.Column<java.lang.Boolean,T>Grid.Column.setExpandRatio(int)public Grid.Column<java.lang.Boolean,T> setMaximumWidth(double pixels)
Grid.ColumnThis defines the maximum allowed pixel width of the column when it is set to expand.
This action is done "finally", once the current execution loop returns. This is done to reduce overhead of unintentionally always recalculate all columns, when modifying several columns at once.
setMaximumWidth in class Grid.Column<java.lang.Boolean,T>pixels - the maximum width
public double getMaximumWidth()
Grid.Column
getMaximumWidth in class Grid.Column<java.lang.Boolean,T>Grid.Column.setMaximumWidth(double)public Grid.Column<java.lang.Boolean,T> setMinimumWidth(double pixels)
Grid.ColumnThis defines the minimum guaranteed pixel width of the column when it is set to expand.
This action is done "finally", once the current execution loop returns. This is done to reduce overhead of unintentionally always recalculate all columns, when modifying several columns at once.
setMinimumWidth in class Grid.Column<java.lang.Boolean,T>pixels - the minimum width
public double getMinimumWidth()
Grid.Column
getMinimumWidth in class Grid.Column<java.lang.Boolean,T>Grid.Column.setMinimumWidth(double)public Grid.Column<java.lang.Boolean,T> setEditable(boolean editable)
Grid.Column
setEditable in class Grid.Column<java.lang.Boolean,T>editable - true to set this column editable, false
otherwise
Grid.editRow(int),
Grid.isEditorActive()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||