Example usage for com.google.gwt.dom.client Element DRAGGABLE_FALSE

List of usage examples for com.google.gwt.dom.client Element DRAGGABLE_FALSE

Introduction

In this page you can find the example usage for com.google.gwt.dom.client Element DRAGGABLE_FALSE.

Prototype

String DRAGGABLE_FALSE

To view the source code for com.google.gwt.dom.client Element DRAGGABLE_FALSE.

Click Source Link

Document

Constant returned from #getDraggable() .

Usage

From source file:co.fxl.gui.gwt.GWTElement.java

License:Open Source License

@SuppressWarnings("unchecked")
public R draggable(boolean draggable) {
    container.widget.getElement().setDraggable(draggable ? Element.DRAGGABLE_TRUE : Element.DRAGGABLE_FALSE);
    return (R) this;
}

From source file:com.ephesoft.gxt.core.client.ThumbnailStack.java

License:Open Source License

private void addThumbnailStyle(Image thumbnailImage, String styleName) {
    if (null != thumbnailImage && !StringUtil.isNullOrEmpty(styleName)) {
        thumbnailImage.addStyleName(styleName);
        thumbnailImage.addMouseDownHandler(new MouseDownHandler() {

            @Override//from w w  w  .  ja v a  2s  .c  o  m
            public void onMouseDown(MouseDownEvent event) {
                event.preventDefault();
            }
        });
        this.add(thumbnailImage);
        thumbnailImage.addStyleName("stackImage");
        this.getElement().setDraggable(Element.DRAGGABLE_FALSE);
    }
}