|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFlowPanel
com.vaadin.client.ui.orderedlayout.VAbstractOrderedLayout
public class VAbstractOrderedLayout
Base class for ordered layouts
| Field Summary | |
|---|---|
protected boolean |
definedHeight
|
protected boolean |
spacing
|
boolean |
vertical
For internal use only. |
| Constructor Summary | |
|---|---|
VAbstractOrderedLayout(boolean vertical)
|
|
| Method Summary | |
|---|---|
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. |
CaptionPosition |
getCaptionPositionFromElement(com.google.gwt.user.client.Element captionWrap)
Deprecated. As of 7.2, call or override getCaptionPositionFromElement(Element) instead |
CaptionPosition |
getCaptionPositionFromElement(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(Element widgetElement)
Gets a slot based on the widget element. |
Slot |
getSlot(Widget widget)
Get the containing slot for a widget. |
protected void |
insert(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(Widget child,
Element container,
int beforeIndex,
boolean domInsert)
|
void |
removeWidget(Widget widget)
Remove a slot from the layout |
void |
setHeight(java.lang.String height)
|
void |
setLayoutManager(LayoutManager manager)
Set the layout manager for the layout |
void |
setMargin(com.vaadin.shared.ui.MarginInfo marginInfo)
Set the margin of the layout |
void |
setSlotStyleNames(Widget widget,
java.lang.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(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean spacing
public boolean vertical
protected boolean definedHeight
| Constructor Detail |
|---|
public VAbstractOrderedLayout(boolean vertical)
| Method Detail |
|---|
@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(Widget child,
com.google.gwt.user.client.Element container,
int beforeIndex,
boolean domInsert)
insert(Widget, Element, int, boolean) instead.
protected void insert(Widget child,
Element container,
int beforeIndex,
boolean domInsert)
public void removeWidget(Widget widget)
widget - public Slot getSlot(Widget widget)
widget - The widget whose slot you want to get
@Deprecated public Slot getSlot(com.google.gwt.user.client.Element widgetElement)
getSlot(Element) instead
widgetElement - The element of the widget ( Same as getWidget().getElement() )
public Slot getSlot(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) instead
For internal use only. May be removed or replaced in the future.
captionWrap - The wrapping element
public CaptionPosition getCaptionPositionFromElement(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) instead
For internal use only. May be removed or replaced in the future.
caption - The caption elementpublic void updateCaptionOffset(Element caption)
For internal use only. May be removed or replaced in the future.
caption - The caption elementpublic void setMargin(com.vaadin.shared.ui.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(java.lang.String height)
public void setSlotStyleNames(Widget widget,
java.lang.String... stylenames)
stylenames - The style names of the slot.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||