|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.vaadin.terminal.gwt.client.ui.VCustomLayout
public class VCustomLayout
Custom Layout implements complex layout defined with HTML template.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel |
|---|
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
|---|
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget |
| Field Summary | |
|---|---|
static String |
CLASSNAME
|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
VCustomLayout()
|
|
| Method Summary | |
|---|---|
void |
add(com.google.gwt.user.client.ui.Widget w)
Adding widget without specifying location is not supported |
void |
clear()
Clear all widgets from the layout |
RenderSpace |
getAllocatedSpace(com.google.gwt.user.client.ui.Widget child)
Returns the size currently allocated for the child component. |
String |
getLocation(com.google.gwt.user.client.ui.Widget w)
Get the location of an widget |
boolean |
hasChildComponent(com.google.gwt.user.client.ui.Widget component)
Does this layout contain given child |
void |
iLayout()
This function is run when container box has been resized. |
void |
notifyChildrenOfSizeChange()
This method is published to JS side with the same name into first DOM node of custom layout. |
void |
onBrowserEvent(com.google.gwt.user.client.Event event)
|
void |
onDetach()
|
boolean |
remove(com.google.gwt.user.client.ui.Widget w)
Removes given widget from the layout |
void |
replaceChildComponent(com.google.gwt.user.client.ui.Widget from,
com.google.gwt.user.client.ui.Widget to)
Replace child components |
boolean |
requestLayout(Set<Paintable> child)
Called when a child components size has been updated in the rendering phase. |
void |
setHeight(String height)
|
void |
setWidget(com.google.gwt.user.client.ui.Widget widget,
String location)
Sets widget to given location. |
void |
setWidth(String width)
|
void |
updateCaption(Paintable component,
UIDL uidl)
Update caption for given widget |
void |
updateFromUIDL(UIDL uidl,
ApplicationConnection client)
Update the layout from UIDL |
| Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel |
|---|
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
|---|
add, adopt, adopt, disown, doAttachChildren, doDetachChildren, orphan, remove |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String CLASSNAME
| Constructor Detail |
|---|
public VCustomLayout()
| Method Detail |
|---|
public void setWidget(com.google.gwt.user.client.ui.Widget widget,
String location)
widget - Widget to be set into location.location - location name where widget will be added
IllegalArgumentException - if no such location is found in the layout.
public void updateFromUIDL(UIDL uidl,
ApplicationConnection client)
updateFromUIDL in interface Paintable
public void replaceChildComponent(com.google.gwt.user.client.ui.Widget from,
com.google.gwt.user.client.ui.Widget to)
replaceChildComponent in interface Containerfrom - Child to be replacedto - Child that replaces the oldComponentpublic boolean hasChildComponent(com.google.gwt.user.client.ui.Widget component)
hasChildComponent in interface Containercomponent - Component to test.
public void updateCaption(Paintable component,
UIDL uidl)
updateCaption in interface Containercomponent - Child component for which service is requested.uidl - UIDL of the child component.public String getLocation(com.google.gwt.user.client.ui.Widget w)
public 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 void add(com.google.gwt.user.client.ui.Widget w)
add in interface com.google.gwt.user.client.ui.HasWidgetsadd in class com.google.gwt.user.client.ui.Panelpublic void clear()
clear in interface com.google.gwt.user.client.ui.HasWidgetsclear in class com.google.gwt.user.client.ui.Panelpublic void iLayout()
ContainerResizedListener
iLayout in interface ContainerResizedListenerpublic void notifyChildrenOfSizeChange()
public void onDetach()
onDetach in class com.google.gwt.user.client.ui.Widgetpublic boolean requestLayout(Set<Paintable> child)
Container
requestLayout in interface Containerchild - Set of child widgets whose size have changed
public RenderSpace getAllocatedSpace(com.google.gwt.user.client.ui.Widget child)
Container
getAllocatedSpace in interface Containerpublic void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent in interface com.google.gwt.user.client.EventListeneronBrowserEvent in class com.google.gwt.user.client.ui.Widgetpublic void setHeight(String height)
setHeight in class com.google.gwt.user.client.ui.UIObjectpublic void setWidth(String width)
setWidth in class com.google.gwt.user.client.ui.UIObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||