| java.lang.Object net.mygwt.ui.client.widget.table.RowSelectionModel
RowSelectionModel | public class RowSelectionModel implements Listener(Code) | | Row selection model.
- Styles:
- SINGLE, MULTI
|
Constructor Summary | |
public | RowSelectionModel(int style) Creates a new selection model. |
style | protected int style(Code) | | |
RowSelectionModel | public RowSelectionModel(int style)(Code) | | Creates a new selection model.
Parameters: style - the style information |
deselect | public void deselect(int index)(Code) | | Deselects the item at the given index. If the item at the index was already
deselected, it remains deselected.
Parameters: index - the item to deselect |
deselect | public void deselect(int begin, int end)(Code) | | Deselects the items at the given indices. If the item at the given index is
selected, it is deselected. If the item at the index was not selected, it
remains deselected.
Parameters: begin - the start index Parameters: end - the end index |
deselectAll | public void deselectAll()(Code) | | Deselects all selections.
|
isSelected | public boolean isSelected(int index)(Code) | | Returns true if the row is selected.
Parameters: index - the row index the selected state |
refresh | public void refresh()(Code) | | Refreshes the selections.
|
select | public void select(int index)(Code) | | Selects the item at the given index. If the item at the index was already
selected, it remains selected.
Parameters: index - the row to select |
select | public void select(int start, int end)(Code) | | Selects the item in the range specified by the given indices. The current
selection is not cleared before the new rows are selected.
Parameters: start - the start of the range Parameters: end - the end of the range |
selectAll | public void selectAll()(Code) | | Selects all items.
|
selectItems | protected void selectItems(int start, int end, boolean state, boolean keepSelected)(Code) | | |
|
|