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, removeadd, adopt, clear, 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, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic 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.HasWidgetsadd in class com.google.gwt.user.client.ui.Panelpublic boolean remove(com.google.gwt.user.client.ui.Widget w)
remove in interface com.google.gwt.user.client.ui.HasWidgetsremove in class com.google.gwt.user.client.ui.ComplexPanelpublic 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.IndexedPanelgetWidget in class com.google.gwt.user.client.ui.ComplexPanelpublic int getWidgetCount()
getWidgetCount in interface com.google.gwt.user.client.ui.IndexedPanelgetWidgetCount in class com.google.gwt.user.client.ui.ComplexPanelpublic int getWidgetIndex(com.google.gwt.user.client.ui.Widget child)
getWidgetIndex in interface com.google.gwt.user.client.ui.IndexedPanelgetWidgetIndex in class com.google.gwt.user.client.ui.ComplexPanelpublic 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.UIObjectpublic void setStyleName(String style)
setStyleName in class com.google.gwt.user.client.ui.UIObjectprotected 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 © 2016 Vaadin Ltd. All rights reserved.