public abstract class AbstractModelItemDropHandler<T1 extends ModelItem,T2 extends ModelItem> extends Object implements ModelItemDropHandler<ModelItem>
Modifier | Constructor and Description |
---|---|
protected |
AbstractModelItemDropHandler(Class<T1> sourceClass,
Class<T2> targetClass) |
Modifier and Type | Method and Description |
---|---|
boolean |
canDrop(ModelItem source,
ModelItem target,
int dropAction,
int dropType) |
boolean |
drop(ModelItem source,
ModelItem target,
int dropAction,
int dropType) |
String |
getDropInfo(ModelItem source,
ModelItem target,
int dropAction,
int dropType) |
public boolean canDrop(ModelItem source, ModelItem target, int dropAction, int dropType)
canDrop
in interface ModelItemDropHandler<ModelItem>
public String getDropInfo(ModelItem source, ModelItem target, int dropAction, int dropType)
getDropInfo
in interface ModelItemDropHandler<ModelItem>
public boolean drop(ModelItem source, ModelItem target, int dropAction, int dropType)
drop
in interface ModelItemDropHandler<ModelItem>
Copyright © 2019. All Rights Reserved.