Interface used for implementations that recognize, approve, and disapprove stripe reparenting gestures, as well as actually perform the reparenting.
Inheritance Hierarchy
See Also
Members
No filters for this type
Methods
This method is called to determine whether a reparent operation should actually be executed.
abstract
Parameters
- context: IInputModeContext
- The context that provides information about the user input.
- stripe: IStripe
- The stripe that will be reparented.
- newParent: IStripe
- The potential new parent.
- index: number
- The index where the stripe would be reparented
- reparentPosition: StripeReparentPolicy
- Where to place the stripe as a result of the gesture that would be used for the reparent operation.
Return Value
- boolean
- Whether
newParentis a valid new parent forstripefor the given index and gesture.
Implemented in
ReparentStripeHandler.isValidParentabstract
Parameters
- context: IInputModeContext
- The context that provides information about the user input.
- movedStripe: IStripe
- The stripe that will be reparented.
- newParent: IStripe
- The potential new parent.
- index: number
- The index where the stripe should be inserted.
- reparentPosition: StripeReparentPolicy
- Where to place the stripe as a result of the gesture that triggered the reparent operation.
Implemented in
ReparentStripeHandler.reparentDetermines whether the user may detach the given stripe from its current parent in order to reparent it.
Determines whether the user may detach the given stripe from its current parent in order to reparent it.
abstract
Parameters
- context: IInputModeContext
- The context that provides information about the user input.
- stripe: IStripe
- The stripe that is about to be detached from its current parent.
Return Value
- boolean
- Whether the stripe may be detached and reparented.
Implemented in
ReparentStripeHandler.shouldReparentStatic Methods
Creates an implementation of the interface IReparentStripeHandler from the given definition.
Creates an implementation of the interface IReparentStripeHandler from the given definition.
The given object must contain exactly the abstract members of the IReparentStripeHandler interface. No member may be omitted and no additional members can be added. While additional custom members can later be added directly on the instance, this is discouraged.
static
Parameters
Return Value
- IReparentStripeHandler
- An instance of the IReparentStripeHandler interface based on the given definition.