public abstract class AbstractContentPreviewComponent<T> extends com.vaadin.ui.CustomComponent implements ContentPreviewComponent<T>
ContentPreviewComponent
.com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
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
com.vaadin.server.Sizeable.Unit
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
Modifier and Type | Field and Description |
---|---|
protected com.vaadin.ui.Component |
contentDetail |
protected com.vaadin.ui.Component |
contentPreview |
protected com.vaadin.ui.Layout |
rootLayout |
protected String |
workspace |
Constructor and Description |
---|
AbstractContentPreviewComponent(String workspace) |
Modifier and Type | Method and Description |
---|---|
protected void |
clearRootLayout()
Clear the root layout.
|
void |
onValueChange(String itemReference)
On value change:
- Clear the Root component - Retrieve/Refresh the related item (based on the itemReference) - Refresh the Content Detail and Preview component. |
protected abstract com.vaadin.ui.Component |
refreshContentDetail(T item)
Refresh the Content detail.
|
protected abstract com.vaadin.ui.Component |
refreshContentPreview(T item)
Refresh the Content Preview.
|
protected abstract T |
refreshItem(String itemPath)
Based on the item path, retrieve the corresponding item.
|
protected void |
refreshRootLayout()
Refresh the root layout.
|
getComponentCount, getCompositionRoot, getState, getState, iterator, setCompositionRoot
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, 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, readDesign, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthUndefined, writeDesign
addAttachListener, 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, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined
forEach, spliterator
protected String workspace
protected com.vaadin.ui.Component contentDetail
protected com.vaadin.ui.Component contentPreview
protected com.vaadin.ui.Layout rootLayout
public AbstractContentPreviewComponent(String workspace)
public void onValueChange(String itemReference)
onValueChange
in interface ContentPreviewComponent<T>
protected abstract com.vaadin.ui.Component refreshContentDetail(T item)
ContentPreviewComponent.onValueChange(String)
in case of value changes.protected abstract com.vaadin.ui.Component refreshContentPreview(T item)
ContentPreviewComponent.onValueChange(String)
in case of value changes.protected abstract T refreshItem(String itemPath)
protected void clearRootLayout()
protected void refreshRootLayout()
Copyright © 2020 Magnolia International Ltd.. All rights reserved.