public abstract class BaseCrudView<E,K,F>
extends com.vaadin.ui.CssLayout
implements com.vaadin.navigator.View
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BaseCrudView.DataGrid<E> |
com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandlercom.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListenercom.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener| Modifier and Type | Field and Description |
|---|---|
protected CommonDataProvider<E,K,F> |
dataProvider |
protected BaseCrudForm<E,K,F> |
form |
protected BaseCrudView.DataGrid<E> |
grid |
protected BaseCrudLogic<E,K,F> |
viewLogic |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseCrudView(CommonDataProvider<E,K,F> dataProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeLeave(com.vaadin.navigator.ViewBeforeLeaveEvent event) |
void |
clearSelection() |
protected com.vaadin.ui.VerticalLayout |
createBarAndGridLayout(com.vaadin.ui.Component topLayout) |
void |
createEntity() |
protected abstract com.vaadin.ui.Component |
createFilter(String filterHint) |
protected BaseCrudForm<E,K,F> |
createForm() |
protected abstract BaseCrudView.DataGrid<E> |
createGrid() |
protected abstract BaseCrudLogic<E,K,F> |
createLogic() |
protected abstract com.vaadin.ui.HorizontalLayout |
createTopBar() |
void |
deleteEntity(E entity) |
void |
editEntity(E entity) |
void |
enter(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event) |
abstract String |
getName() |
protected void |
init() |
protected void |
onSelectionChanged(E oldValue,
E value) |
void |
selectAndEditEntity(E entity) |
void |
selectRow(E entity) |
void |
showSaveNotification(String message) |
void |
updateEntity(E entity) |
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, beforeClientResponse, getComponent, getComponentCount, getComponentIndex, getCss, getState, getState, iterator, readDesign, removeComponent, removeLayoutClickListener, replaceComponent, writeDesignaddComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidthaddContextClickListener, addListener, addShortcutListener, addStyleName, attach, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, 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, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidthUndefinedaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddComponents, getComponentIterator, moveComponentsFrom, removeAllComponentsaddListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setVisibleaddAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefinedforEach, spliteratorprotected final CommonDataProvider<E,K,F> dataProvider
protected BaseCrudView.DataGrid<E> grid
protected BaseCrudLogic<E,K,F> viewLogic
protected BaseCrudForm<E,K,F> form
protected BaseCrudView(CommonDataProvider<E,K,F> dataProvider)
protected void init()
protected abstract com.vaadin.ui.HorizontalLayout createTopBar()
protected abstract com.vaadin.ui.Component createFilter(String filterHint)
public void showSaveNotification(String message)
protected com.vaadin.ui.VerticalLayout createBarAndGridLayout(com.vaadin.ui.Component topLayout)
protected BaseCrudForm<E,K,F> createForm()
public void enter(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent event)
enter in interface com.vaadin.navigator.Viewpublic void beforeLeave(com.vaadin.navigator.ViewBeforeLeaveEvent event)
beforeLeave in interface com.vaadin.navigator.Viewpublic void selectRow(E entity)
public void clearSelection()
public void createEntity()
public void editEntity(E entity)
public void updateEntity(E entity)
public void deleteEntity(E entity)
public void selectAndEditEntity(E entity)
public abstract String getName()
protected abstract BaseCrudLogic<E,K,F> createLogic()
protected abstract BaseCrudView.DataGrid<E> createGrid()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.