public class ComponentConnectorLayoutSlot extends VLayoutSlot
| Constructor and Description |
|---|
ComponentConnectorLayoutSlot(String baseClassName,
ComponentConnector child,
ManagedLayout layout)
Constructs a slot instance for a ManagedLayout cell.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getCaptionHeight()
Returns the height of the caption, or zero if there is no caption.
|
protected int |
getCaptionWidth()
Returns the width of the caption, or zero if there is no caption.
|
ComponentConnector |
getChild()
Returns the connector of the child component that has been assigned to
this slot.
|
LayoutManager |
getLayoutManager()
Returns the layout manager for the managed layout.
|
int |
getWidgetHeight()
Returns the height of the widget, or zero if there is no caption.
|
int |
getWidgetWidth()
Returns the width of the widget, or zero if there is no caption.
|
boolean |
isRelativeHeight()
Returns whether the height of the widget has been set as relative.
|
boolean |
isRelativeWidth()
Returns whether the width of the widget has been set as relative.
|
boolean |
isUndefinedHeight()
Returns whether the height of the widget has been set as undefined.
|
boolean |
isUndefinedWidth()
Returns whether the width of the widget has been set as undefined.
|
protected void |
reportActualRelativeHeight(int allocatedHeight)
Reports the expected outer height to the LayoutManager.
|
protected void |
reportActualRelativeWidth(int allocatedWidth)
Reports the expected outer width to the LayoutManager.
|
void |
setCaption(VCaption caption)
Sets the caption element for this slot.
|
getAlignment, getCaption, getExpandRatio, getUsedHeight, getUsedSizeInDirection, getUsedWidth, getWidget, getWidgetSizeInDirection, getWrapperElement, isRelativeInDirection, isUndefinedInDirection, positionHorizontally, positionInDirection, positionVertically, setAlignment, setExpandRatiopublic ComponentConnectorLayoutSlot(String baseClassName, ComponentConnector child, ManagedLayout layout)
baseClassName - the base class name of the layoutchild - the connector of the child component whose widget should be
set to this slot, should not be nulllayout - the managed layout that contains this slotpublic ComponentConnector getChild()
protected int getCaptionHeight()
VLayoutSlotgetCaptionHeight in class VLayoutSlotprotected int getCaptionWidth()
VLayoutSlotgetCaptionWidth in class VLayoutSlotpublic LayoutManager getLayoutManager()
public void setCaption(VCaption caption)
VLayoutSlotsetCaption in class VLayoutSlotcaption - the caption element, can be nullprotected void reportActualRelativeHeight(int allocatedHeight)
reportActualRelativeHeight in class VLayoutSlotallocatedHeight - the height to set (including margins, borders and paddings) in
pixelsprotected void reportActualRelativeWidth(int allocatedWidth)
reportActualRelativeWidth in class VLayoutSlotallocatedWidth - the width to set (including margins, borders and paddings) in
pixelspublic int getWidgetHeight()
VLayoutSlotgetWidgetHeight in class VLayoutSlotpublic int getWidgetWidth()
VLayoutSlotgetWidgetWidth in class VLayoutSlotpublic boolean isUndefinedHeight()
VLayoutSlotisUndefinedHeight in class VLayoutSlottrue if the widget height is undefined, false
otherwisepublic boolean isUndefinedWidth()
VLayoutSlotisUndefinedWidth in class VLayoutSlottrue if the widget width is undefined, false
otherwisepublic boolean isRelativeHeight()
VLayoutSlotisRelativeHeight in class VLayoutSlottrue if the widget height is relative, false
otherwisepublic boolean isRelativeWidth()
VLayoutSlotisRelativeWidth in class VLayoutSlottrue if the widget width is relative, false
otherwiseCopyright © 2021 Vaadin Ltd. All rights reserved.