public class MultiDomainEditLayout extends BaseCustomComponent
com.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| Constructor and Description |
|---|
MultiDomainEditLayout(FormOptions formOptions,
List<Class<? extends Domain>> domainClasses)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEntityModelOverride(Class<?> clazz,
String reference)
Adds an entity model override
|
void |
attach() |
void |
build() |
List<Class<? extends Domain>> |
getDomainClasses() |
Class<? extends Domain> |
getSelectedDomain() |
Domain |
getSelectedItem() |
ServiceBasedSplitLayout<?,?> |
getSplitLayout() |
protected boolean |
isDeleteAllowed(Class<?> clazz)
Check if the deletion of domain values for a certain class is allowed
|
protected boolean |
isEditAllowed()
Indicates whether editing is allowed
|
protected void |
postProcessButtonBar(com.vaadin.ui.Layout buttonBar) |
void |
registerButton(com.vaadin.ui.Button button)
Registers a button.
|
void |
reload()
Reloads the screen
|
void |
selectDomain(Class<? extends Domain> clazz)
Constructs a layout for editing a certain domain
|
constructLabel, getEntityModelFactory, getMessageService, getService, handleSaveException, message, message, navigate, showNotifificationgetComponentCount, getCompositionRoot, iterator, setCompositionRootaddContextClickListener, addListener, addShortcutListener, addStyleName, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getExplicitImmediateValue, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getState, getState, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isImmediate, isOrHasAncestor, isReadOnly, isResponsive, isVisible, readDesign, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidth, setWidthUndefined, writeDesignaddAttachListener, 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, setResourceclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddListener, addStyleName, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, readDesign, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible, writeDesignaddAttachListener, addDetachListener, beforeClientResponse, 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, spliteratorpublic MultiDomainEditLayout(FormOptions formOptions, List<Class<? extends Domain>> domainClasses)
formOptions - the form optionsdomainClasses - the classes of the domainspublic void addEntityModelOverride(Class<?> clazz, String reference)
clazz - the entity classreference - the reference to use for the overriden modelpublic void attach()
attach in interface com.vaadin.server.ClientConnectorattach in interface com.vaadin.ui.Componentattach in class com.vaadin.ui.AbstractComponentpublic void build()
public Class<? extends Domain> getSelectedDomain()
public Domain getSelectedItem()
public ServiceBasedSplitLayout<?,?> getSplitLayout()
protected boolean isDeleteAllowed(Class<?> clazz)
clazz - the classprotected boolean isEditAllowed()
protected void postProcessButtonBar(com.vaadin.ui.Layout buttonBar)
buttonBar - public void registerButton(com.vaadin.ui.Button button)
button - the button to registerpublic void reload()
Copyright © 2019 Open Circle Solutions. All rights reserved.