public class VAbsoluteLayout
extends com.google.gwt.user.client.ui.ComplexPanel
Modifier and Type | Class and Description |
---|---|
protected class |
VAbsoluteLayout.AbsoluteWrapper
Internal wrapper for wrapping widgets in the Absolute layout
|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
Modifier and Type | Field and Description |
---|---|
protected com.google.gwt.dom.client.Element |
canvas |
static String |
CLASSNAME
Class name, prefix in styling
|
static String |
TAGNAME
Tag name for widget creation
|
Constructor and Description |
---|
VAbsoluteLayout()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
add(com.google.gwt.user.client.ui.Widget child) |
void |
cleanupWrappers()
Cleanup old wrappers which have been left empty by other inner layouts
moving the widget from the wrapper into their own hierarchy.
|
boolean |
contains(com.google.gwt.user.client.ui.Widget widget)
Does this layout contain a widget
|
protected VAbsoluteLayout.AbsoluteWrapper |
getChildWrapper(com.google.gwt.user.client.ui.Widget child)
Get the wrapper for a widget
|
com.google.gwt.user.client.ui.Widget |
getWidget(int index) |
VCaption |
getWidgetCaption(com.google.gwt.user.client.ui.Widget child)
Get the caption for a widget
|
int |
getWidgetCount() |
int |
getWidgetIndex(com.google.gwt.user.client.ui.Widget child) |
int |
getWidgetSlotHeight(com.google.gwt.user.client.ui.Widget child)
Get the pixel height of an slot in the layout
|
int |
getWidgetSlotWidth(com.google.gwt.user.client.ui.Widget child)
Get the pixel width of an slot in the layout
|
void |
layoutHorizontally()
Performs an horizontal layout.
|
void |
layoutVertically()
Performs a vertical layout of the layout.
|
boolean |
remove(com.google.gwt.user.client.ui.Widget w) |
void |
setStyleName(String style) |
void |
setStylePrimaryName(String style) |
void |
setWidgetCaption(com.google.gwt.user.client.ui.Widget child,
VCaption caption)
Sets a caption for a contained widget
|
void |
setWidgetPosition(com.google.gwt.user.client.ui.Widget child,
String position)
Set the position of the widget in the layout.
|
void |
setWidgetWrapperStyleNames(com.google.gwt.user.client.ui.Widget widget,
String... stylenames)
Sets style names for the wrapper wrapping the widget in the layout.
|
protected void |
updateStylenames(String primaryStyleName)
Updates all style names contained in the layout
|
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidgetIndex, insert, insert, iterator, remove
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final String TAGNAME
public static final String CLASSNAME
protected final com.google.gwt.dom.client.Element canvas
public void add(com.google.gwt.user.client.ui.Widget child)
add
in interface com.google.gwt.user.client.ui.HasWidgets
add
in class com.google.gwt.user.client.ui.Panel
public boolean remove(com.google.gwt.user.client.ui.Widget w)
remove
in interface com.google.gwt.user.client.ui.HasWidgets
remove
in class com.google.gwt.user.client.ui.ComplexPanel
public boolean contains(com.google.gwt.user.client.ui.Widget widget)
widget
- The widget to checkpublic com.google.gwt.user.client.ui.Widget getWidget(int index)
getWidget
in interface com.google.gwt.user.client.ui.IndexedPanel
getWidget
in class com.google.gwt.user.client.ui.ComplexPanel
public int getWidgetCount()
getWidgetCount
in interface com.google.gwt.user.client.ui.IndexedPanel
getWidgetCount
in class com.google.gwt.user.client.ui.ComplexPanel
public int getWidgetIndex(com.google.gwt.user.client.ui.Widget child)
getWidgetIndex
in interface com.google.gwt.user.client.ui.IndexedPanel
getWidgetIndex
in class com.google.gwt.user.client.ui.ComplexPanel
public void setWidgetCaption(com.google.gwt.user.client.ui.Widget child, VCaption caption)
child
- The child widget to set the caption forcaption
- The caption of the widgetpublic void setWidgetPosition(com.google.gwt.user.client.ui.Widget child, String position)
child
- The child widget to set the position forposition
- The position stringpublic VCaption getWidgetCaption(com.google.gwt.user.client.ui.Widget child)
child
- The child widget to get the caption ofpublic int getWidgetSlotWidth(com.google.gwt.user.client.ui.Widget child)
child
- The widget in the layout.public int getWidgetSlotHeight(com.google.gwt.user.client.ui.Widget child)
child
- The widget in the layoutprotected VAbsoluteLayout.AbsoluteWrapper getChildWrapper(com.google.gwt.user.client.ui.Widget child)
child
- The child to get the wrapper forpublic void setStylePrimaryName(String style)
setStylePrimaryName
in class com.google.gwt.user.client.ui.UIObject
public void setStyleName(String style)
setStyleName
in class com.google.gwt.user.client.ui.UIObject
protected void updateStylenames(String primaryStyleName)
primaryStyleName
- The style name to use as primarypublic void layoutVertically()
public void layoutHorizontally()
public void cleanupWrappers()
public void setWidgetWrapperStyleNames(com.google.gwt.user.client.ui.Widget widget, String... stylenames)
widget
- The widget which wrapper we want to add the stylenames tostylenames
- The style names that should be added to the wrapperCopyright © 2019 Vaadin Ltd. All rights reserved.