Package org.nuclos.api.ui.dnd
Interface DropHandler<PK>
public interface DropHandler<PK>
DropHandler
handle custom drop actions
- Author:
- Moritz Neuhäuser <moritz.neuhaeuser@nuclos.de>
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhandle(DropContext<PK> ctx) handle handle drop eventbooleaninstall(InstallContext ctx) install evaluate if the handler may accept dropsbooleanisAllowed(DropContext<PK> ctx) isAllowed check if drop is allowedsupportedFlavorsFlavorsupported by the handler
-
Method Details
-
install
install evaluate if the handler may accept drops- Parameters:
ctx- context informationInstallContext- Returns:
- evaluation result
-
handle
handle handle drop event- Parameters:
ctx- context informationDropContext- Returns:
- drop success
-
isAllowed
isAllowed check if drop is allowed- Parameters:
ctx- context informationDropContext- Returns:
-
supportedFlavors
supportedFlavorsFlavorsupported by the handler- Returns:
-