public class VAbstractOrderedLayout
extends com.google.gwt.user.client.ui.FlowPanel
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Modifier and Type | Field and Description |
|---|---|
protected boolean |
definedHeight |
protected boolean |
spacing |
boolean |
vertical
For internal use only.
|
| Constructor and Description |
|---|
VAbstractOrderedLayout(boolean vertical) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOrMoveSlot(Slot slot,
int index)
Deprecated.
since 7.1.4, use
addOrMoveSlot(Slot, int, boolean) |
void |
addOrMoveSlot(Slot slot,
int index,
boolean adjustSpacing)
Add or move a slot to another index.
|
void |
clearExpand()
Removes elements used to expand a slot.
|
protected Slot |
createSlot(com.google.gwt.user.client.ui.Widget widget)
Create a slot to be added to the layout.
|
CaptionPosition |
getCaptionPositionFromElement(com.google.gwt.user.client.Element captionWrap)
Deprecated.
As of 7.2, call or override
getCaptionPositionFromElement(Element) instead |
CaptionPosition |
getCaptionPositionFromElement(com.google.gwt.dom.client.Element captionWrap)
Deducts the caption position by examining the wrapping element.
|
LayoutManager |
getLayoutManager()
Get the layout manager used by this layout.
|
Slot |
getSlot(com.google.gwt.user.client.Element widgetElement)
Deprecated.
As of 7.2, call or override
getSlot(Element) instead |
Slot |
getSlot(com.google.gwt.dom.client.Element widgetElement)
Gets a slot based on the widget element.
|
Slot |
getSlot(com.google.gwt.user.client.ui.Widget widget)
Get the containing slot for a widget.
|
protected void |
insert(com.google.gwt.user.client.ui.Widget child,
com.google.gwt.user.client.Element container,
int beforeIndex,
boolean domInsert)
Deprecated.
As of 7.2, use or override
insert(Widget, Element, int, boolean) instead. |
protected void |
insert(com.google.gwt.user.client.ui.Widget child,
com.google.gwt.dom.client.Element container,
int beforeIndex,
boolean domInsert) |
protected void |
removeSlot(Slot slot)
Remove a slot from the layout.
|
void |
removeWidget(com.google.gwt.user.client.ui.Widget widget)
Remove a slot from the layout.
|
void |
setHeight(String height) |
void |
setLayoutManager(LayoutManager manager)
Set the layout manager for the layout.
|
void |
setMargin(MarginInfo marginInfo)
Set the margin of the layout.
|
void |
setSlotStyleNames(com.google.gwt.user.client.ui.Widget widget,
String... stylenames)
Sets the slots style names.
|
void |
setSpacing(boolean spacing)
Turn on or off spacing in the layout.
|
void |
updateCaptionOffset(com.google.gwt.user.client.Element caption)
Deprecated.
As of 7.2, call or override
updateCaptionOffset(Element) instead |
void |
updateCaptionOffset(com.google.gwt.dom.client.Element caption)
Update the offset off the caption relative to the slot
|
void |
updateExpandCompensation()
Updates the expand compensation based on the measured sizes of children
without expand.
|
void |
updateExpandedSizes()
Assigns relative sizes to the children that should expand based on their
expand ratios.
|
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, iterator, remove, removeadd, adopt, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetWidgetIndexgetWidget, getWidgetCount, getWidgetIndex, removeforEach, spliteratorprotected boolean spacing
public boolean vertical
protected boolean definedHeight
@Deprecated public void addOrMoveSlot(Slot slot, int index)
addOrMoveSlot(Slot, int, boolean)addOrMoveSlot(Slot, int, boolean).
This method always adjusts spacings for the whole layout.
slot - The slot to move or addindex - The index where the slot should be placed.public void addOrMoveSlot(Slot slot, int index, boolean adjustSpacing)
For internal use only. May be removed or replaced in the future.
You should note that the index does not refer to the DOM index if spacings are used. If spacings are used then the index will be adjusted to include the spacings when inserted.
For instance when using spacing the index converts to DOM index in the following way:
index : 0 -> DOM index: 0 index : 1 -> DOM index: 1 index : 2 -> DOM index: 3 index : 3 -> DOM index: 5 index : 4 -> DOM index: 7When using this method never account for spacings.
The caller should remove all spacings before calling this method and re-add them (if necessary) after this method. This can be done before and after all slots have been added/moved.
slot - The slot to move or addindex - The index where the slot should be placed.adjustSpacing - true to recalculate spacings for the whole layout after the
operation@Deprecated protected void insert(com.google.gwt.user.client.ui.Widget child, com.google.gwt.user.client.Element container, int beforeIndex, boolean domInsert)
insert(Widget, Element, int, boolean) instead.insert in class com.google.gwt.user.client.ui.ComplexPanelprotected void insert(com.google.gwt.user.client.ui.Widget child,
com.google.gwt.dom.client.Element container,
int beforeIndex,
boolean domInsert)
insert in class com.google.gwt.user.client.ui.ComplexPanelpublic void removeWidget(com.google.gwt.user.client.ui.Widget widget)
widget - protected void removeSlot(Slot slot)
removeWidget(Widget) and
should not be called directly by the user. When overridden, the super
method must be called.slot - to removepublic Slot getSlot(com.google.gwt.user.client.ui.Widget widget)
widget - The widget whose slot you want to getprotected Slot createSlot(com.google.gwt.user.client.ui.Widget widget)
getSlot(Widget) when a
new slot is needed. It should not be called directly by the user, but can
be overridden to customize slot creation.widget - the widget for which a slot is being created@Deprecated public Slot getSlot(com.google.gwt.user.client.Element widgetElement)
getSlot(Element) insteadwidgetElement - The element of the widget ( Same as getWidget().getElement() )public Slot getSlot(com.google.gwt.dom.client.Element widgetElement)
widgetElement - The element of the widget ( Same as getWidget().getElement() )public void setLayoutManager(LayoutManager manager)
manager - The layout manager to usepublic LayoutManager getLayoutManager()
@Deprecated public CaptionPosition getCaptionPositionFromElement(com.google.gwt.user.client.Element captionWrap)
getCaptionPositionFromElement(Element) insteadFor internal use only. May be removed or replaced in the future.
captionWrap - The wrapping elementpublic CaptionPosition getCaptionPositionFromElement(com.google.gwt.dom.client.Element captionWrap)
For internal use only. May be removed or replaced in the future.
captionWrap - The wrapping element@Deprecated public void updateCaptionOffset(com.google.gwt.user.client.Element caption)
updateCaptionOffset(Element) insteadFor internal use only. May be removed or replaced in the future.
caption - The caption elementpublic void updateCaptionOffset(com.google.gwt.dom.client.Element caption)
For internal use only. May be removed or replaced in the future.
caption - The caption elementpublic void setMargin(MarginInfo marginInfo)
marginInfo - The margin informationpublic void setSpacing(boolean spacing)
spacing - True if spacing should be used, false if notpublic void updateExpandedSizes()
public void clearExpand()
For internal use only. May be removed or replaced in the future.
public void updateExpandCompensation()
public void setHeight(String height)
setHeight in class com.google.gwt.user.client.ui.UIObjectpublic void setSlotStyleNames(com.google.gwt.user.client.ui.Widget widget,
String... stylenames)
stylenames - The style names of the slot.Copyright © 2018 Vaadin Ltd. All rights reserved.