info.magnolia.ui.form.field.component
Class AbstractBaseItemContentPreviewComponent

java.lang.Object
  extended by com.vaadin.server.AbstractClientConnector
      extended by com.vaadin.ui.AbstractComponent
          extended by com.vaadin.ui.CustomComponent
              extended by info.magnolia.ui.form.field.component.AbstractContentPreviewComponent<com.vaadin.data.Item>
                  extended by info.magnolia.ui.form.field.component.AbstractBaseItemContentPreviewComponent
All Implemented Interfaces:
com.vaadin.event.MethodEventSource, com.vaadin.server.ClientConnector, com.vaadin.server.Sizeable, com.vaadin.shared.Connector, com.vaadin.ui.Component, com.vaadin.ui.HasComponents, ContentPreviewComponent<com.vaadin.data.Item>, Serializable, Iterable<com.vaadin.ui.Component>

public abstract class AbstractBaseItemContentPreviewComponent
extends AbstractContentPreviewComponent<com.vaadin.data.Item>

Item implementation of AbstractContentPreviewComponent.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
 
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
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
 
Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable
com.vaadin.server.Sizeable.Unit
 
Nested classes/interfaces inherited from interface com.vaadin.ui.HasComponents
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
 
Field Summary
protected  ImageProvider imageProvider
           
 
Fields inherited from class info.magnolia.ui.form.field.component.AbstractContentPreviewComponent
contentDetail, contentPreview, rootLayout, workspace
 
Fields inherited from interface com.vaadin.server.Sizeable
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
 
Constructor Summary
AbstractBaseItemContentPreviewComponent(String workspace)
           
 
Method Summary
abstract  List<com.vaadin.ui.Component> createFieldDetail(com.vaadin.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.data.Item item)
          Refresh the Content detail.
 com.vaadin.ui.Component refreshContentPreview(com.vaadin.data.Item item)
          Refresh the Content Preview.
protected  com.vaadin.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()
           
 
Methods inherited from class info.magnolia.ui.form.field.component.AbstractContentPreviewComponent
clearRootLayout, onValueChange, refreshRootLayout
 
Methods inherited from class com.vaadin.ui.CustomComponent
getComponentCount, getCompositionRoot, iterator, setCompositionRoot
 
Methods inherited from class com.vaadin.ui.AbstractComponent
addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getState, getState, getStyleName, getWidth, getWidthUnits, isConnectorEnabled, isEnabled, isImmediate, isReadOnly, isVisible, removeListener, removeShortcutListener, removeStyleName, setCaption, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth
 
Methods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hasListeners, isAttached, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.ui.Component
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible
 
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
 
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
 
Methods inherited from interface com.vaadin.server.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setSizeFull, setSizeUndefined, setWidth, setWidth
 

Field Detail

imageProvider

protected ImageProvider imageProvider
Constructor Detail

AbstractBaseItemContentPreviewComponent

public AbstractBaseItemContentPreviewComponent(String workspace)
Method Detail

setImageProvider

public abstract void setImageProvider()

createFieldDetail

public abstract List<com.vaadin.ui.Component> createFieldDetail(com.vaadin.data.Item fileItem)
                                                         throws javax.jcr.RepositoryException
Returned components (Label) will be displayed in the order of creation (first display is the first put into the list).

Parameters:
fileItem -
Returns:
list of detail components (Generally a Label)
Throws:
javax.jcr.RepositoryException

refreshContentDetail

public com.vaadin.ui.Component refreshContentDetail(com.vaadin.data.Item item)
Description copied from class: AbstractContentPreviewComponent
Refresh the Content detail.
This method should be triggered by ContentPreviewComponent.onValueChange(String) in case of value changes.

Specified by:
refreshContentDetail in class AbstractContentPreviewComponent<com.vaadin.data.Item>

refreshContentPreview

public com.vaadin.ui.Component refreshContentPreview(com.vaadin.data.Item item)
Description copied from class: AbstractContentPreviewComponent
Refresh the Content Preview. This method should be triggered by ContentPreviewComponent.onValueChange(String) in case of value changes.

Specified by:
refreshContentPreview in class AbstractContentPreviewComponent<com.vaadin.data.Item>

refreshItem

protected com.vaadin.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.

Specified by:
refreshItem in class AbstractContentPreviewComponent<com.vaadin.data.Item>


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.