|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectComplexPanel
com.vaadin.client.ui.VAbsoluteLayout
public class VAbsoluteLayout
| Nested Class Summary | |
|---|---|
protected class |
VAbsoluteLayout.AbsoluteWrapper
Internal wrapper for wrapping widgets in the Absolute layout |
| Field Summary | |
|---|---|
protected Element |
canvas
|
static java.lang.String |
CLASSNAME
Class name, prefix in styling |
static java.lang.String |
TAGNAME
Tag name for widget creation |
| Constructor Summary | |
|---|---|
VAbsoluteLayout()
Default constructor |
|
| Method Summary | |
|---|---|
void |
add(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(Widget widget)
Does this layout contain a widget |
protected VAbsoluteLayout.AbsoluteWrapper |
getChildWrapper(Widget child)
Get the wrapper for a widget |
Widget |
getWidget(int index)
|
VCaption |
getWidgetCaption(Widget child)
Get the caption for a widget |
int |
getWidgetCount()
|
int |
getWidgetIndex(Widget child)
|
int |
getWidgetSlotHeight(Widget child)
Get the pixel height of an slot in the layout |
int |
getWidgetSlotWidth(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(Widget w)
|
void |
setStyleName(java.lang.String style)
|
void |
setStylePrimaryName(java.lang.String style)
|
void |
setWidgetCaption(Widget child,
VCaption caption)
Sets a caption for a contained widget |
void |
setWidgetPosition(Widget child,
java.lang.String position)
Set the position of the widget in the layout. |
void |
setWidgetWrapperStyleNames(Widget widget,
java.lang.String... stylenames)
Sets style names for the wrapper wrapping the widget in the layout. |
protected void |
updateStylenames(java.lang.String primaryStyleName)
Updates all style names contained in the layout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TAGNAME
public static final java.lang.String CLASSNAME
protected final Element canvas
| Constructor Detail |
|---|
public VAbsoluteLayout()
| Method Detail |
|---|
public void add(Widget child)
public boolean remove(Widget w)
public boolean contains(Widget widget)
widget - The widget to check
public Widget getWidget(int index)
public int getWidgetCount()
public int getWidgetIndex(Widget child)
public void setWidgetCaption(Widget child,
VCaption caption)
child - The child widget to set the caption forcaption - The caption of the widget
public void setWidgetPosition(Widget child,
java.lang.String position)
child - The child widget to set the position forposition - The position stringpublic VCaption getWidgetCaption(Widget child)
child - The child widget to get the caption ofpublic int getWidgetSlotWidth(Widget child)
child - The widget in the layout.
public int getWidgetSlotHeight(Widget child)
child - The widget in the layout
protected VAbsoluteLayout.AbsoluteWrapper getChildWrapper(Widget child)
child - The child to get the wrapper for
public void setStylePrimaryName(java.lang.String style)
public void setStyleName(java.lang.String style)
protected void updateStylenames(java.lang.String primaryStyleName)
primaryStyleName - The style name to use as primarypublic void layoutVertically()
public void layoutHorizontally()
public void cleanupWrappers()
public void setWidgetWrapperStyleNames(Widget widget,
java.lang.String... stylenames)
widget - The widget which wrapper we want to add the stylenames tostylenames - The style names that should be added to the wrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||