public class ReorderCommand extends DndCommandBase
Modifier and Type | Field and Description |
---|---|
protected DndCommandFactory.DropGesture |
dropGesture
The drop gesture
|
protected List<SVGElementModel> |
models
The models to move, unsorted
|
protected SVGModel |
owner
The owner of the models to move
|
protected List<SVGElementModel> |
parentModels
The parent models of the models to move, sorted
|
protected List<SVGElementModel> |
refModels
The next non-null siblings of the models to move, sorted, or null if no such siblings exist
|
protected List<SVGElementModel> |
sortedModels
The models to move, sorted
|
protected SVGElementModel |
target
The target model
|
protected List<String> |
xforms
The transform attributes of the models to move, sorted
|
factory
DESCRIPTION, NAME
Constructor and Description |
---|
ReorderCommand(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
|
getFactory
protected List<SVGElementModel> models
protected List<SVGElementModel> sortedModels
protected List<SVGElementModel> parentModels
protected List<SVGElementModel> refModels
protected SVGElementModel target
protected DndCommandFactory.DropGesture dropGesture
protected SVGModel owner
public ReorderCommand(List<SVGElementModel> models, SVGElementModel target, DndCommandFactory.DropGesture dropGesture)
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.