public class CloneCommand extends DndCommandBase
| Modifier and Type | Field and Description |
|---|---|
protected List<SVGElementModel> |
clones
The cloned models, unsorted
|
protected DndCommandFactory.DropGesture |
dropGesture
The drop gesture
|
protected List<SVGElementModel> |
models
The models to copy, unsorted
|
protected SVGElementModel |
target
The target model
|
factoryDESCRIPTION, NAME| Constructor and Description |
|---|
CloneCommand(List<SVGElementModel> models,
SVGElementModel target,
DndCommandFactory.DropGesture dropGesture) |
| Modifier and Type | Method and Description |
|---|---|
com.extjs.gxt.ui.client.data.BeanModel |
asModel()
Returns a BeanModel wrapping this command
|
void |
commit()
Applies the modification represented by this command to the model
|
String |
getDescription()
Provides a detailed description of this command.
|
void |
rollback()
Restores the model to its previous state
|
getFactoryprotected List<SVGElementModel> models
protected List<SVGElementModel> clones
protected SVGElementModel target
protected DndCommandFactory.DropGesture dropGesture
public CloneCommand(List<SVGElementModel> models, SVGElementModel target, DndCommandFactory.DropGesture dropGesture)
public String getDescription()
ICommandpublic void commit()
ICommandpublic void rollback()
ICommandpublic com.extjs.gxt.ui.client.data.BeanModel asModel()
ICommandCopyright © 2018. All Rights Reserved.