Example usage for com.vaadin.ui.themes ValoTheme DRAG_AND_DROP_WRAPPER_NO_HORIZONTAL_DRAG_HINTS

List of usage examples for com.vaadin.ui.themes ValoTheme DRAG_AND_DROP_WRAPPER_NO_HORIZONTAL_DRAG_HINTS

Introduction

In this page you can find the example usage for com.vaadin.ui.themes ValoTheme DRAG_AND_DROP_WRAPPER_NO_HORIZONTAL_DRAG_HINTS.

Prototype

String DRAG_AND_DROP_WRAPPER_NO_HORIZONTAL_DRAG_HINTS

To view the source code for com.vaadin.ui.themes ValoTheme DRAG_AND_DROP_WRAPPER_NO_HORIZONTAL_DRAG_HINTS.

Click Source Link

Document

Hide the "horizontal drag hints" (i.e.

Usage

From source file:org.eclipse.hawkbit.ui.common.filterlayout.AbstractFilterButtons.java

License:Open Source License

private DragAndDropWrapper createDragAndDropWrapper(final Button tagButton, final String name, final Long id) {
    final DragAndDropWrapper bsmBtnWrapper = new DragAndDropWrapper(tagButton);
    bsmBtnWrapper.addStyleName(ValoTheme.DRAG_AND_DROP_WRAPPER_NO_VERTICAL_DRAG_HINTS);
    bsmBtnWrapper.addStyleName(ValoTheme.DRAG_AND_DROP_WRAPPER_NO_HORIZONTAL_DRAG_HINTS);
    bsmBtnWrapper.addStyleName(SPUIStyleDefinitions.FILTER_BUTTON_WRAPPER);
    if (getButtonWrapperData() != null) {
        if (id == null) {
            bsmBtnWrapper.setData(getButtonWrapperData());
        } else {/*from  ww w. ja  v a 2s  .c  om*/
            bsmBtnWrapper.setData(getButtonWrapperData().concat("" + id));
        }
    }
    bsmBtnWrapper.setId(getButttonWrapperIdPrefix().concat(name));
    bsmBtnWrapper.setDragStartMode(DragStartMode.WRAPPER);
    bsmBtnWrapper.setDropHandler(getFilterButtonDropHandler());
    return bsmBtnWrapper;
}