public class AttributesLocationCompanion extends java.lang.Object implements AttributesLocationFrame.Companion
Modifier and Type | Field and Description |
---|---|
protected java.util.List<CategoryAttribute> |
attributesSourceDataContainer |
protected com.vaadin.data.provider.DataProvider<CategoryAttribute,com.vaadin.server.SerializablePredicate<CategoryAttribute>> |
attributesSourceDataProvider |
protected com.vaadin.ui.Grid<CategoryAttribute> |
attributesSourceGrid |
protected CategoryAttribute |
draggedItem |
protected com.vaadin.ui.Grid<CategoryAttribute> |
dragSourceGrid |
protected boolean |
droppedSuccessful |
Constructor and Description |
---|
AttributesLocationCompanion() |
Modifier and Type | Method and Description |
---|---|
protected int |
addToDestinationGrid(com.vaadin.ui.components.grid.GridDropEvent<CategoryAttribute> event,
boolean isSourceGrid,
com.vaadin.ui.dnd.DragSourceExtension source) |
protected CategoryAttribute |
createEmptyAttribute() |
void |
initGridDragAndDrop(DataGrid<CategoryAttribute> dataGrid,
java.util.List<CategoryAttribute> dataContainer,
boolean isAttributesSourceDataGrid) |
protected void |
onGridDragStart(com.vaadin.ui.components.grid.GridDragStartEvent<CategoryAttribute> event) |
protected void |
onGridDrop(com.vaadin.ui.components.grid.GridDropEvent<CategoryAttribute> event,
boolean isAttributesSourceGrid) |
void |
refreshSourceDataProvider() |
protected void |
removeFromSourceGrid(com.vaadin.ui.Grid currentSourceGrid,
boolean isAttributesSourceGrid,
com.vaadin.ui.AbstractComponent dropComponent,
int dropIndex) |
protected CategoryAttribute draggedItem
protected boolean droppedSuccessful
protected com.vaadin.ui.Grid<CategoryAttribute> dragSourceGrid
protected java.util.List<CategoryAttribute> attributesSourceDataContainer
protected com.vaadin.data.provider.DataProvider<CategoryAttribute,com.vaadin.server.SerializablePredicate<CategoryAttribute>> attributesSourceDataProvider
protected com.vaadin.ui.Grid<CategoryAttribute> attributesSourceGrid
public void initGridDragAndDrop(DataGrid<CategoryAttribute> dataGrid, java.util.List<CategoryAttribute> dataContainer, boolean isAttributesSourceDataGrid)
initGridDragAndDrop
in interface AttributesLocationFrame.Companion
public void refreshSourceDataProvider()
refreshSourceDataProvider
in interface AttributesLocationFrame.Companion
protected void onGridDragStart(com.vaadin.ui.components.grid.GridDragStartEvent<CategoryAttribute> event)
protected void onGridDrop(com.vaadin.ui.components.grid.GridDropEvent<CategoryAttribute> event, boolean isAttributesSourceGrid)
protected int addToDestinationGrid(com.vaadin.ui.components.grid.GridDropEvent<CategoryAttribute> event, boolean isSourceGrid, com.vaadin.ui.dnd.DragSourceExtension source)
protected void removeFromSourceGrid(com.vaadin.ui.Grid currentSourceGrid, boolean isAttributesSourceGrid, com.vaadin.ui.AbstractComponent dropComponent, int dropIndex)
protected CategoryAttribute createEmptyAttribute()