本文整理了Java中com.google.gwt.user.client.Element.setDraggable()
方法的一些代码示例,展示了Element.setDraggable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.setDraggable()
方法的具体详情如下:
包路径:com.google.gwt.user.client.Element
类名称:Element
方法名:setDraggable
暂无
代码示例来源:origin: oVirt/ovirt-engine
/**
* Dragging is enabled by default, if you want to alter that behavior, call this method with false.
*
* @param dragEnabled
* Enabled or disable dragging of this panel.
*/
public void enableDrag(boolean dragEnabled) {
this.dragEnabled = dragEnabled;
if (dragEnabled) {
getElement().setDraggable(Element.DRAGGABLE_TRUE);
} else {
getElement().setDraggable(Element.DRAGGABLE_FALSE);
}
}
代码示例来源:origin: org.uberfire/uberfire-panel-manager-template
public WorkbenchPartTemplateView() {
initWidget( content );
content.getElement().setDraggable( Element.DRAGGABLE_FALSE );
}
代码示例来源:origin: org.kie.uberfire/kie-uberfire-perspective-editor-client
private void createMoveIcon( final DragType type ) {
move.addDomHandler( new DragStartHandler() {
@Override
public void onDragStart( DragStartEvent event ) {
String text = extractText();
event.setData( type.name(), text );
event.getDataTransfer().setDragImage( move.getElement(), 10, 10 );
}
}, DragStartEvent.getType() );
move.getElement().setDraggable( Element.DRAGGABLE_TRUE );
}
代码示例来源:origin: oVirt/ovirt-engine
public ColumnContextMenuItem(ColumnController<T> controller, Column<T, ?> column) {
this.controller = controller;
this.column = column;
initWidget(WidgetUiBinder.uiBinder.createAndBindUi(this));
getElement().setDraggable(Element.DRAGGABLE_TRUE);
update();
}
内容来源于网络,如有侵权,请联系作者删除!