List of usage examples for com.vaadin.ui DragAndDropWrapper getData
public Object getData()
From source file:org.eclipse.hawkbit.ui.management.dstable.DistributionTable.java
License:Open Source License
@Override protected boolean validateDragAndDropWrapper(final DragAndDropWrapper wrapperSource) { final String tagData = wrapperSource.getData().toString(); if (wrapperSource.getId().startsWith(SPUIDefinitions.DISTRIBUTION_TAG_ID_PREFIXS)) { return !isNoTagButton(tagData, getI18n().getMessage(UIMessageIdProvider.CAPTION_DISTRIBUTION_TAG)); } else if (wrapperSource.getId().startsWith(SPUIDefinitions.TARGET_TAG_ID_PREFIXS)) { return !isNoTagButton(tagData, getI18n().getMessage(UIMessageIdProvider.CAPTION_TARGET_TAG)); }// w w w. ja v a 2 s. c o m getNotification().displayValidationError(notAllowedMsg); return false; }
From source file:org.eclipse.hawkbit.ui.management.footer.DeleteActionsLayoutHelper.java
License:Open Source License
static Long getDistributionTagId(final DragAndDropWrapper source) { final String wrapperData = source.getData().toString(); final String id = wrapperData.replace(SPUIDefinitions.DISTRIBUTION_TAG_BUTTON, ""); return Long.valueOf(id.trim()); }
From source file:org.eclipse.hawkbit.ui.management.footer.DeleteActionsLayoutHelper.java
License:Open Source License
static Long getTargetTagId(final DragAndDropWrapper source) { final String wrapperData = source.getData().toString(); final String id = wrapperData.replace(SPUIDefinitions.TARGET_TAG_BUTTON, ""); return Long.valueOf(id.trim()); }