public class CopyCommand extends DndCommandBase
Modifier and Type | Field and Description |
---|---|
protected List<SVGElementModel> |
clones
The cloned models, unsorted
|
protected String |
description
The command description
|
protected DndCommandFactory.DropGesture |
dropGesture
The drop gesture
|
protected List<SVGElementModel> |
models
The models to copy, unsorted
|
protected SVGElementModel |
target
The target model
|
factory
DESCRIPTION, NAME
Constructor and Description |
---|
CopyCommand(List<SVGElementModel> models,
SVGElementModel target,
DndCommandFactory.DropGesture dropGesture,
String description) |
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
|
getFactory
protected List<SVGElementModel> models
protected List<SVGElementModel> clones
protected SVGElementModel target
protected DndCommandFactory.DropGesture dropGesture
protected String description
public CopyCommand(List<SVGElementModel> models, SVGElementModel target, DndCommandFactory.DropGesture dropGesture, String description)
public String getDescription()
ICommand
public void commit()
ICommand
public void rollback()
ICommand
public com.extjs.gxt.ui.client.data.BeanModel asModel()
ICommand
Copyright © 2018. All Rights Reserved.