|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.widget.selection.AbstractStoreSelectionModel<M>
M - the model type contained within the storepublic abstract class AbstractStoreSelectionModel<M extends ModelData>
Abstract base class for store based selection models.
doit
field to false to cancel the operation.
| Constructor Summary | |
|---|---|
AbstractStoreSelectionModel()
|
|
| Method Summary | |
|---|---|
void |
addSelectionChangedListener(SelectionChangedListener listener)
Add a selection changed listener. |
void |
bind(ListStore store)
Binds the store to the selection model. |
void |
deselect(int index)
Deselects the item at the given index. |
void |
deselect(int start,
int end)
Deselects the range. |
void |
deselect(java.util.List<M> items)
Deselects the items. |
void |
deselect(M... items)
Deselects the items. |
void |
deselect(M item)
Deselects the item. |
void |
deselectAll()
Deselects all selections. |
M |
getSelectedItem()
Returns the selected item. |
java.util.List<M> |
getSelectedItems()
Returns the selected items. |
java.util.List<M> |
getSelection()
Returns the current selection. |
Style.SelectionMode |
getSelectionMode()
Returns the selection mode. |
boolean |
isLocked()
Returns true if the selection model is locked. |
boolean |
isSelected(M item)
Returns true if the item is selcted. |
void |
refresh()
Refreshes the current selections. |
void |
removeSelectionListener(SelectionChangedListener listener)
Removes a selection changed listener. |
void |
select(int index)
Selects the item at the given index. |
void |
select(int start,
int end)
Selects the range. |
void |
select(java.util.List<M> items)
Selects the items. |
void |
select(M... items)
Selects the items. |
void |
select(M item)
Selects the item. |
void |
selectAll()
Selets all items. |
void |
setLocked(boolean locked)
True to lock the selection model. |
void |
setSelection(java.util.List<M> selection)
Sets the current selection for this selection provider. |
void |
setSelectionMode(Style.SelectionMode selectionMode)
Sets the selection mode. |
| Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
|---|
addListener, fireEvent, fireEvent, getFiresEvents, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractStoreSelectionModel()
| Method Detail |
|---|
public void addSelectionChangedListener(SelectionChangedListener listener)
SelectionProvider
addSelectionChangedListener in interface SelectionProvider<M extends ModelData>listener - a selection changed listenerpublic void bind(ListStore store)
StoreSelectionModel
bind in interface StoreSelectionModel<M extends ModelData>store - the bound storepublic void deselect(int index)
StoreSelectionModel
deselect in interface StoreSelectionModel<M extends ModelData>index - the index of the item to be deselected
public void deselect(int start,
int end)
StoreSelectionModel
deselect in interface StoreSelectionModel<M extends ModelData>start - the start indexend - the end indexpublic void deselect(java.util.List<M> items)
StoreSelectionModel
deselect in interface StoreSelectionModel<M extends ModelData>items - the itempublic void deselect(M... items)
StoreSelectionModel
deselect in interface StoreSelectionModel<M extends ModelData>items - the items to deselectpublic void deselect(M item)
StoreSelectionModel
deselect in interface StoreSelectionModel<M extends ModelData>item - the item to be deselectedpublic void deselectAll()
StoreSelectionModel
deselectAll in interface StoreSelectionModel<M extends ModelData>public M getSelectedItem()
StoreSelectionModel
getSelectedItem in interface StoreSelectionModel<M extends ModelData>public java.util.List<M> getSelectedItems()
StoreSelectionModel
getSelectedItems in interface StoreSelectionModel<M extends ModelData>public java.util.List<M> getSelection()
SelectionProvider
getSelection in interface SelectionProvider<M extends ModelData>public Style.SelectionMode getSelectionMode()
StoreSelectionModel
getSelectionMode in interface StoreSelectionModel<M extends ModelData>public boolean isLocked()
public boolean isSelected(M item)
StoreSelectionModel
isSelected in interface StoreSelectionModel<M extends ModelData>item - the item
public void refresh()
StoreSelectionModel
refresh in interface StoreSelectionModel<M extends ModelData>public void removeSelectionListener(SelectionChangedListener listener)
SelectionProvider
removeSelectionListener in interface SelectionProvider<M extends ModelData>listener - a selection changed listenerpublic void select(int index)
StoreSelectionModel
select in interface StoreSelectionModel<M extends ModelData>index - the index of the item to be selected
public void select(int start,
int end)
StoreSelectionModel
select in interface StoreSelectionModel<M extends ModelData>start - the start indexend - the end indexpublic void select(java.util.List<M> items)
StoreSelectionModel
select in interface StoreSelectionModel<M extends ModelData>items - the items to selectpublic void select(M... items)
StoreSelectionModel
select in interface StoreSelectionModel<M extends ModelData>items - the itemspublic void select(M item)
StoreSelectionModel
select in interface StoreSelectionModel<M extends ModelData>item - the itempublic void selectAll()
StoreSelectionModel
selectAll in interface StoreSelectionModel<M extends ModelData>public void setLocked(boolean locked)
locked - true to lockpublic void setSelection(java.util.List<M> selection)
SelectionProvider
setSelection in interface SelectionProvider<M extends ModelData>selection - the new selectionpublic void setSelectionMode(Style.SelectionMode selectionMode)
StoreSelectionModel
setSelectionMode in interface StoreSelectionModel<M extends ModelData>selectionMode - the selection mode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||