Class AttributeLocationFragment
java.lang.Object
io.jmix.ui.screen.ScreenFragment
io.jmix.dynattrui.screen.location.AttributeLocationFragment
- All Implemented Interfaces:
FrameOwner
@UiController("dynat_AttributeLocationFragment")
@UiDescriptor("attribute-location-fragment.xml")
public class AttributeLocationFragment
extends ScreenFragment
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.screen.ScreenFragment
ScreenFragment.AfterInitEvent, ScreenFragment.AttachEvent, ScreenFragment.DetachEvent, ScreenFragment.InitEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<CategoryAttribute>protected com.vaadin.data.provider.DataProvider<CategoryAttribute,com.vaadin.server.SerializablePredicate<CategoryAttribute>> protected com.vaadin.ui.Grid<CategoryAttribute>protected List<DataGrid<CategoryAttribute>>protected List<List<CategoryAttribute>>protected CategoryAttributeprotected com.vaadin.ui.Grid<CategoryAttribute>protected booleanprotected static Stringprotected Messagesprotected Metadataprotected MetadataToolsprotected DynAttrUiPropertiesprotected int[]protected List<CategoryAttribute>protected DataGrid<CategoryAttribute>protected HBoxLayoutprotected UiComponentsFields inherited from interface io.jmix.ui.screen.FrameOwner
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddColumn(int index, int elementsCount) protected intaddToDestinationGrid(com.vaadin.ui.components.grid.GridDropEvent<CategoryAttribute> event, boolean isSourceGrid, com.vaadin.ui.dnd.DragSourceExtension source) protected DataGrid<CategoryAttribute>createDataGrid(int i) protected CategoryAttributeprotected intvoidprotected voidprotected voidonGridDragStart(com.vaadin.ui.components.grid.GridDragStartEvent<CategoryAttribute> event) protected voidonGridDrop(com.vaadin.ui.components.grid.GridDropEvent<CategoryAttribute> event, boolean isAttributesSourceGrid) protected voidprotected voidrefresh()protected voidprotected voidprotected voidrefreshDataGridDragAndDrop(DataGrid<CategoryAttribute> dataGrid, List<CategoryAttribute> dataContainer, boolean isSourceDataGrid) protected voidprotected voidprotected voidprotected voidrefreshTargetDataGrids(int columnsCount) protected voidremoveColumn(int index) protected voidremoveFromSourceGrid(com.vaadin.ui.Grid<?> currentSourceGrid, boolean isAttributesSourceGrid, com.vaadin.ui.AbstractComponent dropComponent, int dropIndex) voidsetCategoryAttributes(List<CategoryAttribute> categoryAttributes) voidsetEnabled(boolean isEnabled) protected voidMethods inherited from class io.jmix.ui.screen.ScreenFragment
addAfterInitListener, addAttachEventListener, addDetachEventListener, addInitListener, fireEvent, getApplicationContext, getEventHub, getExtensions, getFragment, getHostController, getHostScreen, getId, getScreenData, getUiEventListeners, init, setApplicationContext, setExtensions, setFragment, setHostController, setId, setScreenData, setUiEventListeners
-
Field Details
-
EMPTY_CATEGORY_ATTRIBUTE_NAME
-
properties
-
uiComponents
-
metadata
-
metadataTools
-
messages
-
columnsCountLookupField
-
targetDataGridBox
-
sourceDataGrid
-
sourceDataContainer
-
dataContainers
-
childComponents
-
draggedItem
-
droppedSuccessful
protected boolean droppedSuccessful -
dragSourceGrid
-
attributesSourceDataContainer
-
attributesSourceDataProvider
protected com.vaadin.data.provider.DataProvider<CategoryAttribute,com.vaadin.server.SerializablePredicate<CategoryAttribute>> attributesSourceDataProvider -
attributesSourceGrid
-
rowsCounts
protected int[] rowsCounts
-
-
Constructor Details
-
AttributeLocationFragment
public AttributeLocationFragment()
-
-
Method Details
-
setEnabled
public void setEnabled(boolean isEnabled) -
onAttach
-
setupFieldsLock
protected void setupFieldsLock() -
setCategoryAttributes
-
onColumnsCountLookupFieldValueChange
@Subscribe("columnsCountLookupField") protected void onColumnsCountLookupFieldValueChange(HasValue.ValueChangeEvent<Integer> event) -
onSaveConfigurationBtnClick
@Subscribe("saveConfigurationBtn") protected void onSaveConfigurationBtnClick(Button.ClickEvent event) -
refresh
protected void refresh() -
refreshTargetDataGridBox
protected void refreshTargetDataGridBox() -
refreshContainers
protected void refreshContainers() -
createEmptyCategoryAttribute
-
refreshRowsCounts
protected void refreshRowsCounts() -
getMaxColumnIndex
protected int getMaxColumnIndex() -
refreshColumnsCountLookupField
protected void refreshColumnsCountLookupField() -
getColumnsCountLookupFieldOptionsList
-
addColumn
protected void addColumn(int index, int elementsCount) -
createDataGrid
-
removeColumn
protected void removeColumn(int index) -
refreshTargetDataGrids
protected void refreshTargetDataGrids(int columnsCount) -
refreshDataGridDragAndDrop
protected void refreshDataGridDragAndDrop(DataGrid<CategoryAttribute> dataGrid, List<CategoryAttribute> dataContainer, boolean isSourceDataGrid) -
onGridDragStart
protected void onGridDragStart(com.vaadin.ui.components.grid.GridDragStartEvent<CategoryAttribute> event) -
onGridDrop
protected void onGridDrop(com.vaadin.ui.components.grid.GridDropEvent<CategoryAttribute> event, boolean isAttributesSourceGrid) -
addToDestinationGrid
protected int addToDestinationGrid(com.vaadin.ui.components.grid.GridDropEvent<CategoryAttribute> event, boolean isSourceGrid, com.vaadin.ui.dnd.DragSourceExtension source) -
removeFromSourceGrid
protected void removeFromSourceGrid(com.vaadin.ui.Grid<?> currentSourceGrid, boolean isAttributesSourceGrid, com.vaadin.ui.AbstractComponent dropComponent, int dropIndex) -
refreshSourceDataProvider
protected void refreshSourceDataProvider()
-