ROW - is the generic type of the contained row.public class ItemContainerGwt<ROW> extends AbstractItemContainer<ROW,ItemContainerGwt<ROW>> implements com.google.gwt.event.dom.client.ClickHandler
| Modifier and Type | Field and Description |
|---|---|
private com.google.gwt.user.client.ui.SimpleCheckBox |
multiSelectionCheckbox |
private TableRow |
originalTableRow |
private TableCellAtomic |
rowNumberCell |
private TableCellAtomic |
selectionCell |
private com.google.gwt.user.client.ui.RadioButton |
singleSelectionRadioButton |
private TableRow |
tableRow |
| Constructor and Description |
|---|
ItemContainerGwt(AbstractUiWidgetAbstractDataTable<?,?,ROW,ItemContainerGwt<ROW>> dataTable)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.user.client.ui.SimpleCheckBox |
getMultiSelectionCheckbox() |
TableCellAtomic |
getRowNumberCell() |
TableCellAtomic |
getSelectionCell() |
com.google.gwt.user.client.ui.RadioButton |
getSingleSelectionRadioButton() |
TableRow |
getTableRow() |
private void |
initTableRow()
Initializes the current table row.
|
boolean |
isSelected()
This method determines if the object is selected.
|
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event) |
void |
setRowNumber(int row) |
void |
setSelected(boolean selected)
This method sets the selection status of this object.
|
void |
setSelectionMode(SelectionMode selectionMode)
This method sets the
selection mode. |
void |
setTableRow(TableRow tableRow) |
private void |
updateSelectionStyle(boolean selected) |
getItem, getItemEdited, getItemOriginal, getSelectionMode, getUiWidget, getValue, isContainerForItem, setItemEdited, setItemOriginalprivate TableRow tableRow
getTableRow()private TableRow originalTableRow
getTableRow()private TableCellAtomic rowNumberCell
getRowNumberCell()private com.google.gwt.user.client.ui.SimpleCheckBox multiSelectionCheckbox
setSelected(boolean)private com.google.gwt.user.client.ui.RadioButton singleSelectionRadioButton
setSelected(boolean)private TableCellAtomic selectionCell
setSelectionMode(SelectionMode)public ItemContainerGwt(AbstractUiWidgetAbstractDataTable<?,?,ROW,ItemContainerGwt<ROW>> dataTable)
dataTable - is the AbstractUiWidgetAbstractDataTable creating and owning this
ItemContainerGwt.public void setTableRow(TableRow tableRow)
tableRow - is the TableRow to set.private void initTableRow()
public com.google.gwt.user.client.ui.SimpleCheckBox getMultiSelectionCheckbox()
public com.google.gwt.user.client.ui.RadioButton getSingleSelectionRadioButton()
public TableCellAtomic getSelectionCell()
public TableCellAtomic getRowNumberCell()
public void setRowNumber(int row)
row - is the current number of this row (starting with 1).public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick in interface com.google.gwt.event.dom.client.ClickHandlerpublic boolean isSelected()
isSelected in interface AttributeReadSelectedtrue if this object is selected.public void setSelected(boolean selected)
setSelected in interface AttributeWriteSelectedselected - - if true the object will be selected, else it will be de-selected.private void updateSelectionStyle(boolean selected)
selected - true for selected, false for de-selected.public void setSelectionMode(SelectionMode selectionMode)
selection mode. SelectionMode immediately after creating the object. The initial
default is always SelectionMode.SINGLE_SELECTION. Dynamically changing the SelectionMode
may be expensive or not be supported (in exotic implementations) and should therefore be avoided.setSelectionMode in interface AttributeWriteSelectionModeselectionMode - is the new SelectionMode.Copyright © 2001–2016 mmm-Team. All rights reserved.