public class DndCommandFactory extends CommandFactoryBase implements KeyPressProcessor, KeyUpProcessor
| Modifier and Type | Class and Description |
|---|---|
static class |
DndCommandFactory.DropGesture
Enum to represent the drop gestures
|
| Modifier and Type | Field and Description |
|---|---|
static IFactoryInstantiator<DndCommandFactory> |
INSTANTIATOR |
status| Constructor and Description |
|---|
DndCommandFactory() |
| Modifier and Type | Method and Description |
|---|---|
IFactoryInstantiator<?> |
getInstantiator() |
boolean |
isValidDropTarget(SVGElementModel element) |
boolean |
isValidSource(com.extjs.gxt.ui.client.event.DNDEvent event,
List<SVGElementModel> sourceElements)
Returns true if the drag start event comes from a valid drag source
|
void |
processDragAndDrop(DndCommandFactory.DropGesture dropGesture) |
boolean |
processKeyPress(com.extjs.gxt.ui.client.event.ComponentEvent event)
Processes a key press event
|
boolean |
processKeyUp(com.extjs.gxt.ui.client.event.ComponentEvent event)
Processes a key up event
|
void |
start(Object requester)
Invoked when the user selects this command factory (through
the command toolbar, the context menu, or implicitely by editing
a field in the inspector).
|
getStatus, stop, updateStatuspublic static final IFactoryInstantiator<DndCommandFactory> INSTANTIATOR
public IFactoryInstantiator<?> getInstantiator()
getInstantiator in interface ICommandFactorypublic void start(Object requester)
ICommandFactorystart in interface ICommandFactorystart in class CommandFactoryBaserequester - The object requesting this command to startpublic boolean isValidSource(com.extjs.gxt.ui.client.event.DNDEvent event,
List<SVGElementModel> sourceElements)
event - a drag start eventpublic boolean isValidDropTarget(SVGElementModel element)
public void processDragAndDrop(DndCommandFactory.DropGesture dropGesture)
public boolean processKeyPress(com.extjs.gxt.ui.client.event.ComponentEvent event)
KeyPressProcessorprocessKeyPress in interface KeyPressProcessorpublic boolean processKeyUp(com.extjs.gxt.ui.client.event.ComponentEvent event)
KeyUpProcessorprocessKeyUp in interface KeyUpProcessorCopyright © 2018. All Rights Reserved.