info.magnolia.ui.vaadin.form
Class Form

java.lang.Object
  extended by com.vaadin.server.AbstractClientConnector
      extended by com.vaadin.ui.AbstractComponent
          extended by com.vaadin.ui.AbstractSingleComponentContainer
              extended by info.magnolia.ui.vaadin.form.Form
All Implemented Interfaces:
com.vaadin.data.Item.Editor, com.vaadin.data.Item.Viewer, com.vaadin.event.MethodEventSource, com.vaadin.server.ClientConnector, com.vaadin.server.Sizeable, com.vaadin.shared.Connector, com.vaadin.ui.Component, com.vaadin.ui.HasComponents, com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.SingleComponentContainer, View, FormViewReduced, Serializable, Iterable<com.vaadin.ui.Component>

public class Form
extends com.vaadin.ui.AbstractSingleComponentContainer
implements FormViewReduced

Form. The server side implementation of the form view. Displays the form inside a MagnoliaTabSheet.

See Also:
Serialized Form

Nested Class Summary
 
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
 
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
 
Field Summary
 
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
Form()
           
 
Method Summary
 void addField(com.vaadin.ui.Field<?> field)
           
 void addFormSection(String tabName, FormSection inputFields)
           
 Form asVaadinComponent()
          Returns the Vaadin component managed by this view.
 void beforeClientResponse(boolean initial)
           
 void focusFirstField()
           
 Collection<com.vaadin.ui.Field<?>> getFields()
           
 com.vaadin.data.Item getItemDataSource()
           
protected  FormState getState()
           
protected  FormState getState(boolean markAsDirty)
           
 boolean isValid()
           
 void setDescriptionVisibility(boolean isVisible)
           
 void setItemDataSource(com.vaadin.data.Item newDataSource)
           
 void setShowAllEnabled(boolean enabled)
           
 void showValidation(boolean isVisible)
           
 
Methods inherited from class com.vaadin.ui.AbstractSingleComponentContainer
addComponentAttachListener, addComponentDetachListener, fireComponentAttachEvent, fireComponentDetachEvent, getComponentCount, getContent, iterator, removeComponentAttachListener, removeComponentDetachListener, removeFromParent, setContent, setHeight, setWidth
 
Methods inherited from class com.vaadin.ui.AbstractComponent
addListener, addShortcutListener, addStyleName, attach, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isConnectorEnabled, isEnabled, isImmediate, isReadOnly, isVisible, removeListener, removeShortcutListener, removeStyleName, setCaption, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setSizeFull, setSizeUndefined, setStyleName, setVisible, 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, 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, setSizeFull, setSizeUndefined, setWidth
 

Constructor Detail

Form

public Form()
Method Detail

focusFirstField

public void focusFirstField()

setDescriptionVisibility

public void setDescriptionVisibility(boolean isVisible)
Specified by:
setDescriptionVisibility in interface FormViewReduced

setItemDataSource

public void setItemDataSource(com.vaadin.data.Item newDataSource)
Specified by:
setItemDataSource in interface com.vaadin.data.Item.Viewer

getItemDataSource

public com.vaadin.data.Item getItemDataSource()
Specified by:
getItemDataSource in interface com.vaadin.data.Item.Viewer

addFormSection

public void addFormSection(String tabName,
                           FormSection inputFields)
Specified by:
addFormSection in interface FormViewReduced

addField

public void addField(com.vaadin.ui.Field<?> field)
Specified by:
addField in interface FormViewReduced

getFields

public Collection<com.vaadin.ui.Field<?>> getFields()
Specified by:
getFields in interface FormViewReduced

isValid

public boolean isValid()
Specified by:
isValid in interface FormViewReduced

showValidation

public void showValidation(boolean isVisible)
Specified by:
showValidation in interface FormViewReduced

setShowAllEnabled

public void setShowAllEnabled(boolean enabled)
Specified by:
setShowAllEnabled in interface FormViewReduced

getState

protected FormState getState()
Overrides:
getState in class com.vaadin.ui.AbstractComponent

getState

protected FormState getState(boolean markAsDirty)
Overrides:
getState in class com.vaadin.ui.AbstractComponent

asVaadinComponent

public Form asVaadinComponent()
Description copied from interface: View
Returns the Vaadin component managed by this view.

Specified by:
asVaadinComponent in interface View
Specified by:
asVaadinComponent in interface FormViewReduced

beforeClientResponse

public void beforeClientResponse(boolean initial)
Specified by:
beforeClientResponse in interface com.vaadin.server.ClientConnector
Overrides:
beforeClientResponse in class com.vaadin.ui.AbstractComponent


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