本文整理汇总了Java中com.google.gwt.event.dom.client.DropHandler类的典型用法代码示例。如果您正苦于以下问题:Java DropHandler类的具体用法?Java DropHandler怎么用?Java DropHandler使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DropHandler类属于com.google.gwt.event.dom.client包,在下文中一共展示了DropHandler类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addDomHandlerOnObjectDrop
import com.google.gwt.event.dom.client.DropHandler; //导入依赖的package包/类
public void addDomHandlerOnObjectDrop(final GapDropHandler dragGapDropHandler) {
droppable.addDropHandler(new DropHandler() {
@Override
public void onDrop(DropEvent event) {
Optional<DragDataObject> objectFromEvent = dataObjectFromEventExtractor.extractDroppedObjectFromEvent(event);
if (objectFromEvent.isPresent()) {
dragGapDropHandler.onDrop(objectFromEvent.get());
}
}
});
}
示例2: addDropHandler
import com.google.gwt.event.dom.client.DropHandler; //导入依赖的package包/类
public HandlerRegistration addDropHandler(DropHandler handler) {
return addBitlessDomHandler(handler, DropEvent.getType());
}
示例3: addDropHandler
import com.google.gwt.event.dom.client.DropHandler; //导入依赖的package包/类
@Override
public HandlerRegistration addDropHandler(DropHandler p_handler)
{
return m_intBox.addDropHandler( p_handler );
}
示例4: addDropHandler
import com.google.gwt.event.dom.client.DropHandler; //导入依赖的package包/类
/**
*
*/
@Override
public HandlerRegistration addDropHandler(DropHandler handler) {
return addBitlessDomHandler(handler, DropEvent.getType());
}
示例5: addDropHandler
import com.google.gwt.event.dom.client.DropHandler; //导入依赖的package包/类
@Override
public com.google.gwt.event.shared.HandlerRegistration addDropHandler(DropHandler handler) {
return this.addBitlessDomHandler(handler, DropEvent.getType());
}
示例6: addDropHandler
import com.google.gwt.event.dom.client.DropHandler; //导入依赖的package包/类
@Override
public HandlerRegistration addDropHandler(DropHandler handler) {
return this.addBitlessDomHandler(handler, DropEvent.getType());
}
示例7: addDropHandler
import com.google.gwt.event.dom.client.DropHandler; //导入依赖的package包/类
public HandlerRegistration addDropHandler(DropHandler handler);