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
Modifier 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 CategoryAttribute
protected com.vaadin.ui.Grid<CategoryAttribute>
protected boolean
protected static String
protected Messages
protected Metadata
protected MetadataTools
protected DynAttrUiProperties
protected int[]
protected List<CategoryAttribute>
protected DataGrid<CategoryAttribute>
protected HBoxLayout
protected UiComponents
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addColumn
(int index, int elementsCount) protected int
addToDestinationGrid
(com.vaadin.ui.components.grid.GridDropEvent<CategoryAttribute> event, boolean isSourceGrid, com.vaadin.ui.dnd.DragSourceExtension source) protected DataGrid<CategoryAttribute>
createDataGrid
(int i) protected CategoryAttribute
protected int
void
protected void
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 void
protected void
refresh()
protected void
protected void
protected void
refreshDataGridDragAndDrop
(DataGrid<CategoryAttribute> dataGrid, List<CategoryAttribute> dataContainer, boolean isSourceDataGrid) protected void
protected void
protected void
protected void
refreshTargetDataGrids
(int columnsCount) protected void
removeColumn
(int index) protected void
removeFromSourceGrid
(com.vaadin.ui.Grid<?> currentSourceGrid, boolean isAttributesSourceGrid, com.vaadin.ui.AbstractComponent dropComponent, int dropIndex) void
setCategoryAttributes
(List<CategoryAttribute> categoryAttributes) void
setEnabled
(boolean isEnabled) protected void
Methods 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()
-