|
||||||||||
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 |
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, insert, insert, iterator, remove |
Methods inherited from class com.google.gwt.user.client.ui.Panel |
---|
adopt, adopt, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addDomHandler, addHandler, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, 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, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, 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 Container
from
- Child to be replacedto
- Child that replaces the oldComponentpublic boolean hasChildComponent(com.google.gwt.user.client.ui.Widget component)
hasChildComponent
in interface Container
component
- Component to test.
public void updateCaption(Paintable component, UIDL uidl)
updateCaption
in interface Container
component
- 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.HasWidgets
remove
in class com.google.gwt.user.client.ui.ComplexPanel
public void add(com.google.gwt.user.client.ui.Widget w)
add
in interface com.google.gwt.user.client.ui.HasWidgets
add
in class com.google.gwt.user.client.ui.Panel
public void clear()
clear
in interface com.google.gwt.user.client.ui.HasWidgets
clear
in class com.google.gwt.user.client.ui.Panel
public void iLayout()
ContainerResizedListener
iLayout
in interface ContainerResizedListener
public void notifyChildrenOfSizeChange()
public void onDetach()
onDetach
in class com.google.gwt.user.client.ui.Widget
public boolean requestLayout(Set<Paintable> child)
Container
requestLayout
in interface Container
child
- Set of child widgets whose size have changed
public RenderSpace getAllocatedSpace(com.google.gwt.user.client.ui.Widget child)
Container
getAllocatedSpace
in interface Container
public void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent
in interface com.google.gwt.user.client.EventListener
onBrowserEvent
in class com.google.gwt.user.client.ui.Widget
public void setHeight(String height)
setHeight
in class com.google.gwt.user.client.ui.UIObject
public 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 |