public class CommandStore
extends com.extjs.gxt.ui.client.store.ListStore<com.extjs.gxt.ui.client.data.BeanModel>
Add, all, BeforeAdd, BeforeClear, BeforeDataChanged, BeforeRemove, BeforeSort, Clear, DataChanged, Filter, filterBeginsWith, filtered, filterProperty, filters, filtersEnabled, modified, recordMap, Remove, snapshot, Sort, sortInfo, storeSorter, Update| Constructor and Description |
|---|
CommandStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommand(ICommand command)
Adds a new command to the stack
|
void |
applyFilters(String property) |
boolean |
canRedo()
Returns true if the command stack contains a command which can be
redone false otherwise.
|
boolean |
canUndo()
Returns true if the command stack contains a command which can be
undone false otherwise.
|
void |
clearFilters() |
List<com.extjs.gxt.ui.client.data.BeanModel> |
getCommands()
Gets all the commands currently in the stack
|
com.extjs.gxt.ui.client.data.BeanModel |
getRedoCommand()
Returns the command which will be redone if undo is invoked
|
List<com.extjs.gxt.ui.client.data.BeanModel> |
getRedoCommands()
Gets all the commands which can be redone
|
com.extjs.gxt.ui.client.data.BeanModel |
getUndoCommand()
Returns the command which will be undone if undo is invoked
|
List<com.extjs.gxt.ui.client.data.BeanModel> |
getUndoCommands()
Gets all the commands which can be undone
|
void |
redo()
Redoes the previously undone command
|
void |
redo(com.extjs.gxt.ui.client.data.BeanModel command)
Redoes the previously undone command up to the specified command
|
void |
undo()
Undoes the current command
|
void |
undo(com.extjs.gxt.ui.client.data.BeanModel command)
Undoes all the commands up to the specified command
|
add, add, applySort, fireStoreEvent, getAt, getCount, getLoadConfig, getLoader, getRange, getSortDir, getSortField, getSortState, indexOf, insert, insert, insert, onBeforeLoad, onLoad, onLoadException, remove, remove, setDefaultSort, setSortDir, setSortField, sort, sortDataaddFilter, addStoreListener, afterCommit, afterEdit, afterReject, commitChanges, contains, createStoreEvent, equals, filter, filter, findModel, findModel, findModel, findModels, getFilters, getKeyProvider, getModelComparer, getModels, getModifiedRecords, getRecord, getStoreSorter, hasRecord, isFiltered, isFiltered, isMonitorChanges, onModelChange, registerModel, rejectChanges, removeAll, removeFilter, removeStoreListener, setKeyProvider, setModelComparer, setMonitorChanges, setStoreSorter, swapModelInstance, unregisterModel, updatepublic boolean canUndo()
public boolean canRedo()
public void undo()
public void undo(com.extjs.gxt.ui.client.data.BeanModel command)
public void redo()
public void redo(com.extjs.gxt.ui.client.data.BeanModel command)
public com.extjs.gxt.ui.client.data.BeanModel getUndoCommand()
public com.extjs.gxt.ui.client.data.BeanModel getRedoCommand()
public List<com.extjs.gxt.ui.client.data.BeanModel> getCommands()
public List<com.extjs.gxt.ui.client.data.BeanModel> getUndoCommands()
public List<com.extjs.gxt.ui.client.data.BeanModel> getRedoCommands()
public void addCommand(ICommand command)
command - the command to addpublic void applyFilters(String property)
applyFilters in class com.extjs.gxt.ui.client.store.Store<com.extjs.gxt.ui.client.data.BeanModel>public void clearFilters()
clearFilters in class com.extjs.gxt.ui.client.store.Store<com.extjs.gxt.ui.client.data.BeanModel>Copyright © 2018. All Rights Reserved.