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 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 |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
DEBUG_ID_PREFIX |
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 |
ChildComponentContainer
public ChildComponentContainer(com.google.gwt.user.client.ui.Widget widget,
int orientation)
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()