Class ListViewComponent
- java.lang.Object
-
- com.vaadin.server.AbstractClientConnector
-
- com.vaadin.ui.AbstractComponent
-
- com.vaadin.ui.AbstractComponentContainer
-
- com.vaadin.ui.AbstractLayout
-
- com.vaadin.ui.AbstractOrderedLayout
-
- com.vaadin.ui.VerticalLayout
-
- io.mateu.mdd.vaadin.components.views.AbstractViewComponent<ListViewComponent>
-
- io.mateu.mdd.vaadin.components.views.ListViewComponent
-
- All Implemented Interfaces:
com.vaadin.event.ContextClickEvent.ContextClickNotifier,com.vaadin.event.LayoutEvents.LayoutClickNotifier,com.vaadin.event.MethodEventSource,com.vaadin.server.ClientConnector,com.vaadin.server.Sizeable,com.vaadin.shared.Connector,com.vaadin.ui.Component,com.vaadin.ui.ComponentContainer,com.vaadin.ui.HasComponents,com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier,com.vaadin.ui.Layout,com.vaadin.ui.Layout.AlignmentHandler,com.vaadin.ui.Layout.MarginHandler,com.vaadin.ui.Layout.SpacingHandler,Serializable,Iterable<com.vaadin.ui.Component>
- Direct Known Subclasses:
CollectionListViewComponent,JPAListViewComponent,RpcListViewComponent
public abstract class ListViewComponent extends AbstractViewComponent<ListViewComponent>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
-
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
-
Nested classes/interfaces inherited from interface com.vaadin.ui.HasComponents
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
-
-
Field Summary
Fields Modifier and Type Field Description protected FieldInterfacedfieldFiltersComponentfiltersComponentResultsComponentresultsComponent-
Fields inherited from class io.mateu.mdd.vaadin.components.views.AbstractViewComponent
actionsByMethod, bar, menuItemIdsUnseen, menuItemsByGroup, menuItemsById, subheader
-
-
Constructor Summary
Constructors Constructor Description ListViewComponent()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ListViewComponentaddListener(ListViewComponentListener listener)voidaddViewActionsMenuItems(com.vaadin.ui.CssLayout bar)ListViewComponentbuild()ListViewComponentbuild(com.vaadin.ui.VerticalLayout fieldGroup, com.vaadin.ui.HorizontalLayout fieldGroupHeader)voidbuildColumns(com.vaadin.ui.Grid grid)static voidbuildColumns(com.vaadin.ui.Grid grid, List<FieldInterfaced> colFields, boolean isJPAListViewComponent, boolean editable)static voidbuildColumns(com.vaadin.ui.Grid grid, List<FieldInterfaced> colFields, boolean isJPAListViewComponent, boolean editable, MDDBinder binder)static voidbuildColumns(com.vaadin.ui.Grid grid, List<FieldInterfaced> colFields, boolean isJPAListViewComponent, boolean editable, MDDBinder binder, FieldInterfaced collectionField)static voidbuildColumns(com.vaadin.ui.Grid grid, List<FieldInterfaced> colFields, boolean isJPAListViewComponent, boolean editable, MDDBinder binder, FieldInterfaced collectionField, String fieldsFilter)static voidbuildColumns(com.vaadin.ui.Grid grid, List<String> columnIds, Map<String,FieldInterfaced> fieldByColumnId, boolean isJPAListViewComponent, boolean editable, MDDBinder binder, FieldInterfaced collectionField, String fieldsFilter)intcount(Object filters)abstract voiddecorateGrid(com.vaadin.ui.Grid grid)voiddecorateGridMain(com.vaadin.ui.Grid grid)protected voiddelete(Set selection)abstract ObjectdeserializeId(String id)voidedit(Object id)abstract CollectionfindAll(Object filters, List<com.vaadin.data.provider.QuerySortOrder> sortOrders, int offset, int limit)protected abstract intgatherCount(Object filters)com.vaadin.ui.LayoutgetActionsContainer()protected abstract List<ChartData>getCharts(Object filters)List<FieldInterfaced>getColumnFields()static List<FieldInterfaced>getColumnFields(Class objectType)static List<FieldInterfaced>getColumnFields(Class objectType, boolean forGrid)static List<FieldInterfaced>getColumnFields(Class objectType, boolean forGrid, String fieldsFilter, List<String> columNames, Map<String,FieldInterfaced> fieldsByColumnName)abstract ClassgetColumnType()static doublegetColumnWidth(FieldInterfaced f)static doublegetColumnWidth(FieldInterfaced f, String overriden)StringgetEditableFieldsFilter()StringgetFieldPrefix()StringgetFieldsFilter()List<FieldInterfaced>getFilterFields()List<FieldInterfaced>getFilterFields(Class filtersType)abstract ClassgetFiltersType()com.vaadin.ui.ComponentgetFiltersViewComponent()intgetFrozenColumnCount()com.vaadin.ui.GridgetGrid()com.vaadin.icons.VaadinIconsgetIcon()MethodgetMethod(String methodName)abstract ObjectgetModelForSearchFilters()ClassgetModelType()ObjectgetNext(Object current)StringgetPageTitle()StringgetPathForEditor(Object id)StringgetPathForFilters()ObjectgetPrevious(Object current)SetgetSelection()protected abstract List<SumData>getSums(Object filters)StringgetUrl()booleanisAddEnabled()booleanisDeleteEnabled()booleanmustCreateHeader()voidsearch(Object filters)voidsearched()voidselect(Object id)voidsetBaseUrl(String baseUrl)abstract voidsetModelForSearchFilters(Object filters)ObjecttoId(Object row)-
Methods inherited from class io.mateu.mdd.vaadin.components.views.AbstractViewComponent
addActionsBar, addMenuItem, beforeBack, buildIfNeeded, createHeader, equals, esForm, expandOnOpen, getActionByMethod, getActions, getHiddens, getKpisContainer, getMenuItemById, getParentView, getSubtitle, getTitle, getUnseenActions, getView, hashCode, hideHeader, isActionPresent, isBackable, isBarHidden, markAllAsUnseen, removeUnseen, setAction, setBackable, setIcon, setParentView, setStack, setTitle, setView, updatePageTitle, updateViewTitle
-
Methods inherited from class com.vaadin.ui.VerticalLayout
addComponentsAndExpand, getState, getState
-
Methods inherited from class com.vaadin.ui.AbstractOrderedLayout
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getCustomAttributes, getDefaultComponentAlignment, getExpandRatio, getMargin, isSpacing, iterator, readDesign, removeComponent, removeLayoutClickListener, replaceComponent, setComponentAlignment, setDefaultComponentAlignment, setExpandRatio, setMargin, setMargin, setSpacing, writeDesign
-
Methods inherited from class com.vaadin.ui.AbstractComponentContainer
addComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidth
-
Methods inherited from class com.vaadin.ui.AbstractComponent
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthFull, setWidthUndefined
-
Methods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstate
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
-
Methods inherited from interface com.vaadin.ui.Component
addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible
-
Methods inherited from interface com.vaadin.ui.ComponentContainer
addComponents, getComponentIterator, moveComponentsFrom, removeAllComponents
-
Methods inherited from interface com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier
addComponentAttachListener, addComponentDetachListener, removeComponentAttachListener, removeComponentDetachListener
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
resultsComponent
public ResultsComponent resultsComponent
-
filtersComponent
public FiltersComponent filtersComponent
-
field
protected FieldInterfaced field
-
-
Method Detail
-
setBaseUrl
public void setBaseUrl(String baseUrl)
-
getIcon
public com.vaadin.icons.VaadinIcons getIcon()
- Specified by:
getIconin interfacecom.vaadin.ui.Component- Overrides:
getIconin classAbstractViewComponent<ListViewComponent>
-
getFieldsFilter
public String getFieldsFilter()
-
getEditableFieldsFilter
public String getEditableFieldsFilter()
-
mustCreateHeader
public boolean mustCreateHeader()
- Overrides:
mustCreateHeaderin classAbstractViewComponent<ListViewComponent>
-
getActionsContainer
public com.vaadin.ui.Layout getActionsContainer()
- Overrides:
getActionsContainerin classAbstractViewComponent<ListViewComponent>
-
build
public ListViewComponent build() throws Exception
- Overrides:
buildin classAbstractViewComponent<ListViewComponent>- Throws:
Exception
-
build
public ListViewComponent build(com.vaadin.ui.VerticalLayout fieldGroup, com.vaadin.ui.HorizontalLayout fieldGroupHeader) throws Exception
- Throws:
Exception
-
getColumnFields
public List<FieldInterfaced> getColumnFields()
-
buildColumns
public void buildColumns(com.vaadin.ui.Grid grid)
-
buildColumns
public static void buildColumns(com.vaadin.ui.Grid grid, List<FieldInterfaced> colFields, boolean isJPAListViewComponent, boolean editable)
-
buildColumns
public static void buildColumns(com.vaadin.ui.Grid grid, List<FieldInterfaced> colFields, boolean isJPAListViewComponent, boolean editable, MDDBinder binder)
-
buildColumns
public static void buildColumns(com.vaadin.ui.Grid grid, List<FieldInterfaced> colFields, boolean isJPAListViewComponent, boolean editable, MDDBinder binder, FieldInterfaced collectionField)
-
buildColumns
public static void buildColumns(com.vaadin.ui.Grid grid, List<FieldInterfaced> colFields, boolean isJPAListViewComponent, boolean editable, MDDBinder binder, FieldInterfaced collectionField, String fieldsFilter)
-
buildColumns
public static void buildColumns(com.vaadin.ui.Grid grid, List<String> columnIds, Map<String,FieldInterfaced> fieldByColumnId, boolean isJPAListViewComponent, boolean editable, MDDBinder binder, FieldInterfaced collectionField, String fieldsFilter)
-
getColumnWidth
public static double getColumnWidth(FieldInterfaced f)
-
getColumnWidth
public static double getColumnWidth(FieldInterfaced f, String overriden)
-
addListener
public ListViewComponent addListener(ListViewComponentListener listener)
-
edit
public void edit(Object id)
-
select
public void select(Object id)
-
findAll
public abstract Collection findAll(Object filters, List<com.vaadin.data.provider.QuerySortOrder> sortOrders, int offset, int limit)
-
getPageTitle
public String getPageTitle()
- Overrides:
getPageTitlein classAbstractViewComponent<ListViewComponent>
-
getPathForFilters
public String getPathForFilters()
-
getModelForSearchFilters
public abstract Object getModelForSearchFilters() throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException
-
setModelForSearchFilters
public abstract void setModelForSearchFilters(Object filters)
-
getFiltersViewComponent
public com.vaadin.ui.Component getFiltersViewComponent()
-
getModelType
public Class getModelType()
-
getSelection
public Set getSelection()
-
getColumnFields
public static List<FieldInterfaced> getColumnFields(Class objectType)
-
getColumnFields
public static List<FieldInterfaced> getColumnFields(Class objectType, boolean forGrid)
-
getColumnFields
public static List<FieldInterfaced> getColumnFields(Class objectType, boolean forGrid, String fieldsFilter, List<String> columNames, Map<String,FieldInterfaced> fieldsByColumnName)
-
getColumnType
public abstract Class getColumnType()
-
getFilterFields
public List<FieldInterfaced> getFilterFields()
-
getFilterFields
public List<FieldInterfaced> getFilterFields(Class filtersType)
-
getFiltersType
public abstract Class getFiltersType()
-
isAddEnabled
public boolean isAddEnabled()
-
isDeleteEnabled
public boolean isDeleteEnabled()
-
addViewActionsMenuItems
public void addViewActionsMenuItems(com.vaadin.ui.CssLayout bar)
- Overrides:
addViewActionsMenuItemsin classAbstractViewComponent<ListViewComponent>
-
getFieldPrefix
public String getFieldPrefix()
-
delete
protected void delete(Set selection)
-
getGrid
public com.vaadin.ui.Grid getGrid()
-
decorateGridMain
public void decorateGridMain(com.vaadin.ui.Grid grid)
-
decorateGrid
public abstract void decorateGrid(com.vaadin.ui.Grid grid)
-
getFrozenColumnCount
public int getFrozenColumnCount()
-
searched
public void searched()
-
getUrl
public String getUrl()
-
-