Class Layout
- All Implemented Interfaces:
- HasAttachHandlers,- HasHandlers,- EventListener,- HasVisibility,- IsWidget,- LogicalStructure,- HasClearHandlers,- HasClickHandlers,- HasDoubleClickHandlers,- HasDragMoveHandlers,- HasDragRepositionMoveHandlers,- HasDragRepositionStartHandlers,- HasDragRepositionStopHandlers,- HasDragResizeMoveHandlers,- HasDragResizeStartHandlers,- HasDragResizeStopHandlers,- HasDragStartHandlers,- HasDragStopHandlers,- HasDropHandlers,- HasDropMoveHandlers,- HasDropOutHandlers,- HasDropOverHandlers,- HasFocusChangedHandlers,- HasHoverHandlers,- HasHoverHiddenHandlers,- HasKeyDownHandlers,- HasKeyPressHandlers,- HasMouseDownHandlers,- HasMouseMoveHandlers,- HasMouseOutHandlers,- HasMouseOverHandlers,- HasMouseStillDownHandlers,- HasMouseUpHandlers,- HasMouseWheelHandlers,- HasMovedHandlers,- HasParentMovedHandlers,- HasResizedHandlers,- HasRightMouseDownHandlers,- HasRuleContextChangedHandlers,- HasScrolledHandlers,- HasShowContextMenuHandlers,- HasVisibilityChangedHandlers,- HasMembersChangedHandlers
- Direct Known Subclasses:
- AdaptiveMenu,- ColumnTree,- Deck,- FilterBuilder,- HLayout,- HStack,- ListPropertiesPane,- MultiGroupPanel,- MultiSortPanel,- PortalLayout,- Shuttle,- SplitPane,- Toolbar,- ToolStrip,- VLayout,- VStack
 A Layout manages a set of "member" Canvases provided as members.  Layouts can have both "members", whose position and size
 are managed by the Layout, and normal Canvas children, which manage their own position and size. 
 Rather than using
 the Layout class directly, use the HLayout, VLayout, HStack and VStack classes, which are subclasses of Layout preconfigured for horizontal or
 vertical stacking, with the "fill" (VLayout) or "none" (VStack) policies
 already set. 
Layouts and Stacks may be nested to create arbitrarily complex layouts.
Since Layouts can be either horizontally or vertically oriented, throughout the documentation of Layout and it's subclasses, the term "length" refers to the axis of stacking, and the term "breadth" refers to the other axis. Hence, "length" means height in the context of a VLayout or VStack, but means width in the context of an HLayout or HStack.
 To show a resizer bar after
 (to the right or bottom of) a layout member, set showResizeBar to true on that member component (not on the HLayout or VLayout).  Resizer bars override membersMargin spacing. 
