public abstract class AbstractBaseItemContentPreviewComponent extends AbstractContentPreviewComponent<com.vaadin.v7.data.Item>
Item
implementation of AbstractContentPreviewComponent
.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 ImageProvider |
imageProvider |
contentDetail, contentPreview, rootLayout, workspace
Constructor and Description |
---|
AbstractBaseItemContentPreviewComponent(String workspace) |
Modifier and Type | Method and Description |
---|---|
abstract List<com.vaadin.ui.Component> |
createFieldDetail(com.vaadin.v7.data.Item fileItem)
Returned components (Label) will be displayed in the order of creation (first display is the first put into the list).
|
com.vaadin.ui.Component |
refreshContentDetail(com.vaadin.v7.data.Item item)
Refresh the Content detail.
|
com.vaadin.ui.Component |
refreshContentPreview(com.vaadin.v7.data.Item item)
Refresh the Content Preview.
|
protected com.vaadin.v7.data.Item |
refreshItem(String itemPath)
Retrieve an
Item based on the itemPath.This Item is then used by sub classes to display Item detail and preview. |
abstract void |
setImageProvider() |
clearRootLayout, onValueChange, refreshRootLayout
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, 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, 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 ImageProvider imageProvider
public AbstractBaseItemContentPreviewComponent(String workspace)
public abstract void setImageProvider()
public abstract List<com.vaadin.ui.Component> createFieldDetail(com.vaadin.v7.data.Item fileItem) throws javax.jcr.RepositoryException
fileItem
- javax.jcr.RepositoryException
public com.vaadin.ui.Component refreshContentDetail(com.vaadin.v7.data.Item item)
AbstractContentPreviewComponent
ContentPreviewComponent.onValueChange(String)
in case of value changes.refreshContentDetail
in class AbstractContentPreviewComponent<com.vaadin.v7.data.Item>
public com.vaadin.ui.Component refreshContentPreview(com.vaadin.v7.data.Item item)
AbstractContentPreviewComponent
ContentPreviewComponent.onValueChange(String)
in case of value changes.refreshContentPreview
in class AbstractContentPreviewComponent<com.vaadin.v7.data.Item>
protected com.vaadin.v7.data.Item refreshItem(String itemPath)
Item
based on the itemPath.Item
is then used by sub classes to display Item detail and preview.refreshItem
in class AbstractContentPreviewComponent<com.vaadin.v7.data.Item>
Copyright © 2018 Magnolia International Ltd.. All rights reserved.