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, updateStatus
public static final IFactoryInstantiator<DndCommandFactory> INSTANTIATOR
public IFactoryInstantiator<?> getInstantiator()
getInstantiator
in interface ICommandFactory
public void start(Object requester)
ICommandFactory
start
in interface ICommandFactory
start
in class CommandFactoryBase
requester
- 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)
KeyPressProcessor
processKeyPress
in interface KeyPressProcessor
public boolean processKeyUp(com.extjs.gxt.ui.client.event.ComponentEvent event)
KeyUpProcessor
processKeyUp
in interface KeyUpProcessor
Copyright © 2018. All Rights Reserved.