Like other Canvas subclasses, Layout and Stack components may have % width and height values. To create a dynamically-resizing layout that occupies the entire page (or entire parent component), set width and height to "100%".
- 
Nested Class SummaryNested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObjectUIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
- 
Field SummaryFields inherited from class com.smartgwt.client.widgets.BaseWidgetconfig, configOnly, factoryCreated, factoryProperties, id, nativeObject, scClassNameFields inherited from class com.google.gwt.user.client.ui.UIObjectDEBUG_ID_PREFIX
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdd a canvas to the layout, optionally at a specific position.voidvoidAdd a canvas to the layout, optionally at a specific position.voidAdd a canvas to the layout, optionally at a specific position.protected voidaddMemberPostCreate(Object componentJS) protected voidaddMemberPostCreate(Object componentJS, int position) protected voidaddMemberPreCreate(Object componentJS) protected voidaddMemberPreCreate(Object componentJS, int position) voidaddMembers(Canvas... newMembers) Add one or more canvases to the layout.voidaddMembers(Canvas[] newMembers, int position) Add one or more canvases to the layout at specific positions.Add a membersChanged handler.static voidchangeAutoChildDefaults(String autoChildName, Canvas defaults) Changes the defaults for Canvas AutoChildren namedautoChildName.static voidchangeAutoChildDefaults(String autoChildName, FormItem defaults) Changes the defaults for FormItem AutoChildren namedautoChildName.protected JavaScriptObjectcreate()If true when members are added / removed, they should be animated as they are shown or hidden in positionIf specified this is the duration of show/hide animations when members are being shown or hidden due to being added / removed from this layout.Layouts provide a default implementation of a drag and drop interaction.getChildTabPosition(Canvas child) Layouts ensure children are ordered in the tab-sequence with members being reachable first (in member order), then any non-member children.Policy for whether resize bars are shown on members by default.protected CanvasgetDropComponent(Canvas dragTarget, int dropPosition) Line showed to mark the drop position when components are being dragged onto this Layout.intThickness, in pixels of the dropLine shown during drag and drop whencanDropComponentsis set totrue.intGet the position a new member would be dropped.Default class used to construct theEditProxyfor this component when the component isfirst placed into edit mode.Whether the layout policy is continuously enforced as new members are added or removed and as members are resized.Sizing policy applied to members on horizontal axisSpace outside of all members, on the bottom side.Equivalent tolayoutRightMarginfor a horizontal layout, orlayoutBottomMarginfor a vertical layout.Space outside of all members, on the left-hand side.Space outside of all members.Space outside of all members, on the right-hand side.Equivalent tolayoutLeftMarginfor a horizontal layout, orlayoutTopMarginfor a vertical layout.Space outside of all members, on the top side.Whether to leave a gap for a vertical scrollbar even when one is not actually present.Part of theAutomatedTestingsystem, strategy to use when generated locators for members from within this Layout's members array.LocatorTypeStrategyto use when finding members within this layout.Getter implementing theLogicalStructureinterface, which supports Eclipse's logical structure debugging facility.If set, a Layout with breadthPolicy:"fill" will specially interpret a percentage breadth on a member as a percentage of available space excluding thelayoutMargin.getMember(int index) Given a numerical index or a member ID, return a pointer to the appropriate member.voidgetMemberDefaultBreadth(Canvas member, int defaultBreadth) Return the breadth for a member of this layout which either didn't specify a breadth or specified a percent breadth withmanagePercentBreadth:true.intgetMemberNumber(Canvas member) Given a member Canvas or member ID, return the index of that member within this layout's members arrayintgetMemberNumber(String memberID) intNumber of pixels by which each member should overlap the preceding member, used for creating an "stack of cards" appearance for the members of a Layout.Canvas[]An array of canvases that will be contained within this layout.Convenience method to return the number of members this Layout hasintSpace between each member of the layout.intMinimum size, in pixels, below which flexible-sized members should never be shrunk, even if this requires the Layout to overflow.intDeprecated.static LayoutgetOrCreateRef(JavaScriptObject jsObj) A Layout may overflow if it has one or more members with a fixed width or height, or that themselves overflow.If this widget has padding specified (asthis.paddingor in the CSS style applied to this layout), should it show up as space outside the members, similar to layoutMargin?Note : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists.Default class to use for creatingresizeBars.intThickness of the resizeBar in pixels.Reverse the order of stacking for this Layout, so that the last member is shown first.If set to true, when a member is dragged out of layout, a visible placeholder canvas will be displayed in place of the dragged widget for the duration of the drag and drop interaction.Controls whether to show a drop-indicator during a drag and drop operation.For use in conjunction withmemberOverlap, controls the z-stacking order of members.Should this layout appear with members stacked vertically or horizontally.Sizing policy applied to members on vertical axisReturns true if the layout includes the specified canvas.voidCalling this method hides the dropLine shown during a drag and drop interaction with a Layout that hascanDropComponentsset to true.voidhideMember(Canvas member) Hide the specified member, firing the specified callback when the hide is complete.voidhideMember(Canvas member, Function callback) Hide the specified member, firing the specified callback when the hide is complete.booleanReturns whether there is a pending reflow of the members of the layout.protected voidonInit()protected voidvoidreflow()Layout members according to current settings.voidLayout members according to current settings.voidLayout members according to current settings, immediately.voidremoveMember(Canvas member) Removes the specified member from the layout.voidremoveMembers(Canvas members) Removes the specified members from the layout.voidremoveMembers(Canvas... members) Removes the specified members from the layout.voidreorderMember(int memberNum, int newPosition) Shift a member of the layout to a new positionvoidreorderMembers(int start, int end, int newPosition) Move a range of members to a new positionvoidreplaceMember(Canvas oldMember, Canvas newMember) Replaces an existing member of the layout with a different widget.voidrevealChild(Canvas child) Reveals the child or member Canvas passed in by showing it if it is currently hidden NOTE: This is an override point.voidrevealChild(String childID) Reveals the child or member Canvas passed in by showing it if it is currently hidden.Alignment of all members in this Layout on the length axis.voidsetAlign(VerticalAlignment alignment) Alignment of all members in this Layout on the length axis.setAnimateMembers(Boolean animateMembers) If true when members are added / removed, they should be animated as they are shown or hidden in positionsetAnimateMemberTime(Integer animateMemberTime) If specified this is the duration of show/hide animations when members are being shown or hidden due to being added / removed from this layout.setCanDropComponents(Boolean canDropComponents) Layouts provide a default implementation of a drag and drop interaction.voidsetDefaultLayoutAlign(Alignment alignment) Specifies the default alignment for layout members on the breadth axis.voidsetDefaultLayoutAlign(VerticalAlignment alignment) Specifies the default alignment for layout members on the breadth axis.static voidsetDefaultProperties(Layout layoutProperties) Class level method to set the default properties of this class.setDefaultResizeBars(LayoutResizeBarPolicy defaultResizeBars) Policy for whether resize bars are shown on members by default.voidsetDropLineProperties(Canvas dropLineProperties) setDropLineThickness(int dropLineThickness) Thickness, in pixels of the dropLine shown during drag and drop whencanDropComponentsis set totrue.setEditProxyConstructor(String editProxyConstructor) Default class used to construct theEditProxyfor this component when the component isfirst placed into edit mode.setEnforcePolicy(Boolean enforcePolicy) Whether the layout policy is continuously enforced as new members are added or removed and as members are resized.setHPolicy(LayoutPolicy hPolicy) Sizing policy applied to members on horizontal axissetLayoutBottomMargin(Integer layoutBottomMargin) Space outside of all members, on the bottom side.setLayoutEndMargin(Integer layoutEndMargin) Equivalent tolayoutRightMarginfor a horizontal layout, orlayoutBottomMarginfor a vertical layout.setLayoutLeftMargin(Integer layoutLeftMargin) Space outside of all members, on the left-hand side.setLayoutMargin(Integer layoutMargin) Space outside of all members.setLayoutRightMargin(Integer layoutRightMargin) Space outside of all members, on the right-hand side.setLayoutStartMargin(Integer layoutStartMargin) Equivalent tolayoutLeftMarginfor a horizontal layout, orlayoutTopMarginfor a vertical layout.setLayoutTopMargin(Integer layoutTopMargin) Space outside of all members, on the top side.setLeaveScrollbarGap(Boolean leaveScrollbarGap) Whether to leave a gap for a vertical scrollbar even when one is not actually present.setLocateMembersBy(LocatorStrategy locateMembersBy) Part of theAutomatedTestingsystem, strategy to use when generated locators for members from within this Layout's members array.setLocateMembersType(LocatorTypeStrategy locateMembersType) LocatorTypeStrategyto use when finding members within this layout.Setter implementing theLogicalStructureinterface, which supports Eclipse's logical structure debugging facility.setManagePercentBreadth(Boolean managePercentBreadth) If set, a Layout with breadthPolicy:"fill" will specially interpret a percentage breadth on a member as a percentage of available space excluding thelayoutMargin.setMemberOverlap(int memberOverlap) Number of pixels by which each member should overlap the preceding member, used for creating an "stack of cards" appearance for the members of a Layout.setMembers(Canvas... members) An array of canvases that will be contained within this layout.setMembersMargin(int membersMargin) Space between each member of the layout.setMinBreadthMember(int minBreadthMember) Set this property to cause the layout to assign the breadths of other members as if the available breadth is actually wide enough to accommodate theminBreadthMember(even though the Layout might not actually be that wide, and may overflow its assigned size along the breadth axis due to the breadth of theminBreadthMember.setMinBreadthMember(Canvas minBreadthMember) Set this property to cause the layout to assign the breadths of other members as if the available breadth is actually wide enough to accommodate theminBreadthMember(even though the Layout might not actually be that wide, and may overflow its assigned size along the breadth axis due to the breadth of theminBreadthMember.setMinBreadthMember(String minBreadthMember) Set this property to cause the layout to assign the breadths of other members as if the available breadth is actually wide enough to accommodate theminBreadthMember(even though the Layout might not actually be that wide, and may overflow its assigned size along the breadth axis due to the breadth of theminBreadthMember.setMinMemberLength(int minMemberLength) Minimum size, in pixels, below which flexible-sized members should never be shrunk, even if this requires the Layout to overflow.setMinMemberSize(int minMemberSize) Deprecated.use the more intuitively namedminMemberLengthsetOverflow(Overflow overflow) A Layout may overflow if it has one or more members with a fixed width or height, or that themselves overflow.setPaddingAsLayoutMargin(Boolean paddingAsLayoutMargin) If this widget has padding specified (asthis.paddingor in the CSS style applied to this layout), should it show up as space outside the members, similar to layoutMargin?setPlaceHolderDefaults(Canvas placeHolderDefaults) Ifthis.showDragPlaceHolderis true, this defaults object determines the default appearance of the placeholder displayed when the user drags a widget out of this layout.
 Default value for this property sets the placeholderstyleNameto"layoutPlaceHolder"
 To modify this object, use Class.changeDefaults()setPlaceHolderProperties(Canvas placeHolderProperties) Ifthis.showDragPlaceHolderis true, this properties object can be used to customize the appearance of the placeholder displayed when the user drags a widget out of this layout.setResizeBarClass(String resizeBarClass) Default class to use for creatingresizeBars.setResizeBarSize(int resizeBarSize) Thickness of the resizeBar in pixels.setReverseOrder(Boolean reverseOrder) Reverse the order of stacking for this Layout, so that the last member is shown first.setShowDragPlaceHolder(Boolean showDragPlaceHolder) If set to true, when a member is dragged out of layout, a visible placeholder canvas will be displayed in place of the dragged widget for the duration of the drag and drop interaction.setShowDropLines(Boolean showDropLines) Controls whether to show a drop-indicator during a drag and drop operation.setStackZIndex(String stackZIndex) For use in conjunction withmemberOverlap, controls the z-stacking order of members.setVertical(Boolean vertical) Should this layout appear with members stacked vertically or horizontally.voidsetVisibleMember(Canvas member) Hide all other members and make the single parameter member visible.setVPolicy(LayoutPolicy vPolicy) Sizing policy applied to members on vertical axisvoidshowMember(Canvas member) Show the specified member, firing the specified callback when the show is complete.voidshowMember(Canvas member, Function callback) Show the specified member, firing the specified callback when the show is complete.Methods inherited from class com.smartgwt.client.widgets.CanvasaddChild, addChild, addChild, addChild, addChild, addClearHandler, addClickHandler, addDoubleClickHandler, addDragMoveHandler, addDragRepositionMoveHandler, addDragRepositionStartHandler, addDragRepositionStopHandler, addDragResizeMoveHandler, addDragResizeStartHandler, addDragResizeStopHandler, addDragStartHandler, addDragStopHandler, addDropHandler, addDropMoveHandler, addDropOutHandler, addDropOverHandler, addFocusChangedHandler, addHoverHandler, addHoverHiddenHandler, addKeyDownHandler, addKeyPressHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseStillDownHandler, addMouseUpHandler, addMouseWheelHandler, addMovedHandler, addParentMovedHandler, addPeer, addPeer, addPeer, addPeer, addResizedHandler, addRightMouseDownHandler, addRuleContextChangedHandler, addScrolledHandler, addShowContextMenuHandler, addSnapAlignCandidate, addStyleName, addVisibilityChangedHandler, adjustForContent, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateHide, animateHide, animateHide, animateHide, animateHide, animateHide, animateHide, animateMove, animateMove, animateMove, animateMove, animateRect, animateRect, animateRect, animateRect, animateResize, animateResize, animateResize, animateResize, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateShow, animateShow, animateShow, animateShow, animateShow, animateShow, animateShow, asSGWTComponent, blur, bringToFront, clear, clearExplicitTabIndex, clickMaskUp, clickMaskUp, contains, contains, containsEvent, containsEventTarget, containsFocus, containsPoint, containsPoint, dataContextChanged, deparent, depeer, disable, doValueDictation, doVoiceCommand, enable, encloses, focus, focusAfterGroup, focusAtEnd, focusInNextTabElement, focusInPreviousTabElement, getAbsoluteLeft, getAbsoluteTop, getAccessKey, getAdaptiveHeightPriority, getAdaptiveWidthPriority, getAlwaysManageFocusNavigation, getAlwaysShowScrollbars, getAnimateAcceleration, getAnimateFadeTime, getAnimateHideAcceleration, getAnimateHideEffect, getAnimateHideTime, getAnimateMoveAcceleration, getAnimateMoveTime, getAnimateRectAcceleration, getAnimateRectTime, getAnimateResizeAcceleration, getAnimateResizeLayoutMode, getAnimateResizeTime, getAnimateScrollAcceleration, getAnimateScrollTime, getAnimateShowAcceleration, getAnimateShowEffect, getAnimateShowTime, getAnimateTime, getAppImgDir, getAriaHandleID, getAriaRole, getAriaStateDefaults, getAutoMaskComponents, getAutoParent, getAutoPopulateData, getAutoShowParent, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorder, getBorderRadius, getBottom, getById, getByJSObject, getByLocalId, getCanAcceptDrop, getCanAdaptHeight, getCanAdaptWidth, getCanDrag, getCanDragReposition, getCanDragResize, getCanDragScroll, getCanDrop, getCanDropBefore, getCanFocus, getCanHover, getCanSelectText, getCanvasAutoChild, getCanvasItem, getChildren, getChildrenResizeSnapAlign, getChildrenSnapAlign, getChildrenSnapCenterAlign, getChildrenSnapEdgeAlign, getChildrenSnapResizeToGrid, getChildrenSnapToGrid, getClassName, getComponentMask, getComponentMaskDefaults, getContentElement, getContents, getContextMenu, getCorrectZoomOverflow, getCursor, getDataContext, getDataPath, getDefaultHeight, getDefaultWidth, getDefiningProperty, getDefiningPropertyName, getDefiningPropertyNameOptions, getDestroyed, getDestroying, getDisabled, getDisabledCursor, getDisableTouchScrollingForDrag, getDoubleClickDelay, getDragAppearance, getDragIntersectStyle, getDragMaskType, getDragMaxHeight, getDragMaxWidth, getDragMinHeight, getDragMinWidth, getDragOpacity, getDragRepositionAppearance, getDragRepositionCursor, getDragResizeAppearance, getDragScrollDelay, getDragStartDistance, getDragTarget, getDragTargetAsString, getDragType, getDropTarget, getDropTargetAsString, getDropTypes, getDropTypesAsString, getDynamicContents, getEdgeBackgroundColor, getEdgeCenterBackgroundColor, getEdgeImage, getEdgeMarginSize, getEdgeOffset, getEdgeOpacity, getEdgeShowCenter, getEdgeSize, getEditNode, getEditProxy, getElement, getElement, getEnableWhen, getEndLine, getEventEdge, getEventEdge, getExtraSpace, getFacetId, getFloatingScrollbars, getFormItemAutoChild, getForwardSVGeventsToObject, getFullDataPath, getGroupBorderCSS, getGroupLabelBackgroundColor, getGroupLabelStyleName, getGroupPadding, getGroupTitle, getHeight, getHeightAsString, getHideUsingDisplayNone, getHoverAlign, getHoverAutoDestroy, getHoverAutoFitMaxWidth, getHoverAutoFitMaxWidthAsString, getHoverAutoFitWidth, getHoverComponent, getHoverDelay, getHoverFocusKey, getHoverHeight, getHoverHTML, getHoverMoveWithMouse, getHoverOpacity, getHoverPersist, getHoverScreen, getHoverStyle, getHoverVAlign, getHoverWidth, getHoverWrap, getHSnapPosition, getHSnapPosition, getHtmlElement, getHtmlElementAsString, getHtmlPosition, getImage, getImgURL, getImgURL, getInnerContentHeight, getInnerContentWidth, getInnerHeight, getInnerWidth, getIsGroup, getIsPrinting, getIsRuleScope, getIsSnapAlignCandidate, getKeepInParentRect, getLayoutAlign, getLeaveGroupLabelSpace, getLeavePageSpace, getLeft, getLeftAsString, getLocalId, getLocateByIDOnly, getLocateChildrenBy, getLocateChildrenType, getLocatePeersBy, getLocatePeersType, getLocatorName, getMargin, getMasterCanvas, getMasterElement, getMatchElement, getMatchElementHeight, getMatchElementWidth, getMaxHeight, getMaxWidth, getMaxZoomOverflowError, getMenuConstructor, getMinHeight, getMinNonEdgeSize, getMinWidth, getMomentumScrollMinSpeed, getMouseStillDownDelay, getMouseStillDownInitialDelay, getName, getNativeAutoHideScrollbars, getNextZIndex, getNoDoubleClicks, getNoDropCursor, getOffsetHeight, getOffsetWidth, getOffsetX, getOffsetY, getOpacity, getOuterElement, getPadding, getPageBottom, getPageLeft, getPageRect, getPageRight, getPageTop, getPaletteDefaults, getPanelContainer, getParentCanvas, getParentElement, getPeers, getPendingMarkerStyle, getPendingMarkerVisible, getPercentBox, getPercentSource, getPersistentMatchElement, getPointerSettings, getPointerTarget, getPointerTargetAsString, getPosition, getPrefix, getPrintChildrenAbsolutelyPositioned, getPrintHTML, getPrintHTML, getPrintStyleName, getPrompt, getProportionalResizeModifiers, getProportionalResizing, getReceiveScrollbarEvents, getRect, getRedrawOnResize, getResizeBarTarget, getResizeFrom, getRight, getRuleContext, getRuleContext, getRuleScope, getScrollbarSize, getScrollBottom, getScrollHeight, getScrollLeft, getScrollRight, getScrollTop, getScrollWidth, getShadowColor, getShadowDepth, getShadowHOffset, getShadowImage, getShadowOffset, getShadowSoftness, getShadowSpread, getShadowVOffset, getShouldPrint, getShowCustomScrollbars, getShowDragShadow, getShowEdges, getShowHover, getShowHoverComponents, getShowPointer, getShowResizeBar, getShowShadow, getShowSnapGrid, getShrinkElementOnHide, getSizeMayChangeOnRedraw, getSkinImgDir, getSnapAlignCandidates, getSnapAlignCenterLineStyle, getSnapAlignEdgeLineStyle, getSnapAxis, getSnapEdge, getSnapGridLineProperties, getSnapGridStyle, getSnapHDirection, getSnapHGap, getSnapOffsetLeft, getSnapOffsetTop, getSnapOnDrop, getSnapPosition, getSnapPosition, getSnapResizeToAlign, getSnapResizeToGrid, getSnapTo, getSnapToAlign, getSnapToCenterAlign, getSnapToEdgeAlign, getSnapToGrid, getSnapVDirection, getSnapVGap, getStartLine, getStyleName, getTabIndex, getTestDataContext, getTestInstance, getTitle, getTooltip, getTop, getTopAsString, getTopElement, getTopLevelComponents, getUpdateTabPositionOnDraw, getUpdateTabPositionOnReparent, getUseBackMask, getUseCSSShadow, getUseDragMask, getUseImageForSVG, getUseNativeDrag, getUseOpacityFilter, getUseTouchScrolling, getValuesManager, getValuesManagerAsString, getViewportHeight, getViewportWidth, getVisibility, getVisibleHeight, getVisibleWhen, getVisibleWidth, getVSnapPosition, getVSnapPosition, getWidth, getWidthAsString, getWorkflows, getZIndex, getZIndex, handleHover, hide, hideClickMask, hideClickMask, hideComponentMask, hideComponentMask, hideContextMenu, imgHTML, imgHTML, imgHTML, initComplete, intersects, isDirty, isDisabled, isFocused, isVisible, keyUp, layoutChildren, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, markForDestroy, markForRedraw, markForRedraw, moveAbove, moveBelow, moveBy, moveTo, onAttach, onDetach, pageScrollDown, pageScrollUp, parentResized, placeNear, placeNear, placeNear, print, print, print, print, printComponents, provideRuleContext, provideRuleContext, redraw, redraw, registerFontScaledPaddingStyles, removeChild, removeChild, removePeer, removePeer, removeRuleContext, removeSnapAlignCandidate, resizeAutoChildAttributes, resizeBy, resizeControls, resizeControlsTo, resizeFonts, resizeFonts, resizeFonts, resizeFontsTo, resizeIcons, resizePadding, resizePadding, resizeTo, resizeTo, scrollBy, scrollByPercent, scrollTo, scrollTo, scrollTo, scrollTo, scrollTo, scrollToBottom, scrollToLeft, scrollToPercent, scrollToRight, scrollToTop, sendToBack, setAccessKey, setAdaptHeightByCustomizer, setAdaptiveHeightPriority, setAdaptiveWidthPriority, setAdaptWidthByCustomizer, setAllowExternalFilters, setAlwaysManageFocusNavigation, setAlwaysShowScrollbars, setAnimateAcceleration, setAnimateFadeTime, setAnimateHideAcceleration, setAnimateHideEffect, setAnimateHideTime, setAnimateMoveAcceleration, setAnimateMoveTime, setAnimateRectAcceleration, setAnimateRectTime, setAnimateResizeAcceleration, setAnimateResizeLayoutMode, setAnimateResizeTime, setAnimateScrollAcceleration, setAnimateScrollTime, setAnimateShowAcceleration, setAnimateShowEffect, setAnimateShowTime, setAnimateTime, setAppImgDir, setAriaRole, setAriaState, setAutoChildConstructor, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildVisibility, setAutoHeight, setAutoMaskComponents, setAutoParent, setAutoPopulateData, setAutoResizeAutoChildAttributes, setAutoResizeIcons, setAutoShowParent, setAutoWidth, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBorderRadius, setBottom, setCanAcceptDrop, setCanAdaptHeight, setCanAdaptWidth, setCanDrag, setCanDragReposition, setCanDragResize, setCanDragScroll, setCanDrop, setCanDropBefore, setCanFocus, setCanHover, setCanSelectText, setChildren, setChildrenResizeSnapAlign, setChildrenSnapAlign, setChildrenSnapCenterAlign, setChildrenSnapEdgeAlign, setChildrenSnapResizeToGrid, setChildrenSnapToGrid, setComponentMaskDefaults, setContents, setContextMenu, setCorrectZoomOverflow, setCursor, setDataContext, setDataPath, setDefaultHeight, setDefaultPageSpace, setDefaultProperties, setDefaultShowCustomScrollbars, setDefaultWidth, setDefiningProperty, setDefiningPropertyNameOptions, setDisabled, setDisabledCursor, setDisableTouchScrollingForDrag, setDoubleClickDelay, setDragAppearance, setDragIntersectStyle, setDragMaskType, setDragMaxHeight, setDragMaxWidth, setDragMinHeight, setDragMinWidth, setDragOpacity, setDragRepositionAppearance, setDragRepositionCursor, setDragResizeAppearance, setDragScrollDelay, setDragStartDistance, setDragTarget, setDragTarget, setDragType, setDropTarget, setDropTarget, setDropTypes, setDropTypes, setDynamicContents, setEdgeBackgroundColor, setEdgeCenterBackgroundColor, setEdgeImage, setEdgeMarginSize, setEdgeOffset, setEdgeOpacity, setEdgeShowCenter, setEdgeSize, setEditMode, setEditMode, setEditMode, setElement, setEnableWhen, setEndLine, setExtraSpace, setFacetId, setFloatingScrollbars, setForwardSVGeventsToObject, setGroupBorderCSS, setGroupLabelBackgroundColor, setGroupLabelStyleName, setGroupPadding, setGroupTitle, setHeight, setHeight, setHeight, setHeight100, setHideUsingDisplayNone, setHoverAlign, setHoverAutoDestroy, setHoverAutoFitMaxWidth, setHoverAutoFitMaxWidth, setHoverAutoFitWidth, setHoverDelay, setHoverFocusKey, setHoverHeight, setHoverMoveWithMouse, setHoverOpacity, setHoverPersist, setHoverScreen, setHoverStyle, setHoverVAlign, setHoverWidth, setHoverWrap, setHtmlElement, setHtmlElement, setHtmlPosition, setImage, setImage, setInitHandler, setIsGroup, setIsRuleScope, setIsSnapAlignCandidate, setKeepInParentRect, setKeepInParentRect, setKeepInParentRect, setLayoutAlign, setLayoutAlign, setLeaveGroupLabelSpace, setLeavePageSpace, setLeft, setLeft, setLocateByIDOnly, setLocateChildrenBy, setLocateChildrenType, setLocatePeersBy, setLocatePeersType, setLocatorName, setLocatorParent, setLocatorParent, setLogicalStructure, setMargin, setMatchElement, setMatchElementHeight, setMatchElementWidth, setMaxHeight, setMaxWidth, setMaxZoomOverflowError, setMenuConstructor, setMinHeight, setMinNonEdgeSize, setMinWidth, setMomentumScrollMinSpeed, setMouseStillDownDelay, setMouseStillDownInitialDelay, setName, setNativeAutoHideScrollbars, setNeverUseFilters, setNoDoubleClicks, setNoDropCursor, setOpacity, setPadding, setPageLeft, setPageTop, setPanelContainer, setParentCanvas, setParentElement, setPeers, setPendingMarkerStyle, setPendingMarkerVisible, setPercentBox, setPercentSource, setPersistentMatchElement, setPointerSettings, setPointerTarget, setPosition, setPrefix, setPrintChildrenAbsolutelyPositioned, setPrintStyleName, setPrompt, setProportionalResizeModifiers, setProportionalResizing, setReceiveScrollbarEvents, setRect, setRect, setRedrawOnResize, setRelativeTabPosition, setResizeBarTarget, setResizeFrom, setResizeFrom, setRight, setRuleScope, setScrollbarConstructor, setScrollbarSize, setShadowColor, setShadowDepth, setShadowHOffset, setShadowImage, setShadowOffset, setShadowSoftness, setShadowSpread, setShadowVOffset, setShouldPrint, setShowCustomScrollbars, setShowDragShadow, setShowEdges, setShowHover, setShowHoverComponents, setShowPointer, setShowResizeBar, setShowShadow, setShowSnapGrid, setShrinkElementOnHide, setSizeMayChangeOnRedraw, setSkinImgDir, setSmoothFade, setSnapAlignCandidates, setSnapAlignCenterLineStyle, setSnapAlignEdgeLineStyle, setSnapAxis, setSnapEdge, setSnapGridLineProperties, setSnapGridStyle, setSnapHDirection, setSnapHGap, setSnapOffsetLeft, setSnapOffsetTop, setSnapOnDrop, setSnapResizeToAlign, setSnapResizeToGrid, setSnapTo, setSnapToAlign, setSnapToCenterAlign, setSnapToEdgeAlign, setSnapToGrid, setSnapVDirection, setSnapVGap, setStartLine, setStyleName, setTabIndex, setTestDataContext, setTitle, setTooltip, setTop, setTop, setUpdateTabPositionOnDraw, setUpdateTabPositionOnReparent, setUseBackMask, setUseCSSShadow, setUseDragMask, setUseImageForSVG, setUseNativeDrag, setUseOpacityFilter, setUseTouchScrolling, setValuesManager, setValuesManager, setVisibility, setVisible, setVisibleWhen, setWidth, setWidth, setWidth, setWidth100, setWorkflows, setZIndex, shouldDragScroll, show, showClickMask, showComponentMask, showComponentMask, showNextTo, showNextTo, showNextTo, showNextTo, showPendingMarker, showPrintPreview, showPrintPreview, showPrintPreview, showPrintPreview, showRecursively, startDebuggingOverflow, stopDebuggingOverflow, supportsValueDictation, supportsVoiceCommands, updateChildTabPosition, updateChildTabPositions, updateEditNode, updateHover, updateHover, updateShadow, updateTabPositionForDraw, visibleAtPoint, willAcceptDropMethods inherited from class com.smartgwt.client.widgets.BaseWidgetaddDrawHandler, addDynamicProperty, addDynamicProperty, addDynamicProperty, addDynamicProperty, applyFactoryProperties, clearDynamicProperty, completeCreation, destroy, doAddHandler, doInit, doOnRender, draw, equals, error, errorIfNotCreated, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDateArray, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsFloatArray, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getConfig, getDOM, getHandlerCount, getID, getInnerHTML, getJsObj, getOrCreateJsObj, getRef, getScClassName, hasAutoAssignedID, hasDynamicProperty, hashCode, initNativeObject, internalSetID, internalSetID, isConfigOnly, isCreated, isDrawn, isFactoryCreated, onBind, onDestroy, onDraw, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setDefaultProperties, setDragTracker, setFactoryCreated, setID, setJavaScriptObject, setLogicalStructure, setLogicalStructure, setNullProperty, setPosition, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setScClassName, toStringMethods inherited from class com.google.gwt.user.client.ui.WidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsMethods inherited from class com.google.gwt.user.client.ui.UIObjectaddStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEventMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.gwt.event.shared.HasHandlersfireEvent
- 
Constructor Details- 
Layoutpublic Layout()
- 
Layout
 
- 
- 
Method Details- 
getOrCreateRef
- 
changeAutoChildDefaultsChanges the defaults for Canvas AutoChildren namedautoChildName.- Parameters:
- autoChildName- name of an AutoChild to customize the defaults for.
- defaults- Canvas defaults to apply. These defaults override any existing properties without destroying or wiping out non-overridden properties. For usage tips on this param, see- SGWTProperties.
- See Also:
 
- 
changeAutoChildDefaultsChanges the defaults for FormItem AutoChildren namedautoChildName.- Parameters:
- autoChildName- name of an AutoChild to customize the defaults for.
- defaults- FormItem defaults to apply. These defaults override any existing properties without destroying or wiping out non-overridden properties. For usage tips on this param, see- SGWTProperties.
- See Also:
 
- 
create
- 
setAnimateMembersIf true when members are added / removed, they should be animated as they are shown or hidden in position- Parameters:
- animateMembers- New animateMembers value. Default value is null
- Returns:
- Layoutinstance, for chaining setter calls
- See Also:
 
- 
getAnimateMembersIf true when members are added / removed, they should be animated as they are shown or hidden in position- Returns:
- Current animateMembers value. Default value is null
- See Also:
 
- 
setAnimateMemberTimeIf specified this is the duration of show/hide animations when members are being shown or hidden due to being added / removed from this layout.Note : This is an advanced setting - Parameters:
- animateMemberTime- New animateMemberTime value. Default value is null
- Returns:
- Layoutinstance, for chaining setter calls
 
- 
getAnimateMemberTimeIf specified this is the duration of show/hide animations when members are being shown or hidden due to being added / removed from this layout.- Returns:
- Current animateMemberTime value. Default value is null
 
- 
setCanDropComponentsLayouts provide a default implementation of a drag and drop interaction. If you setcanAcceptDrop:true andcanDropComponents:trueon a Layout, when a droppable Canvas (canDrop:trueis dragged over the layout, it will show a dropLine (a simple insertion line) at the drop location.When the drop occurs, getDropComponent()is invoked to determine which component should be added to the layout as a member at the location calculated bygetDropPosition(). By default this method will return the current drag target. This default behavior allows existing members to be reordered or external components that haveCanvas.canDragReposition(orCanvas.canDrag) andCanvas.canDropset totrueto be added to the Layout.You can control the thickness of the dropLine via dropLineThicknessand you can customize the style using css styling in the skin file (look for .layoutDropLine in skin_styles.css for your skin).If you want to dynamically create a component to be added to the Layout in response to a drop event you can override getDropComponent(), or for entirely custom behavior override thedrop event handleras follows:final VLayout vLayout = new VLayout(); //...various layout properties... vLayout.setCanDropComponents(true); vLayout.addDropHandler(new DropHandler() { @Override public void onDrop(DropEvent event) { // create the new component Canvas newMember = new Canvas(); // add to the layout at the current drop position // (the dropLine will be showing here) vLayout.addMember(newMember, vLayout.getDropPosition()); // hide the dropLine that was automatically shown // by builtin SmartGWT methods vLayout.hideDropLine(); } });If you want to completely suppress the builtin drag and drop logic, but still receive drag and drop events for your own custom implementation, setCanvas.canAcceptDroptotrueandcanDropComponentstofalseon your Layout.Note : This is an advanced setting - Parameters:
- canDropComponents- New canDropComponents value. Default value is true
- Returns:
- Layoutinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getCanDropComponentsLayouts provide a default implementation of a drag and drop interaction. If you setcanAcceptDrop:true andcanDropComponents:trueon a Layout, when a droppable Canvas (canDrop:trueis dragged over the layout, it will show a dropLine (a simple insertion line) at the drop location.When the drop occurs, getDropComponent()is invoked to determine which component should be added to the layout as a member at the location calculated bygetDropPosition(). By default this method will return the current drag target. This default behavior allows existing members to be reordered or external components that haveCanvas.canDragReposition(orCanvas.canDrag) andCanvas.canDropset totrueto be added to the Layout.You can control the thickness of the dropLine via dropLineThicknessand you can customize the style using css styling in the skin file (look for .layoutDropLine in skin_styles.css for your skin).If you want to dynamically create a component to be added to the Layout in response to a drop event you can override getDropComponent(), or for entirely custom behavior override thedrop event handleras follows:final VLayout vLayout = new VLayout(); //...various layout properties... vLayout.setCanDropComponents(true); vLayout.addDropHandler(new DropHandler() { @Override public void onDrop(DropEvent event) { // create the new component Canvas newMember = new Canvas(); // add to the layout at the current drop position // (the dropLine will be showing here) vLayout.addMember(newMember, vLayout.getDropPosition()); // hide the dropLine that was automatically shown // by builtin SmartGWT methods vLayout.hideDropLine(); } });If you want to completely suppress the builtin drag and drop logic, but still receive drag and drop events for your own custom implementation, setCanvas.canAcceptDroptotrueandcanDropComponentstofalseon your Layout.- Returns:
- Current canDropComponents value. Default value is true
- See Also:
 
- 
setDefaultResizeBarsPolicy for whether resize bars are shown on members by default. Note that this setting changes the effect ofCanvas.showResizeBarfor members of this layout.- Parameters:
- defaultResizeBars- New defaultResizeBars value. Default value is "marked"
- Returns:
- Layoutinstance, for chaining setter calls
- See Also:
 
- 
getDefaultResizeBarsPolicy for whether resize bars are shown on members by default. Note that this setting changes the effect ofCanvas.showResizeBarfor members of this layout.- Returns:
- Current defaultResizeBars value. Default value is "marked"
- See Also:
 
- 
getDropLineLine showed to mark the drop position when components are being dragged onto this Layout. A simple Canvas typically styled via CSS. The default dropLine.styleName is "layoutDropLine".This component is an AutoChild named "dropLine". For an overview of how to use and configure AutoChildren, see Using AutoChildren.- Returns:
- Current dropLine value. Default value is null
- Throws:
- IllegalStateException- if this widget has not yet been rendered.
- See Also:
 
- 
setDropLineThicknessThickness, in pixels of the dropLine shown during drag and drop whencanDropComponentsis set totrue. See the discussion inLayoutfor more info.Note : This is an advanced setting - Parameters:
- dropLineThickness- New dropLineThickness value. Default value is 2
- Returns:
- Layoutinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getDropLineThicknesspublic int getDropLineThickness()Thickness, in pixels of the dropLine shown during drag and drop whencanDropComponentsis set totrue. See the discussion inLayoutfor more info.- Returns:
- Current dropLineThickness value. Default value is 2
- See Also:
 
- 
setEditProxyConstructorDefault class used to construct theEditProxyfor this component when the component isfirst placed into edit mode.- Overrides:
- setEditProxyConstructorin class- Canvas
- Parameters:
- editProxyConstructor- New editProxyConstructor value. Default value is "LayoutEditProxy"
- Returns:
- Layoutinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getEditProxyConstructorDefault class used to construct theEditProxyfor this component when the component isfirst placed into edit mode.- Overrides:
- getEditProxyConstructorin class- Canvas
- Returns:
- Current editProxyConstructor value. Default value is "LayoutEditProxy"
- See Also:
 
- 
setEnforcePolicyWhether the layout policy is continuously enforced as new members are added or removed and as members are resized.This setting implies that any member that resizes larger, or any added member, will take space from other members in order to allow the overall layout to stay the same size. Note : This is an advanced setting - Parameters:
- enforcePolicy- New enforcePolicy value. Default value is true
- Returns:
- Layoutinstance, for chaining setter calls
 
- 
getEnforcePolicyWhether the layout policy is continuously enforced as new members are added or removed and as members are resized.This setting implies that any member that resizes larger, or any added member, will take space from other members in order to allow the overall layout to stay the same size. - Returns:
- Current enforcePolicy value. Default value is true
 
- 
setHPolicySizing policy applied to members on horizontal axisNote : This is an advanced setting - Parameters:
- hPolicy- New hPolicy value. Default value is "fill"
- Returns:
- Layoutinstance, for chaining setter calls
 
- 
getHPolicySizing policy applied to members on horizontal axis- Returns:
- Current hPolicy value. Default value is "fill"
 
- 
setLayoutBottomMarginSpace outside of all members, on the bottom side. Defaults tolayoutMargin.Requires a manual call to setLayoutMargin()if changed on the fly.- Parameters:
- layoutBottomMargin- New layoutBottomMargin value. Default value is null
- Returns:
- Layoutinstance, for chaining setter calls
 
- 
getLayoutBottomMarginSpace outside of all members, on the bottom side. Defaults tolayoutMargin.Requires a manual call to setLayoutMargin()if changed on the fly.- Returns:
- Current layoutBottomMargin value. Default value is null
 
- 
setLayoutEndMarginEquivalent tolayoutRightMarginfor a horizontal layout, orlayoutBottomMarginfor a vertical layout.If both layoutEndMarginand the more specific properties (right/bottom margin) are both set, the more specific properties win.- Parameters:
- layoutEndMargin- New layoutEndMargin value. Default value is null
- Returns:
- Layoutinstance, for chaining setter calls
 
- 
getLayoutEndMarginEquivalent tolayoutRightMarginfor a horizontal layout, orlayoutBottomMarginfor a vertical layout.If both layoutEndMarginand the more specific properties (right/bottom margin) are both set, the more specific properties win.- Returns:
- Current layoutEndMargin value. Default value is null
 
- 
setLayoutLeftMarginSpace outside of all members, on the left-hand side. Defaults tolayoutMargin.Requires a manual call to setLayoutMargin()if changed on the fly.- Parameters:
- layoutLeftMargin- New layoutLeftMargin value. Default value is null
- Returns:
- Layoutinstance, for chaining setter calls
 
- 
getLayoutLeftMarginSpace outside of all members, on the left-hand side. Defaults tolayoutMargin.Requires a manual call to setLayoutMargin()if changed on the fly.- Returns:
- Current layoutLeftMargin value. Default value is null
 
- 
setLayoutMarginSpace outside of all members. This attribute, along withlayoutLeftMarginand related properties do not have a true setter method. If this method is called after the layout instance has been created, it will force a reflow of the layout and pick up changes to all of the layout*Margin properties.- Parameters:
- layoutMargin- New layoutMargin value. Default value is null
- Returns:
- Layoutinstance, for chaining setter calls
- See Also:
 
- 
getLayoutMarginSpace outside of all members. This attribute, along withlayoutLeftMarginand related properties do not have a true setter method. If this method is called after the layout instance has been created, it will force a reflow of the layout and pick up changes to all of the layout*Margin properties.- Returns:
- Current layoutMargin value. Default value is null
- See Also:
 
- 
setLayoutRightMarginSpace outside of all members, on the right-hand side. Defaults tolayoutMargin.Requires a manual call to setLayoutMargin()if changed on the fly.- Parameters:
- layoutRightMargin- New layoutRightMargin value. Default value is null
- Returns:
- Layoutinstance, for chaining setter calls
 
- 
getLayoutRightMarginSpace outside of all members, on the right-hand side. Defaults tolayoutMargin.Requires a manual call to setLayoutMargin()if changed on the fly.- Returns:
- Current layoutRightMargin value. Default value is null
 
- 
setLayoutStartMarginEquivalent tolayoutLeftMarginfor a horizontal layout, orlayoutTopMarginfor a vertical layout.If both layoutStartMarginand the more specific properties (top/left margin) are both set, the more specific properties win.- Parameters:
- layoutStartMargin- New layoutStartMargin value. Default value is null
- Returns:
- Layoutinstance, for chaining setter calls
 
- 
getLayoutStartMarginEquivalent tolayoutLeftMarginfor a horizontal layout, orlayoutTopMarginfor a vertical layout.If both layoutStartMarginand the more specific properties (top/left margin) are both set, the more specific properties win.- Returns:
- Current layoutStartMargin value. Default value is null
 
- 
setLayoutTopMarginSpace outside of all members, on the top side. Defaults tolayoutMargin.Requires a manual call to setLayoutMargin()if changed on the fly.- Parameters:
- layoutTopMargin- New layoutTopMargin value. Default value is null
- Returns:
- Layoutinstance, for chaining setter calls
 
- 
getLayoutTopMarginSpace outside of all members, on the top side. Defaults tolayoutMargin.Requires a manual call to setLayoutMargin()if changed on the fly.- Returns:
- Current layoutTopMargin value. Default value is null
 
- 
setLeaveScrollbarGapWhether to leave a gap for a vertical scrollbar even when one is not actually present.This setting avoids the layout resizing all members when the vertical scrollbar is introduced or removed, which can avoid unnecessary screen shifting and improve performance. - Parameters:
- leaveScrollbarGap- New leaveScrollbarGap value. Default value is false
- Returns:
- Layoutinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getLeaveScrollbarGapWhether to leave a gap for a vertical scrollbar even when one is not actually present.This setting avoids the layout resizing all members when the vertical scrollbar is introduced or removed, which can avoid unnecessary screen shifting and improve performance. - Returns:
- Current leaveScrollbarGap value. Default value is false
 
- 
setLocateMembersByPart of theAutomatedTestingsystem, strategy to use when generated locators for members from within this Layout's members array.Note : This is an advanced setting - Parameters:
- locateMembersBy- New locateMembersBy value. Default value is null
- Returns:
- Layoutinstance, for chaining setter calls
 
- 
getLocateMembersByPart of theAutomatedTestingsystem, strategy to use when generated locators for members from within this Layout's members array.- Returns:
- Current locateMembersBy value. Default value is null
 
- 
setLocateMembersTypeLocatorTypeStrategyto use when finding members within this layout.Note : This is an advanced setting - Parameters:
- locateMembersType- New locateMembersType value. Default value is null
- Returns:
- Layoutinstance, for chaining setter calls
 
- 
getLocateMembersTypeLocatorTypeStrategyto use when finding members within this layout.- Returns:
- Current locateMembersType value. Default value is null
 
- 
setManagePercentBreadthIf set, a Layout with breadthPolicy:"fill" will specially interpret a percentage breadth on a member as a percentage of available space excluding thelayoutMargin. If false, percentages work exactly as for a non-member, with layoutMargins, if any, ignored.- Parameters:
- managePercentBreadth- New managePercentBreadth value. Default value is true
- Returns:
- Layoutinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getManagePercentBreadthIf set, a Layout with breadthPolicy:"fill" will specially interpret a percentage breadth on a member as a percentage of available space excluding thelayoutMargin. If false, percentages work exactly as for a non-member, with layoutMargins, if any, ignored.- Returns:
- Current managePercentBreadth value. Default value is true
 
- 
setMemberOverlapNumber of pixels by which each member should overlap the preceding member, used for creating an "stack of cards" appearance for the members of a Layout.memberOverlapcan be used in conjunction withstackZIndexto create a particular visual stacking order.Note that overlap of individual members can be accomplished with a negative setting for Canvas.extraSpace.- Parameters:
- memberOverlap- New memberOverlap value. Default value is 0
- Returns:
- Layoutinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getMemberOverlappublic int getMemberOverlap()Number of pixels by which each member should overlap the preceding member, used for creating an "stack of cards" appearance for the members of a Layout.memberOverlapcan be used in conjunction withstackZIndexto create a particular visual stacking order.Note that overlap of individual members can be accomplished with a negative setting for Canvas.extraSpace.- Returns:
- Current memberOverlap value. Default value is 0
- See Also:
 
- 
setMembersAn array of canvases that will be contained within this layout. You can set the following properties on these canvases (in addition to the standard component properties):- layoutAlign-- specifies the member's alignment along the breadth axis; valid values are "top", "center" and "bottom" for a horizontal layout and "left", "center" and "right" for a vertical layout (see- defaultLayoutAlignfor default implementation.)
- showResizeBar-- set to true to show a resize bar (default is false)
 layout policy.Note that it is valid to have null slots in the provided membersArray, and the Layout will ignore those slots. This can be useful to keep code compact, for example, when constructing themembersArray, you might use an expression that either returns a component or null depending on whether the component should be present. If the expression returns null, the null slot will be ignored by the Layout.
 If this method is called after the component has been drawn/initialized: Display a new set of members in this layout. Equivalent to calling removeMembers() then addMembers(). Note that the new members may include members already present, in which case they will be reordered / integrated with any other new members passed into this method.- Parameters:
- members- New members value. Default value is null
- Returns:
- Layoutinstance, for chaining setter calls
 
- 
getMembersAn array of canvases that will be contained within this layout. You can set the following properties on these canvases (in addition to the standard component properties):- layoutAlign-- specifies the member's alignment along the breadth axis; valid values are "top", "center" and "bottom" for a horizontal layout and "left", "center" and "right" for a vertical layout (see- defaultLayoutAlignfor default implementation.)
- showResizeBar-- set to true to show a resize bar (default is false)
 layout policy.Note that it is valid to have null slots in the provided membersArray, and the Layout will ignore those slots. This can be useful to keep code compact, for example, when constructing themembersArray, you might use an expression that either returns a component or null depending on whether the component should be present. If the expression returns null, the null slot will be ignored by the Layout.- Returns:
- Get the Array of members. Default value is null
 
- 
setMembersMarginSpace between each member of the layout.Requires a manual call to reflow()if changed on the fly.- Parameters:
- membersMargin- New membersMargin value. Default value is 0
- Returns:
- Layoutinstance, for chaining setter calls
- See Also:
 
- 
getMembersMarginpublic int getMembersMargin()Space between each member of the layout.Requires a manual call to reflow()if changed on the fly.- Returns:
- Current membersMargin value. Default value is 0
- See Also:
 
- 
setMinBreadthMemberSet this property to cause the layout to assign the breadths of other members as if the available breadth is actually wide enough to accommodate theminBreadthMember(even though the Layout might not actually be that wide, and may overflow its assigned size along the breadth axis due to the breadth of theminBreadthMember.Without this property set, members of a layout aren't ever expanded in breadth (by the layout) to fit an overflow of the layout along the breadth axis. Setting this property will make sure all members (other than the one specified) get expanded to fill the full visual breadth of the layout (assuming they are configured to use 100% layout breadth). Note : This is an advanced setting - Parameters:
- minBreadthMember- New minBreadthMember value. Default value is null
- Returns:
- Layoutinstance, for chaining setter calls
- See Also:
 
- 
setMinBreadthMemberSet this property to cause the layout to assign the breadths of other members as if the available breadth is actually wide enough to accommodate theminBreadthMember(even though the Layout might not actually be that wide, and may overflow its assigned size along the breadth axis due to the breadth of theminBreadthMember.Without this property set, members of a layout aren't ever expanded in breadth (by the layout) to fit an overflow of the layout along the breadth axis. Setting this property will make sure all members (other than the one specified) get expanded to fill the full visual breadth of the layout (assuming they are configured to use 100% layout breadth). Note : This is an advanced setting - Parameters:
- minBreadthMember- New minBreadthMember value. Default value is null
- Returns:
- Layoutinstance, for chaining setter calls
- See Also:
 
- 
setMinBreadthMemberSet this property to cause the layout to assign the breadths of other members as if the available breadth is actually wide enough to accommodate theminBreadthMember(even though the Layout might not actually be that wide, and may overflow its assigned size along the breadth axis due to the breadth of theminBreadthMember.Without this property set, members of a layout aren't ever expanded in breadth (by the layout) to fit an overflow of the layout along the breadth axis. Setting this property will make sure all members (other than the one specified) get expanded to fill the full visual breadth of the layout (assuming they are configured to use 100% layout breadth). Note : This is an advanced setting - Parameters:
- minBreadthMember- New minBreadthMember value. Default value is null
- Returns:
- Layoutinstance, for chaining setter calls
- See Also:
 
- 
setMinMemberLengthMinimum size, in pixels, below which flexible-sized members should never be shrunk, even if this requires the Layout to overflow. Note that this property only applies along the length axis of the Layout, and has no affect on breadth.Does not apply to members given a fixed size in pixels - such members will never be shrunk below their specified size in general. - Parameters:
- minMemberLength- New minMemberLength value. Default value is 1
- Returns:
- Layoutinstance, for chaining setter calls
- See Also:
 
- 
getMinMemberLengthpublic int getMinMemberLength()Minimum size, in pixels, below which flexible-sized members should never be shrunk, even if this requires the Layout to overflow. Note that this property only applies along the length axis of the Layout, and has no affect on breadth.Does not apply to members given a fixed size in pixels - such members will never be shrunk below their specified size in general. - Returns:
- Current minMemberLength value. Default value is 1
- See Also:
 
- 
setMinMemberSizeDeprecated.use the more intuitively namedminMemberLengthSeeminMemberLength.- Parameters:
- minMemberSize- New minMemberSize value. Default value is 1
- Returns:
- Layoutinstance, for chaining setter calls
 
- 
getMinMemberSizepublic int getMinMemberSize()Deprecated.use the more intuitively namedminMemberLengthSeeminMemberLength.- Returns:
- Current minMemberSize value. Default value is 1
 
- 
setOverflowA Layout may overflow if it has one or more members with a fixed width or height, or that themselves overflow. For details on member sizing seeLayoutPolicy.Note that for overflow: "auto", "scroll", or "visible", members exceeding the Layout's specified breadth but falling short of its overflow breadth will keep the alignment set via defaultLayoutAlignorCanvas.layoutAlign.- Overrides:
- setOverflowin class- Canvas
- Parameters:
- overflow- New overflow value. Default value is "visible"
- Returns:
- Layoutinstance, for chaining setter calls
- See Also:
 
- 
getOverflowA Layout may overflow if it has one or more members with a fixed width or height, or that themselves overflow. For details on member sizing seeLayoutPolicy.Note that for overflow: "auto", "scroll", or "visible", members exceeding the Layout's specified breadth but falling short of its overflow breadth will keep the alignment set via defaultLayoutAlignorCanvas.layoutAlign.- Overrides:
- getOverflowin class- Canvas
- Returns:
- Current overflow value. Default value is "visible"
- See Also:
- 
- Canvas.getOverflow()
- com.smartgwt.client.widgets.layout.Layout#getMinBreadthMember
 
 
- 
setPaddingAsLayoutMarginIf this widget has padding specified (asthis.paddingor in the CSS style applied to this layout), should it show up as space outside the members, similar to layoutMargin?If this setting is false, padding will not affect member positioning (as CSS padding normally does not affect absolutely positioned children). Leaving this setting true allows a designer to more effectively control layout purely from CSS. Note that layoutMarginif specified, takes precedence over this value.Note : This is an advanced setting - Parameters:
- paddingAsLayoutMargin- New paddingAsLayoutMargin value. Default value is true
- Returns:
- Layoutinstance, for chaining setter calls
 
- 
getPaddingAsLayoutMarginIf this widget has padding specified (asthis.paddingor in the CSS style applied to this layout), should it show up as space outside the members, similar to layoutMargin?If this setting is false, padding will not affect member positioning (as CSS padding normally does not affect absolutely positioned children). Leaving this setting true allows a designer to more effectively control layout purely from CSS. Note that layoutMarginif specified, takes precedence over this value.- Returns:
- Current paddingAsLayoutMargin value. Default value is true
 
- 
setPlaceHolderDefaultsIfthis.showDragPlaceHolderis true, this defaults object determines the default appearance of the placeholder displayed when the user drags a widget out of this layout.
 Default value for this property sets the placeholderstyleNameto"layoutPlaceHolder"
 To modify this object, use Class.changeDefaults()- Parameters:
- placeHolderDefaults- New placeHolderDefaults value. Default value is null
- Returns:
- Layoutinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
setPlaceHolderPropertiesIfthis.showDragPlaceHolderis true, this properties object can be used to customize the appearance of the placeholder displayed when the user drags a widget out of this layout.- Parameters:
- placeHolderProperties- New placeHolderProperties value. Default value is null
- Returns:
- Layoutinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
- See Also:
 
- 
getResizeBarNote : This API is non-functional (always returns null) and exists only to make you aware that this MultiAutoChild exists. SeeUsing AutoChildrenfor details.A MultiAutoChild created to resize members of this Layout.A resize bar will be created for any member of this Layoutthat hasshowResizeBarset totrue. Resize bars will be instances of the class specified byresizeBarClassby default, and will automatically be sized to the member's breadth, and to the thickness specified byresizeBarSize.To customize the appearance or behavior of resizeBars within some layout a custom resize bar class can be created by subclassing SplitbarorImgSplitbarand settingresizeBarClassorresizeBarConstructorto this custom class. Alternatively,Canvas.setAutoChildProperties(java.lang.String, com.smartgwt.client.widgets.Canvas)may be called to set resizeBar properties:final Splitbar resizeBarProperties = new Splitbar(); //... layout.setAutoChildProperties("resizeBar", resizeBarProperties);SeeAutoChildUsagefor more information.If you create a custom resize bar class in Java, enable Reflectionto allow it to be used.Alternatively, you can use the SmartClient class system to create a simple SmartClient subclass of either SplitbarorImgSplitbarfor use with this API - see theSkinning Guidefor details.The built-in Splitbarclass supports drag resizing of its target member, and clicking on the bar with a mouse to collapse/uncollapse the target member.- Returns:
- null
 
- 
setResizeBarClassDefault class to use for creatingresizeBars. This may be overridden byresizeBarConstructor.Classes that are valid by default are Splitbar,ImgSplitbar, andSnapbar.Note : This is an advanced setting - Parameters:
- resizeBarClass- New resizeBarClass value. Default value is "Splitbar"
- Returns:
- Layoutinstance, for chaining setter calls
- See Also:
 
- 
getResizeBarClassDefault class to use for creatingresizeBars. This may be overridden byresizeBarConstructor.Classes that are valid by default are Splitbar,ImgSplitbar, andSnapbar.- Returns:
- Current resizeBarClass value. Default value is "Splitbar"
- See Also:
 
- 
setResizeBarSizeThickness of the resizeBar in pixels.Note : This is an advanced setting - Parameters:
- resizeBarSize- New resizeBarSize value. Default value is 7
- Returns:
- Layoutinstance, for chaining setter calls
 
- 
getResizeBarSizepublic int getResizeBarSize()Thickness of the resizeBar in pixels.- Returns:
- Current resizeBarSize value. Default value is 7
 
- 
setReverseOrderReverse the order of stacking for this Layout, so that the last member is shown first.Requires a manual call to reflow()if changed on the fly.In RTL mode, for horizontal Layouts the value of this flag will be flipped during initialization. - Parameters:
- reverseOrder- New reverseOrder value. Default value is false
- Returns:
- Layoutinstance, for chaining setter calls
 
- 
getReverseOrderReverse the order of stacking for this Layout, so that the last member is shown first.Requires a manual call to reflow()if changed on the fly.In RTL mode, for horizontal Layouts the value of this flag will be flipped during initialization. - Returns:
- Current reverseOrder value. Default value is false
 
- 
setShowDragPlaceHolderIf set to true, when a member is dragged out of layout, a visible placeholder canvas will be displayed in place of the dragged widget for the duration of the drag and drop interaction.- Parameters:
- showDragPlaceHolder- New showDragPlaceHolder value. Default value is null
- Returns:
- Layoutinstance, for chaining setter calls
- See Also:
 
- 
getShowDragPlaceHolderIf set to true, when a member is dragged out of layout, a visible placeholder canvas will be displayed in place of the dragged widget for the duration of the drag and drop interaction.- Returns:
- Current showDragPlaceHolder value. Default value is null
- See Also:
 
- 
setShowDropLinesControls whether to show a drop-indicator during a drag and drop operation. Set to false if you either don't want to show drop-lines, or plan to create your own.- Parameters:
- showDropLines- New showDropLines value. Default value is null
- Returns:
- Layoutinstance, for chaining setter calls
- See Also:
 
- 
getShowDropLinesControls whether to show a drop-indicator during a drag and drop operation. Set to false if you either don't want to show drop-lines, or plan to create your own.- Returns:
- Current showDropLines value. Default value is null
- See Also:
 
- 
setStackZIndexFor use in conjunction withmemberOverlap, controls the z-stacking order of members.If set to "lastOnTop", members stack from the first member at bottom to the last member at top. If set to "firstOnTop", members stack from the last member at bottom to the first member at top. - Parameters:
- stackZIndex- New stackZIndex value. Default value is null
- Returns:
- Layoutinstance, for chaining setter calls
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
getStackZIndexFor use in conjunction withmemberOverlap, controls the z-stacking order of members.If set to "lastOnTop", members stack from the first member at bottom to the last member at top. If set to "firstOnTop", members stack from the last member at bottom to the first member at top. - Returns:
- Current stackZIndex value. Default value is null
 
- 
setVerticalShould this layout appear with members stacked vertically or horizontally. Defaults tofalseif unspecified.- Parameters:
- vertical- New vertical value. Default value is null
- Returns:
- Layoutinstance, for chaining setter calls
 
- 
getVerticalShould this layout appear with members stacked vertically or horizontally. Defaults tofalseif unspecified.- Returns:
- Current vertical value. Default value is null
 
- 
setVPolicySizing policy applied to members on vertical axisNote : This is an advanced setting - Parameters:
- vPolicy- New vPolicy value. Default value is "fill"
- Returns:
- Layoutinstance, for chaining setter calls
 
- 
getVPolicySizing policy applied to members on vertical axis- Returns:
- Current vPolicy value. Default value is "fill"
 
- 
getChildTabPositionLayouts ensure children are ordered in the tab-sequence with members being reachable first (in member order), then any non-member children.As with Canvas.getChildTabPosition()ifCanvas.setRelativeTabPosition()was called explicitly called for some child, it will be respected over member order.- Overrides:
- getChildTabPositionin class- Canvas
- Parameters:
- child- The child for which the tab position should be returned
- Returns:
- tab position of the child within this layout.
 
- 
getDropPositionpublic int getDropPosition()Get the position a new member would be dropped. This drop position switches in the middle of each member, and both edges (before beginning, after end) are legal drop positionsUse this method to obtain the drop position for e.g. a custom drop handler. - Returns:
- the position a new member would be dropped
 
- 
getMemberGiven a numerical index or a membernameor memberID, return a pointer to the appropriate member. If passed a member Canvas, just returns it.Note that if more than one member has the same name, passing in anamehas an undefined result.- Parameters:
- memberID- identifier for the required member
- Returns:
- member widget
- See Also:
 
- 
getMemberDefaultBreadthReturn the breadth for a member of this layout which either didn't specify a breadth or specified a percent breadth withmanagePercentBreadth:true.Called only for Layouts which have a layout policyfor the breadth axis of "fill", since Layouts with a breadth policy of "none" leave all member breadths alone.- Parameters:
- member- Component to be sized
- defaultBreadth- Value of the currently calculated member breadth. This may be returned verbatim or manipulated in this method.
- See Also:
 
- 
getMemberNumberGiven a member Canvas or memberIDorname, return the index of that member within this layout's members array. If passed a number, just returns it.Note that if more than one member has the same name, passing in anamehas an undefined result.- Parameters:
- memberID- identifier for the required member
- Returns:
- index of the member canvas (or -1 if not found)
- See Also:
 
- 
getMembersLengthConvenience method to return the number of members this Layout has- Returns:
- the number of members this Layout has
 
- 
hasMemberReturns true if the layout includes the specified canvas.- Parameters:
- canvas- the canvas to check for
- Returns:
- true if the layout includes the specified canvas
 
- 
hideDropLinepublic void hideDropLine()Calling this method hides the dropLine shown during a drag and drop interaction with a Layout that hascanDropComponentsset to true. This method is only useful for custom implementations ofdrop()as the default implementation calls this method automatically.
- 
hideMemberHide the specified member, firing the specified callback when the hide is complete.Members can always be directly hidden via member.hide(), but ifanimationis enabled, animation will only occur if hideMember() is called to hide the member.- Parameters:
- member- Member to hide
 
- 
hideMemberHide the specified member, firing the specified callback when the hide is complete.Members can always be directly hidden via member.hide(), but ifanimationis enabled, animation will only occur if hideMember() is called to hide the member.- Parameters:
- member- Member to hide
- callback- callback to fire when the member is hidden.
 
- 
layoutIsDirtypublic boolean layoutIsDirty()Returns whether there is a pending reflow of the members of the layout.Modifying the set of members, resizing members or changing layout settings will cause a recalculation of member sizes to be scheduled. The recalculation is delayed so that it is not performed redundantly if multiple changes are made in a row. To force immediate recalculation of new member sizes and resizing of members, call reflowNow().- Returns:
- whether the layout is currently dirty
 
- 
addMembersChangedHandlerAdd a membersChanged handler.Fires once at initialization if the layout has any initial members, and then fires whenever members are added, removed or reordered. - Specified by:
- addMembersChangedHandlerin interface- HasMembersChangedHandlers
- Parameters:
- handler- the membersChanged handler
- Returns:
- HandlerRegistrationused to remove this handler
 
- 
reflowpublic void reflow()Layout members according to current settings.Members will reflow automatically when the layout is resized, members resize, the list of members changes or members change visibility. It is only necessary to manually call reflow()after changing settings on the layout, for example,layout.reverseOrder.
- 
reflowLayout members according to current settings.Members will reflow automatically when the layout is resized, members resize, the list of members changes or members change visibility. It is only necessary to manually call reflow()after changing settings on the layout, for example,layout.reverseOrder.- Parameters:
- reason- reason reflow() had to be called (appear in logs if enabled)
 
- 
reflowNowpublic void reflowNow()Layout members according to current settings, immediately.
 Generally, when changes occur that require a layout to reflow (such as members being shown or hidden), the Layout will reflow only after a delay, so that multiple changes cause only one reflow. To remove this delay for cases where it is not helpful, reflowNow() can be called.
- 
removeMemberRemoves the specified member from the layout. If it has a resize bar, the bar will be destroyed.- Parameters:
- member- the canvas to be removed from the layout
 
- 
removeMembersRemoves the specified members from the layout. If any of the removed members have resize bars, the bars will be destroyed.- Parameters:
- members- array of members to be removed, or single member
 
- 
removeMembersRemoves the specified members from the layout. If any of the removed members have resize bars, the bars will be destroyed.- Parameters:
- members- array of members to be removed, or single member
 
- 
reorderMemberpublic void reorderMember(int memberNum, int newPosition) Shift a member of the layout to a new position- Parameters:
- memberNum- current position of the member to move to a new position
- newPosition- new position to move the member to
 
- 
reorderMemberspublic void reorderMembers(int start, int end, int newPosition) Move a range of members to a new position- Parameters:
- start- beginning of range of members to move
- end- end of range of members to move, non-inclusive
- newPosition- new position to move the members to
 
- 
replaceMemberReplaces an existing member of the layout with a different widget. The new member will be assigned the width and height of the existing member (including sizes configured via end user resize), so no reflow will occur unless the new component has visible overflow and it differs from that of the widget it replaced.- Parameters:
- oldMember- an existing member of the layout to be replaced
- newMember- a different widget that should replace- oldMember
- See Also:
 
- 
setVisibleMemberHide all other members and make the single parameter member visible.- Parameters:
- member- member to show
 
- 
showMemberShow the specified member, firing the specified callback when the show is complete.Members can always be directly shown via member.show(), but ifanimationis enabled, animation will only occur if showMember() is called to show the member.- Parameters:
- member- Member to show
 
- 
showMemberShow the specified member, firing the specified callback when the show is complete.Members can always be directly shown via member.show(), but ifanimationis enabled, animation will only occur if showMember() is called to show the member.- Parameters:
- member- Member to show
- callback- action to fire when the member has been shown
 
- 
setDefaultPropertiesClass level method to set the default properties of this class. If set, then all existing and subsequently created instances of this class will automatically have default properties corresponding to the properties set on the SmartGWT class instance passed to this function before its underlying SmartClient JS object was created. This is a powerful feature that eliminates the need for users to create a separate hierarchy of subclasses that only alter the default properties of this class. Can also be used for skinning / styling purposes.Note: This method is intended for setting default attributes only and will affect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead. Calling this method after instances have been created can result in undefined behavior, since it bypasses any setters and a class instance may have already examined a particular property and not be expecting any changes through this route. - Parameters:
- layoutProperties- properties that should be used as new defaults when instances of this class are created
- See Also:
 
- 
onInitprotected void onInit()
- 
onInit_Layoutprotected void onInit_Layout()
- 
getDropComponent
- 
addMembersAdd one or more canvases to the layout. NOTE: depending on the layout policy, adding a new member may cause existing members to resize.- Parameters:
- newMembers- canvases to be added
 
- 
addMembersAdd one or more canvases to the layout at specific positions. NOTE: depending on the layout policy, adding a new member may cause existing members to resize.- Parameters:
- newMembers- array of canvases to be added
- position- position to add newMembers position
 
- 
addMemberAdd a canvas to the layout, optionally at a specific position.- Parameters:
- widget- the canvas object to be added to the layout
 
- 
addMemberAdd a canvas to the layout, optionally at a specific position.- Parameters:
- component- the canvas object to be added to the layout
 
- 
addMember
- 
addMemberAdd a canvas to the layout, optionally at a specific position.- Parameters:
- component- the canvas object to be added to the layout
- position- the position in the layout to place newMember (starts with 0); if omitted, it will be added at the last position
 
- 
addMemberPreCreate
- 
addMemberPostCreate
- 
addMemberPreCreate
- 
addMemberPostCreate
- 
setDefaultLayoutAlignSpecifies the default alignment for layout members on the breadth axis. Can be overridden on a per-member basis by settinglayoutAlign.
 If unset, default member layout alignment will be "top" for a horizontal layout, and left for a vertical layout.- Parameters:
- alignment- defaultLayoutAlign Default value is null
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
setDefaultLayoutAlignSpecifies the default alignment for layout members on the breadth axis. Can be overridden on a per-member basis by settinglayoutAlign.
 If unset, default member layout alignment will be "top" for a horizontal layout, and left for a vertical layout.- Parameters:
- alignment- defaultLayoutAlign Default value is null
- Throws:
- IllegalStateException- this property cannot be changed after the component has been created
 
- 
setDropLineProperties- Throws:
- IllegalStateException
 
- 
setAlignAlignment of all members in this Layout on the length axis. Defaults to "top" for vertical Layouts, and "left" for horizontal Layouts.
 Horizontal layouts should only be changed to Alignment, and vertical layouts to VerticalAlignment, otherwise they will be considered invalid values, and assigning an invalid value here will log a warning to the Developer Console.
 For alignment on the breadth axis, seedefaultLayoutAlignandlayoutAlign.
- 
setAlignAlignment of all members in this Layout on the length axis. Defaults to "top" for vertical Layouts, and "left" for horizontal Layouts.
 Horizontal layouts should only be changed to Alignment, and vertical layouts to VerticalAlignment, otherwise they will be considered invalid values, and assigning an invalid value here will log a warning to the Developer Console.
 For alignment on the breadth axis, seedefaultLayoutAlignandlayoutAlign.- Parameters:
- alignment- alignment Default value is null
 
- 
getMemberGiven a numerical index or a member ID, return a pointer to the appropriate member.If passed a member Canvas, just returns it. - Parameters:
- index- index for the member
- Returns:
- member widget
 
- 
getMemberNumberGiven a member Canvas or member ID, return the index of that member within this layout's members arrayIf passed a number, just returns it. - Parameters:
- member- the member
- Returns:
- index of the member canvas (or -1 if not found)
 
- 
revealChildReveals the child or member Canvas passed in by showing it if it is currently hidden. NOTE: This is an override point.- Overrides:
- revealChildin class- Canvas
- Parameters:
- childID- the global ID of the child Canvas to reveal
 
- 
revealChildReveals the child or member Canvas passed in by showing it if it is currently hidden NOTE: This is an override point.- Overrides:
- revealChildin class- Canvas
- Parameters:
- child- the child Canvas to reveal
 
- 
setLogicalStructureSetter implementing theLogicalStructureinterface, which supports Eclipse's logical structure debugging facility.
- 
getLogicalStructureGetter implementing theLogicalStructureinterface, which supports Eclipse's logical structure debugging facility.- Specified by:
- getLogicalStructurein interface- LogicalStructure
- Overrides:
- getLogicalStructurein class- Canvas
 
 
- 
minMemberLength