public class TileLayout extends Canvas
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
config, configOnly, factoryCreated, factoryProperties, id, nativeObject, scClassName
DEBUG_ID_PREFIX
Constructor and Description |
---|
TileLayout() |
TileLayout(JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
void |
addTile(Canvas tile)
Add a tile to the layout, dynamically.
|
void |
addTile(Canvas tile,
java.lang.Integer index)
Add a tile to the layout, dynamically.
|
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
Canvas defaults)
Changes the defaults for Canvas AutoChildren named
autoChildName . |
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
FormItem defaults)
Changes the defaults for FormItem AutoChildren named
autoChildName . |
protected JavaScriptObject |
create() |
java.lang.Boolean |
getAnimateTileChange()
If set, tiles animate to their new positions when a tile is added, removed, or reordered via drag and drop.
|
java.lang.Boolean |
getAutoWrapLines()
When
LayoutPolicy is "flow", should we automatically start a new line when there's not
enough room to fit the next tile on the same line? |
DragDataAction |
getDragDataAction()
Indicates what to do with data dragged into another DataBoundComponent.
|
Canvas |
getDragLine()
Canvas used to display a drop indicator when a another canvas is dragged over this widget.
|
java.lang.Boolean |
getExpandMargins()
With
LayoutPolicy :"fit", should margins be expanded so that tiles fill the available
space in the TileLayout on the breadth axis? This can also affect tileWidth or tileHeight . |
java.lang.Integer |
getLayoutMargin()
A margin left around the outside of all tiles.
|
com.smartgwt.logicalstructure.core.LogicalStructureObject |
getLogicalStructure()
Getter implementing the
LogicalStructure interface,
which supports Eclipse's logical structure debugging facility. |
static TileLayout |
getOrCreateRef(JavaScriptObject jsObj) |
Orientation |
getOrientation()
Direction of tiling.
|
Overflow |
getOverflow()
Normal
Overflow settings can be used on TileLayouts, for example, an overflow:auto
TileLayout will scroll if members exceed its specified size, whereas an overflow:visible TileLayout will grow to
accommodate members. |
java.lang.Boolean |
getPaddingAsLayoutMargin()
If this widget has padding specified (as
this.padding or in the
CSS style applied to this layout), should it show up as space outside the members, similar to layoutMargin? |
Canvas |
getTile(int index)
Retrieve a tile by index.
|
java.lang.Integer |
getTileHeight()
Height of each tile in pixels.
|
java.lang.Integer |
getTileHMargin()
Horizontal margin in between tiles.
|
int |
getTileMargin()
Margin in between tiles.
|
int |
getTileSize()
Size of each tile in pixels.
|
java.lang.Integer |
getTilesPerLine()
Number of tiles to show in each line.
|
java.lang.Integer |
getTileVMargin()
Vertical margin in between tiles.
|
java.lang.Integer |
getTileWidth()
Width of each tile in pixels.
|
void |
layoutTiles()
Forces layout out the tiles
|
boolean |
removeTile(Canvas tile)
Remove a tile from the layout.
|
boolean |
removeTile(int tileIndex)
Remove a tile from the layout.
|
boolean |
removeTile(java.lang.String tileID)
Remove a tile from the layout.
|
void |
setAnimateTileChange(java.lang.Boolean animateTileChange)
If set, tiles animate to their new positions when a tile is added, removed, or reordered via drag and drop.
|
void |
setAutoWrapLines(java.lang.Boolean autoWrapLines)
When
LayoutPolicy is "flow", should we automatically start a new line when there's not
enough room to fit the next tile on the same line? |
static void |
setDefaultProperties(TileLayout tileLayoutProperties)
Class level method to set the default properties of this class.
|
void |
setDragDataAction(DragDataAction dragDataAction)
Indicates what to do with data dragged into another DataBoundComponent.
|
void |
setExpandMargins(java.lang.Boolean expandMargins)
With
LayoutPolicy :"fit", should margins be expanded so that tiles fill the available
space in the TileLayout on the breadth axis? This can also affect tileWidth or tileHeight . |
void |
setLayoutMargin(java.lang.Integer layoutMargin)
A margin left around the outside of all tiles.
|
void |
setLayoutPolicy(TileLayoutPolicy layoutPolicy)
Policy for laying out tiles.
|
com.smartgwt.logicalstructure.core.LogicalStructureObject |
setLogicalStructure(com.smartgwt.logicalstructure.widgets.tile.TileLayoutLogicalStructure s)
Setter implementing the
LogicalStructure interface,
which supports Eclipse's logical structure debugging facility. |
void |
setOrientation(Orientation orientation)
Direction of tiling.
|
void |
setOverflow(Overflow overflow)
Normal
Overflow settings can be used on TileLayouts, for example, an overflow:auto
TileLayout will scroll if members exceed its specified size, whereas an overflow:visible TileLayout will grow to
accommodate members. |
void |
setPaddingAsLayoutMargin(java.lang.Boolean paddingAsLayoutMargin)
If this widget has padding specified (as
this.padding or in the
CSS style applied to this layout), should it show up as space outside the members, similar to layoutMargin? |
void |
setTileHeight(java.lang.Integer tileHeight)
Height of each tile in pixels.
|
void |
setTileHMargin(java.lang.Integer tileHMargin)
Horizontal margin in between tiles.
|
void |
setTileMargin(int tileMargin)
Margin in between tiles.
|
void |
setTiles(Canvas... tiles)
List of tiles to lay out.
|
void |
setTileSize(int tileSize)
Size of each tile in pixels.
|
void |
setTilesPerLine(java.lang.Integer tilesPerLine)
Number of tiles to show in each line.
|
void |
setTileVMargin(java.lang.Integer tileVMargin)
Vertical margin in between tiles.
|
void |
setTileWidth(java.lang.Integer tileWidth)
Width of each tile in pixels.
|
addChild, addChild, addChild, addChild, addChild, 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, addScrolledHandler, addShowContextMenuHandler, addStyleName, addVisibilityChangedHandler, adjustForContent, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, 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, asSGWTComponent, blur, bringToFront, clear, clickMaskUp, clickMaskUp, contains, contains, containsEvent, containsFocus, containsPoint, containsPoint, deparent, depeer, disable, enable, encloses, focus, focusInNextTabElement, focusInPreviousTabElement, getAbsoluteLeft, getAbsoluteTop, getAccessKey, getAlwaysShowScrollbars, getAnimateAcceleration, getAnimateFadeTime, getAnimateHideAcceleration, getAnimateHideTime, getAnimateMoveAcceleration, getAnimateMoveTime, getAnimateRectAcceleration, getAnimateRectTime, getAnimateResizeAcceleration, getAnimateResizeTime, getAnimateScrollAcceleration, getAnimateScrollTime, getAnimateShowAcceleration, getAnimateShowEffect, getAnimateShowTime, getAnimateTime, getAppImgDir, getAriaRole, getAutoDraw, getAutoMaskComponents, getAutoShowParent, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorder, getBottom, getById, getByJSObject, getByLocalId, getCanAcceptDrop, getCanDrag, getCanDragReposition, getCanDragResize, getCanDragScroll, getCanDrop, getCanDropBefore, getCanFocus, getCanHover, getCanSelectText, getCanvasAutoChild, getCanvasItem, getChildren, getChildrenSnapResizeToGrid, getChildrenSnapToGrid, getClassName, getComponentMask, getComponentMaskDefaults, getContentElement, getContents, getContextMenu, getCursor, getDataPath, getDefaultHeight, getDefaultWidth, getDestroyed, getDestroying, getDisabled, getDisabledCursor, getDisableTouchScrollingForDrag, getDoubleClickDelay, getDragAppearance, getDragIntersectStyle, getDragMaskType, getDragOpacity, getDragRepositionAppearance, getDragRepositionCursor, getDragResizeAppearance, getDragScrollDelay, getDragStartDistance, getDragTarget, getDragType, getDropTypes, getDropTypesAsString, getDynamicContents, getEdgeBackgroundColor, getEdgeCenterBackgroundColor, getEdgeImage, getEdgeMarginSize, getEdgeOffset, getEdgeOpacity, getEdgeShowCenter, getEdgeSize, getEditNode, getEditProxy, getEditProxyConstructor, getElement, getElement, getEventEdge, getEventEdge, getExtraSpace, getFacetId, getFormItemAutoChild, getFullDataPath, getGroupBorderCSS, getGroupLabelBackgroundColor, getGroupLabelStyleName, getGroupTitle, getHeight, getHeightAsString, getHideUsingDisplayNone, getHoverAlign, getHoverAutoDestroy, getHoverComponent, getHoverDelay, getHoverHeight, getHoverHTML, getHoverMoveWithMouse, getHoverOpacity, getHoverStyle, getHoverVAlign, getHoverWidth, getHoverWrap, getHSnapOrigin, getHSnapOrigin, getHSnapPosition, getHSnapPosition, getHtmlElement, getHtmlPosition, getImage, getImgURL, getImgURL, getInnerContentHeight, getInnerContentWidth, getInnerHeight, getInnerWidth, getIsGroup, getKeepInParentRect, getLayoutAlign, getLeavePageSpace, getLeft, getLeftAsString, getLocateChildrenBy, getLocateChildrenType, getLocatePeersBy, getLocatePeersType, getMargin, getMasterCanvas, getMasterElement, getMatchElement, getMaxHeight, getMaxWidth, getMenuConstructor, getMinHeight, getMinNonEdgeSize, getMinWidth, getMomentumScrollMinSpeed, getMouseStillDownDelay, getMouseStillDownInitialDelay, getNextZIndex, getNoDoubleClicks, getOffsetHeight, getOffsetWidth, getOffsetX, getOffsetY, getOpacity, getOuterElement, getPadding, getPageBottom, getPageLeft, getPageRect, getPageRight, getPageTop, getParentCanvas, getParentElement, getPeers, getPercentBox, getPercentSource, getPosition, getPrefix, getPrintChildrenAbsolutelyPositioned, getPrintHTML, getPrintHTML, getPrompt, getProportionalResizeModifiers, getProportionalResizing, getRect, getRedrawOnResize, getResizeBarTarget, getResizeFrom, getRight, getScrollbarSize, getScrollBottom, getScrollHeight, getScrollLeft, getScrollRight, getScrollTop, getScrollWidth, getShadowDepth, getShadowImage, getShadowOffset, getShadowSoftness, getShouldPrint, getShowCustomScrollbars, getShowDragShadow, getShowEdges, getShowHover, getShowHoverComponents, getShowResizeBar, getShowShadow, getShowSnapGrid, getShrinkElementOnHide, getSkinImgDir, getSnapAxis, getSnapEdge, getSnapHDirection, getSnapHGap, getSnapOffsetLeft, getSnapOffsetTop, getSnapOnDrop, getSnapResizeToGrid, getSnapTo, getSnapToGrid, getSnapVDirection, getSnapVGap, getStyleName, getTabIndex, getTestInstance, getTitle, getTooltip, getTop, getTopAsString, getTopElement, getUseBackMask, getUseDragMask, getUseNativeDrag, getUseOpacityFilter, getUseTouchScrolling, getValuesManager, getViewportHeight, getViewportWidth, getVisibility, getVisibleHeight, getVisibleWidth, getVSnapOrigin, getVSnapOrigin, getVSnapPosition, getVSnapPosition, getWidth, getWidthAsString, getZIndex, getZIndex, handleHover, hide, hideClickMask, hideClickMask, hideComponentMask, hideContextMenu, imgHTML, imgHTML, imgHTML, intersects, isDirty, isDisabled, isDrawn, isFocused, isVisible, keyUp, layoutChildren, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, markForDestroy, markForRedraw, markForRedraw, moveAbove, moveBelow, moveBy, moveTo, onAttach, onDetach, onInit, parentResized, printComponents, redraw, redraw, removeChild, removeChild, removePeer, removePeer, resizeBy, resizeTo, resizeTo, scrollBy, scrollByPercent, scrollTo, scrollTo, scrollTo, scrollToBottom, scrollToLeft, scrollToPercent, scrollToRight, scrollToTop, sendToBack, setAccessKey, setAlign, setAllowExternalFilters, setAlwaysShowScrollbars, setAnimateAcceleration, setAnimateFadeTime, setAnimateHideAcceleration, setAnimateHideTime, setAnimateMoveAcceleration, setAnimateMoveTime, setAnimateRectAcceleration, setAnimateRectTime, setAnimateResizeAcceleration, setAnimateResizeTime, setAnimateScrollAcceleration, setAnimateScrollTime, setAnimateShowAcceleration, setAnimateShowEffect, setAnimateShowTime, setAnimateTime, setAppImgDir, setAriaRole, setAriaState, setAutoChildConstructor, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildVisibility, setAutoDraw, setAutoHeight, setAutoMaskComponents, setAutoShowParent, setAutoWidth, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBottom, setCanAcceptDrop, setCanDrag, setCanDragReposition, setCanDragResize, setCanDragScroll, setCanDrop, setCanDropBefore, setCanFocus, setCanHover, setCanSelectText, setChildren, setChildrenSnapResizeToGrid, setChildrenSnapToGrid, setComponentMaskDefaults, setContents, setContextMenu, setCursor, setDataPath, setDefaultHeight, setDefaultPageSpace, setDefaultProperties, setDefaultWidth, setDisabled, setDisabledCursor, setDisableTouchScrollingForDrag, setDoubleClickDelay, setDragAppearance, setDragIntersectStyle, setDragMaskType, setDragOpacity, setDragRepositionAppearance, setDragRepositionCursor, setDragResizeAppearance, setDragScrollDelay, setDragStartDistance, setDragTarget, setDragType, setDropTypes, setDropTypes, setDynamicContents, setEdgeBackgroundColor, setEdgeCenterBackgroundColor, setEdgeImage, setEdgeMarginSize, setEdgeOffset, setEdgeOpacity, setEdgeShowCenter, setEdgeSize, setEditMode, setEditMode, setEditMode, setEditProxyConstructor, setElement, setExtraSpace, setFacetId, setGroupBorderCSS, setGroupLabelBackgroundColor, setGroupLabelStyleName, setGroupTitle, setHeight, setHeight, setHeight, setHeight100, setHideUsingDisplayNone, setHoverAlign, setHoverAutoDestroy, setHoverDelay, setHoverHeight, setHoverMoveWithMouse, setHoverOpacity, setHoverStyle, setHoverVAlign, setHoverWidth, setHoverWrap, setHtmlElement, setHtmlPosition, setImage, setImage, setInitHandler, setIsGroup, setKeepInParentRect, setKeepInParentRect, setKeepInParentRect, setLayoutAlign, setLayoutAlign, setLeavePageSpace, setLeft, setLeft, setLocateChildrenBy, setLocateChildrenType, setLocatePeersBy, setLocatePeersType, setLogicalStructure, setMargin, setMatchElement, setMaxHeight, setMaxWidth, setMenuConstructor, setMinHeight, setMinNonEdgeSize, setMinWidth, setMomentumScrollMinSpeed, setMouseStillDownDelay, setMouseStillDownInitialDelay, setNeverUseFilters, setNoDoubleClicks, setOpacity, setPadding, setPageLeft, setPageTop, setParentCanvas, setParentElement, setPeers, setPercentBox, setPercentSource, setPosition, setPrefix, setPrintChildrenAbsolutelyPositioned, setPrompt, setProportionalResizeModifiers, setProportionalResizing, setRect, setRect, setRedrawOnResize, setResizeBarTarget, setResizeFrom, setResizeFrom, setRight, setScrollbarConstructor, setScrollbarSize, setShadowDepth, setShadowImage, setShadowOffset, setShadowSoftness, setShouldPrint, setShowCustomScrollbars, setShowDragShadow, setShowEdges, setShowHover, setShowHoverComponents, setShowResizeBar, setShowShadow, setShowSnapGrid, setShrinkElementOnHide, setSkinImgDir, setSmoothFade, setSnapAxis, setSnapEdge, setSnapHDirection, setSnapHGap, setSnapOffsetLeft, setSnapOffsetTop, setSnapOnDrop, setSnapResizeToGrid, setSnapTo, setSnapToGrid, setSnapVDirection, setSnapVGap, setStyleName, setTabIndex, setTitle, setTooltip, setTop, setTop, setUseBackMask, setUseDragMask, setUseNativeDrag, setUseOpacityFilter, setUseTouchScrolling, setValuesManager, setVisibility, setVisible, setWidth, setWidth, setWidth, setWidth100, setZIndex, shouldDragScroll, show, showClickMask, showComponentMask, showComponentMask, showNextTo, showNextTo, showNextTo, showNextTo, showPrintPreview, showPrintPreview, showPrintPreview, showPrintPreview, showRecursively, updateEditNode, updateHover, updateHover, updateShadow, visibleAtPoint, willAcceptDrop
addDrawHandler, applyFactoryProperties, destroy, doAddHandler, doInit, doOnRender, draw, equals, error, errorIfNotCreated, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDateArray, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsFloatArray, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getConfig, getDOM, getHandlerCount, getID, getInnerHTML, getJsObj, getOrCreateJsObj, getRef, getScClassName, hasAutoAssignedID, hashCode, initNativeObject, internalSetID, internalSetID, isConfigOnly, isCreated, 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, setDragTracker, setFactoryCreated, setID, setJavaScriptObject, setLogicalStructure, setNullProperty, setPosition, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setScClassName, toString
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, unsinkEvents
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
fireEvent
public TileLayout()
public TileLayout(JavaScriptObject jsObj)
public static TileLayout getOrCreateRef(JavaScriptObject jsObj)
public static void changeAutoChildDefaults(java.lang.String autoChildName, Canvas defaults)
autoChildName
.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.AutoChildUsage
public static void changeAutoChildDefaults(java.lang.String autoChildName, FormItem defaults)
autoChildName
.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.AutoChildUsage
protected JavaScriptObject create()
public void setAnimateTileChange(java.lang.Boolean animateTileChange)
Note : This is an advanced setting
animateTileChange
- Default value is trueAppearance overview and related methods
public java.lang.Boolean getAnimateTileChange()
Appearance overview and related methods
public void setAutoWrapLines(java.lang.Boolean autoWrapLines) throws java.lang.IllegalStateException
LayoutPolicy
is "flow", should we automatically start a new line when there's not
enough room to fit the next tile on the same line? If set to false, a new line will only be started if a tile specifies tile.startLine or tile.endLine.
autoWrapLines
- Default value is truejava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Boolean getAutoWrapLines()
LayoutPolicy
is "flow", should we automatically start a new line when there's not
enough room to fit the next tile on the same line? If set to false, a new line will only be started if a tile specifies tile.startLine or tile.endLine.
public void setDragDataAction(DragDataAction dragDataAction)
dragDataAction
- Default value is Canvas.MOVEpublic DragDataAction getDragDataAction()
public Canvas getDragLine() throws java.lang.IllegalStateException
For an overview of how to use and configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public void setExpandMargins(java.lang.Boolean expandMargins) throws java.lang.IllegalStateException
LayoutPolicy
:"fit", should margins be expanded so that tiles fill the available
space in the TileLayout on the breadth axis? This can also affect tileWidth
or tileHeight
. See those properties for details.expandMargins
- Default value is truejava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Boolean getExpandMargins()
LayoutPolicy
:"fit", should margins be expanded so that tiles fill the available
space in the TileLayout on the breadth axis? This can also affect tileWidth
or tileHeight
. See those properties for details.public void setLayoutMargin(java.lang.Integer layoutMargin) throws java.lang.IllegalStateException
layoutMargin
- Default value is 5java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Integer getLayoutMargin()
public void setOrientation(Orientation orientation) throws java.lang.IllegalStateException
TileLayoutPolicy
.orientation
- Default value is "horizontal"java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic Orientation getOrientation()
TileLayoutPolicy
.public void setOverflow(Overflow overflow)
Overflow
settings can be used on TileLayouts, for example, an overflow:auto
TileLayout will scroll if members exceed its specified size, whereas an overflow:visible TileLayout will grow to
accommodate members.setOverflow
in class Canvas
overflow
- Default value is "auto"Sizing overview and related methods
public Overflow getOverflow()
Overflow
settings can be used on TileLayouts, for example, an overflow:auto
TileLayout will scroll if members exceed its specified size, whereas an overflow:visible TileLayout will grow to
accommodate members.getOverflow
in class Canvas
Sizing overview and related methods
public void setPaddingAsLayoutMargin(java.lang.Boolean paddingAsLayoutMargin)
this.padding
or 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 layoutMargin
if specified, takes
precedence over this value.
Note : This is an advanced setting
paddingAsLayoutMargin
- Default value is truepublic java.lang.Boolean getPaddingAsLayoutMargin()
this.padding
or 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 layoutMargin
if specified, takes
precedence over this value.
public void setTileHeight(java.lang.Integer tileHeight) throws java.lang.IllegalStateException
tileSize
. If LayoutPolicy
is "fit", expandMargins
is false, tilesPerLine
is set,
Orientation
is "vertical", and tileHeight is not set, tileHeight will be computed
automatically based on tilesPerLine
.
tileHeight
- height. Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the component has been createdSizing overview and related methods
public java.lang.Integer getTileHeight()
tileSize
. If LayoutPolicy
is "fit", expandMargins
is false, tilesPerLine
is set,
Orientation
is "vertical", and tileHeight is not set, tileHeight will be computed
automatically based on tilesPerLine
.Sizing overview and related methods
public void setTileHMargin(java.lang.Integer tileHMargin) throws java.lang.IllegalStateException
tileMargin
.
tileHMargin
- width. Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Integer getTileHMargin()
tileMargin
.public void setTileMargin(int tileMargin) throws java.lang.IllegalStateException
tileHMargin
and tileVMargin
.
tileMargin
- margin. Default value is 10java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic int getTileMargin()
tileHMargin
and tileVMargin
.public void setTiles(Canvas... tiles) throws java.lang.IllegalStateException
tiles
- Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic void setTileSize(int tileSize) throws java.lang.IllegalStateException
LayoutPolicy
, tileSize
may
be taken as a maximum, minimum or exact size of tiles, or may be irrelevant. Width and height may be separately set
via tileHeight
and tileWidth
.
If this method is called after the component has been drawn/initialized:
Sets the height and width of tiles.
tileSize
- size. Default value is 50java.lang.IllegalStateException
- this property cannot be changed after the component has been createdSizing overview and related methods
public int getTileSize()
LayoutPolicy
, tileSize
may
be taken as a maximum, minimum or exact size of tiles, or may be irrelevant. Width and height may be separately set
via tileHeight
and tileWidth
.
Sizing overview and related methods
public void setTilesPerLine(java.lang.Integer tilesPerLine)
tileSize
for some layout modes. See TileLayoutPolicy
. This can also affect tileWidth
or tileHeight
. See those properties for details.
tilesPerLine
- New tilesPerLine
value. Default value is nullpublic java.lang.Integer getTilesPerLine()
tileSize
for some layout modes. See TileLayoutPolicy
. This can also affect tileWidth
or tileHeight
. See those properties for details.public void setTileVMargin(java.lang.Integer tileVMargin) throws java.lang.IllegalStateException
tileMargin
.
tileVMargin
- width. Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.Integer getTileVMargin()
tileMargin
.public void setTileWidth(java.lang.Integer tileWidth) throws java.lang.IllegalStateException
tileSize
. If LayoutPolicy
is "fit", expandMargins
is false, tilesPerLine
is set, Orientation
is "horizontal", and tileWidth is not set, tileWidth will be computed
automatically based on tilesPerLine
.
tileWidth
- width. Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the component has been createdSizing overview and related methods
public java.lang.Integer getTileWidth()
tileSize
. If LayoutPolicy
is "fit", expandMargins
is false, tilesPerLine
is set, Orientation
is "horizontal", and tileWidth is not set, tileWidth will be computed
automatically based on tilesPerLine
.Sizing overview and related methods
public void addTile(Canvas tile)
tile
- new tile to addpublic void addTile(Canvas tile, java.lang.Integer index)
tile
- new tile to addindex
- position where the tile should be added. Defaults to adding the tile at the end.public Canvas getTile(int index)
The TileLayout consistently uses this method to access tiles, in order to allow subclasses to create tiles on demand.
index
- index of the tilepublic static void setDefaultProperties(TileLayout tileLayoutProperties)
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.
tileLayoutProperties
- properties that should be used as new defaults when instances of this class are createdpublic void setLayoutPolicy(TileLayoutPolicy layoutPolicy) throws java.lang.IllegalStateException
TileLayoutPolicy
for options.layoutPolicy
- layoutPolicy Default value is ""java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic boolean removeTile(int tileIndex)
tileIndex
- index or String ID of the tilepublic boolean removeTile(java.lang.String tileID)
tileID
- index or String ID of the tilepublic boolean removeTile(Canvas tile)
tile
- index or String ID of the tilepublic void layoutTiles()
public com.smartgwt.logicalstructure.core.LogicalStructureObject setLogicalStructure(com.smartgwt.logicalstructure.widgets.tile.TileLayoutLogicalStructure s)
LogicalStructure
interface,
which supports Eclipse's logical structure debugging facility.public com.smartgwt.logicalstructure.core.LogicalStructureObject getLogicalStructure()
LogicalStructure
interface,
which supports Eclipse's logical structure debugging facility.getLogicalStructure
in interface LogicalStructure
getLogicalStructure
in class Canvas