info.magnolia.ui.vaadin.gwt.client.dialog.connector
Class DialogContainingFormConnector

java.lang.Object
  extended by com.vaadin.client.ui.AbstractConnector
      extended by com.vaadin.client.ui.AbstractComponentConnector
          extended by com.vaadin.client.ui.AbstractHasComponentsConnector
              extended by com.vaadin.client.ui.AbstractComponentContainerConnector
                  extended by com.vaadin.client.ui.AbstractLayoutConnector
                      extended by info.magnolia.ui.vaadin.gwt.client.dialog.connector.BaseDialogConnector
                          extended by info.magnolia.ui.vaadin.gwt.client.dialog.connector.DialogContainingFormConnector
All Implemented Interfaces:
com.google.gwt.event.logical.shared.ResizeHandler, com.google.gwt.event.shared.EventHandler, com.vaadin.client.communication.StateChangeEvent.StateChangeHandler, com.vaadin.client.ComponentConnector, com.vaadin.client.ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler, com.vaadin.client.HasComponentsConnector, com.vaadin.client.ServerConnector, com.vaadin.shared.Connector, BaseDialogView.Presenter, Serializable

public class DialogContainingFormConnector
extends BaseDialogConnector
implements com.google.gwt.event.logical.shared.ResizeHandler

DialogContainingForm assumes that content of dialog is FormView. This connector will set the height of form view based on how much space this dialog can provide to the form.

See Also:
Serialized Form

Constructor Summary
DialogContainingFormConnector()
           
 
Method Summary
protected  BaseDialogView createView()
           
protected  void init()
           
 void onResize(com.google.gwt.event.logical.shared.ResizeEvent event)
          Calculates and sets the max height of form view.
 void onUnregister()
           
 
Methods inherited from class info.magnolia.ui.vaadin.gwt.client.dialog.connector.BaseDialogConnector
closeDialog, createState, createWidget, delegateCaptionHandling, getContent, getFooter, getHeader, getState, onConnectorHierarchyChange, setDescriptionVisibility, updateCaption, updateContent, updateFooterToolbar, updateHeaderToolbar
 
Methods inherited from class com.vaadin.client.ui.AbstractHasComponentsConnector
addConnectorHierarchyChangeHandler, getChildComponents, setChildComponents
 
Methods inherited from class com.vaadin.client.ui.AbstractComponentConnector
flush, getIcon, getLayoutManager, getTooltipInfo, getWidget, hasTooltip, isReadOnly, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onStateChanged, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, updateComponentSize, updateComponentSize, updateEnabledState, updateWidgetStyleNames
 
Methods inherited from class com.vaadin.client.ui.AbstractConnector
addStateChangeHandler, addStateChangeHandler, doInit, ensureHandlerManager, fireEvent, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, hasEventListener, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, unregisterRpc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.client.ServerConnector
addStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, hasEventListener, isEnabled, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, updateEnabledState
 
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
 

Constructor Detail

DialogContainingFormConnector

public DialogContainingFormConnector()
Method Detail

createView

protected BaseDialogView createView()
Overrides:
createView in class BaseDialogConnector

init

protected void init()
Overrides:
init in class BaseDialogConnector

onUnregister

public void onUnregister()
Specified by:
onUnregister in interface com.vaadin.client.ServerConnector
Overrides:
onUnregister in class com.vaadin.client.ui.AbstractComponentConnector

onResize

public void onResize(com.google.gwt.event.logical.shared.ResizeEvent event)
Calculates and sets the max height of form view.

Specified by:
onResize in interface com.google.gwt.event.logical.shared.ResizeHandler


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