T
- the item type to preview.public abstract class AbstractItemPreviewComponent<T> extends com.vaadin.ui.CustomComponent implements ItemPreviewComponent<T>
ItemPreviewComponent
.
An item preview usually consists of two parts
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.Layout |
rootLayout |
Constructor and Description |
---|
AbstractItemPreviewComponent(info.magnolia.i18nsystem.SimpleTranslator i18n,
PropertySetFactory<T> propertySetFactory,
PreviewProvider<T> previewProvider,
Map<String,Class> properties) |
Modifier and Type | Method and Description |
---|---|
protected void |
clearRootLayout() |
protected abstract com.vaadin.ui.Component |
createDetailComponent(String propertyName,
Object value) |
protected info.magnolia.i18nsystem.SimpleTranslator |
getI18n() |
protected PreviewProvider<T> |
getPreviewProvider() |
protected com.vaadin.data.PropertySet<T> |
getPropertySet() |
protected com.vaadin.ui.Layout |
getRootLayout() |
void |
onValueChange(T item)
Will typically display or update details about this item.
|
protected com.vaadin.ui.Component |
refreshItemDetail(T item)
Refreshes the item detail.
|
protected com.vaadin.ui.Component |
refreshItemPreview(T item)
Refreshes the item preview.
|
protected void |
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, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthFull, setWidthUndefined, writeDesign
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, 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, 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, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefined
forEach, spliterator
@Inject public AbstractItemPreviewComponent(info.magnolia.i18nsystem.SimpleTranslator i18n, PropertySetFactory<T> propertySetFactory, PreviewProvider<T> previewProvider, Map<String,Class> properties)
protected com.vaadin.ui.Layout getRootLayout()
public void onValueChange(T item)
ItemPreviewComponent
onValueChange
in interface ItemPreviewComponent<T>
protected com.vaadin.ui.Component refreshItemDetail(T item)
ItemPreviewComponent.onValueChange(Object)
in case of value changes.protected abstract com.vaadin.ui.Component createDetailComponent(String propertyName, Object value)
protected com.vaadin.ui.Component refreshItemPreview(T item)
ItemPreviewComponent.onValueChange(Object)
} in case of value changes.protected void clearRootLayout()
protected void refreshRootLayout()
protected com.vaadin.data.PropertySet<T> getPropertySet()
protected info.magnolia.i18nsystem.SimpleTranslator getI18n()
protected PreviewProvider<T> getPreviewProvider()
Copyright © 2021 Magnolia International Ltd.. All rights reserved.