java.lang.Object | |
↳ | com.google.gwt.user.cellview.client.Column<T, C> |
Known Direct Subclasses
IdentityColumn<T>,
TextColumn<T>
|
A representation of a column in a table. The column may maintain view data
for each cell on demand. New view data, if needed, is created by the cell's
onBrowserEvent method, stored in the Column, and passed to future calls to
Cell's onBrowserEvent(Cell.Context, Element, C, NativeEvent, ValueUpdater
and render(Cell.Context, C, SafeHtmlBuilder)
methods.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.google.gwt.user.client.ui.HasHorizontalAlignment
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasVerticalAlignment
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new Column with a given
Cell . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the
Cell responsible for rendering items in the column. | |||||||||||
Returns the
FieldUpdater used for updating values in the column. | |||||||||||
Gets the horizontal alignment.
| |||||||||||
Returns the column value from within the underlying data object.
| |||||||||||
Gets the vertical alignment.
| |||||||||||
Check if the column is sortable.
| |||||||||||
Handle a browser event that took place within the column.
| |||||||||||
Render the object into the cell.
| |||||||||||
Set the
FieldUpdater used for updating values in the column. | |||||||||||
Sets the horizontal alignment.
The new horizontal alignment will apply the next time the table is rendered. | |||||||||||
Set whether or not the column can be sorted.
| |||||||||||
Sets the vertical alignment.
The new vertical alignment will apply the next time the table is rendered. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.google.gwt.cell.client.HasCell
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasHorizontalAlignment
| |||||||||||
From interface
com.google.gwt.user.client.ui.HasVerticalAlignment
|
Construct a new Column with a given Cell
.
cell | the Cell used by this Column |
---|
Returns the Cell
responsible for rendering items in the column.
Returns the FieldUpdater
used for updating values in the column.
Gets the horizontal alignment.
ALIGN_LEFT
,
ALIGN_CENTER
,
ALIGN_RIGHT
,
ALIGN_JUSTIFY
, or
null).
Returns the column value from within the underlying data object.
object | a record of type T |
---|
Gets the vertical alignment.
Check if the column is sortable.
Handle a browser event that took place within the column.
context | the cell context |
---|---|
elem | the parent Element |
object | the base object to be updated |
event | the native browser event |
Render the object into the cell.
context | the cell context |
---|---|
object | the object to render |
sb | the buffer to render into |
Set the FieldUpdater
used for updating values in the column.
fieldUpdater | the field updater |
---|
Sets the horizontal alignment.
Use null
to clear horizontal alignment, allowing it to be
determined by the standard HTML mechanisms such as inheritance and CSS
rules.
The new horizontal alignment will apply the next time the table is rendered.
align | the horizontal alignment ( HasHorizontalAlignment#ALIGN_LEFT, HasHorizontalAlignment#ALIGN_CENTER, HasHorizontalAlignment#ALIGN_RIGHT, HasHorizontalAlignment#ALIGN_JUSTIFY, HasHorizontalAlignment#ALIGN_LOCALE_START, or HasHorizontalAlignment#ALIGN_LOCALE_END). |
---|
Set whether or not the column can be sorted. The change will take effect the next time the table is redrawn.
sortable | true to make sortable, false to make unsortable |
---|
Sets the vertical alignment.
The new vertical alignment will apply the next time the table is rendered.
align | the vertical alignment ( HasVerticalAlignment#ALIGN_TOP, HasVerticalAlignment#ALIGN_MIDDLE, or HasVerticalAlignment#ALIGN_BOTTOM). |
---|