com.vaadin.terminal.gwt.client.ui.layout.


Class ChildComponentContainer

java.lang.Object
  com.google.gwt.user.client.ui.UIObject
      com.google.gwt.user.client.ui.Widget
          com.google.gwt.user.client.ui.Panel
              com.vaadin.terminal.gwt.client.ui.layout.ChildComponentContainer

All Implemented Interfaces:

com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, Iterable<com.google.gwt.user.client.ui.Widget>

public class ChildComponentContainer
extends com.google.gwt.user.client.ui.Panel

Nested Class Summary
 class ChildComponentContainer.ChildComponentContainerIterator<T>
           
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ChildComponentContainer(com.google.gwt.user.client.ui.Widget widget, int orientation)
           
 
Method Summary
 void clearAlignments()
           
 int expand(int orientation, int spaceForExpansion)
           
 void expandExtra(int orientation, int extra)
           
 int getCaptionHeight()
           
 int getCaptionHeightAboveComponent()
           
 int getCaptionRequiredWidth()
           
 int getCaptionWidth()
           
 int getCaptionWidthAfterComponent()
           
 RenderInformation.Size getContSize()
           
 com.google.gwt.user.client.ui.Widget getWidget()
           
 RenderInformation.Size getWidgetSize()
           
 boolean isComponentRelativeSized(int orientation)
           
 Iterator<com.google.gwt.user.client.ui.Widget> iterator()
           
 boolean remove(com.google.gwt.user.client.ui.Widget child)
           
 void renderChild(UIDL childUIDL, ApplicationConnection client, int fixedWidth)
           
 void setAlignment(AlignmentInfo alignmentInfo)
           
 void setContainerSize(int widgetAndCaptionWidth, int widgetAndCaptionHeight)
           
 void setLimitedContainerWidth(int width)
           
 void setMarginLeft(int marginLeft)
           
 void setMarginTop(int marginTop)
           
 void setNormalizedExpandRatio(double expandRatio)
          Sets the normalized expand ratio of this slot.
 void setOrientation(int orientation)
           
 void setRelativeSize(RenderInformation.FloatSize relativeSize)
           
 void setUnlimitedContainerWidth()
           
 void setWidget(com.google.gwt.user.client.ui.Widget w)
           
 int size()
           
 void updateAlignments(int parentWidth, int parentHeight)
           
 void updateCaption(UIDL uidl, ApplicationConnection client)
           
 void updateCaptionSize()
           
 void updateContainerDOMSize()
           
 void updateWidgetSize()
           
 boolean widgetHasSizeSpecified(int orientation)
          Return true if the size of the widget has been specified in the selected orientation.
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChildComponentContainer

public ChildComponentContainer(com.google.gwt.user.client.ui.Widget widget,
                               int orientation)
Method Detail

setWidget

public void setWidget(com.google.gwt.user.client.ui.Widget w)

setOrientation

public void setOrientation(int orientation)

renderChild

public void renderChild(UIDL childUIDL,
                        ApplicationConnection client,
                        int fixedWidth)

setUnlimitedContainerWidth

public void setUnlimitedContainerWidth()

setLimitedContainerWidth

public void setLimitedContainerWidth(int width)

updateWidgetSize

public void updateWidgetSize()

setMarginLeft

public void setMarginLeft(int marginLeft)

setMarginTop

public void setMarginTop(int marginTop)

updateAlignments

public void updateAlignments(int parentWidth,
                             int parentHeight)

getCaptionRequiredWidth

public int getCaptionRequiredWidth()

getCaptionWidth

public int getCaptionWidth()

getCaptionHeight

public int getCaptionHeight()

getCaptionWidthAfterComponent

public int getCaptionWidthAfterComponent()

getCaptionHeightAboveComponent

public int getCaptionHeightAboveComponent()

setAlignment

public void setAlignment(AlignmentInfo alignmentInfo)

getWidgetSize

public RenderInformation.Size getWidgetSize()

updateCaption

public void updateCaption(UIDL uidl,
                          ApplicationConnection client)

updateCaptionSize

public void updateCaptionSize()

remove

public boolean remove(com.google.gwt.user.client.ui.Widget child)

Specified by:
remove in interface com.google.gwt.user.client.ui.HasWidgets
Specified by:
remove in class com.google.gwt.user.client.ui.Panel

iterator

public Iterator<com.google.gwt.user.client.ui.Widget> iterator()

size

public int size()

getWidget

public com.google.gwt.user.client.ui.Widget getWidget()

widgetHasSizeSpecified

public boolean widgetHasSizeSpecified(int orientation)

Return true if the size of the widget has been specified in the selected orientation.

Returns:

isComponentRelativeSized

public boolean isComponentRelativeSized(int orientation)

setRelativeSize

public void setRelativeSize(RenderInformation.FloatSize relativeSize)

getContSize

public RenderInformation.Size getContSize()

clearAlignments

public void clearAlignments()

setNormalizedExpandRatio

public void setNormalizedExpandRatio(double expandRatio)

Sets the normalized expand ratio of this slot. The fraction that this slot will use of "excess space".

Parameters:
expandRatio -

expand

public int expand(int orientation,
                  int spaceForExpansion)

expandExtra

public void expandExtra(int orientation,
                        int extra)

setContainerSize

public void setContainerSize(int widgetAndCaptionWidth,
                             int widgetAndCaptionHeight)

updateContainerDOMSize

public void updateContainerDOMSize()