|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectComplexPanel
com.vaadin.client.ui.VCustomLayout
public class VCustomLayout
Custom Layout implements complex layout defined with HTML template.
| Field Summary | |
|---|---|
static java.lang.String |
CLASSNAME
|
ApplicationConnection |
client
For internal use only. |
java.lang.String |
pid
Paintable ID of this paintable. |
java.lang.String |
scripts
Unexecuted scripts loaded from the template. |
| Constructor Summary | |
|---|---|
VCustomLayout()
|
|
| Method Summary | |
|---|---|
void |
add(Widget w)
Adding widget without specifying location is not supported |
void |
clear()
Clear all widgets from the layout |
static void |
eval(java.lang.String script)
Evaluate given script in browser document. |
java.lang.String |
getLocation(Widget w)
Get the location of an widget |
boolean |
hasTemplate()
For internal use only. |
boolean |
iLayoutJS(com.google.gwt.user.client.Element el)
In custom layout one may want to run layout functions made with JavaScript. |
void |
initializeHTML(java.lang.String template,
java.lang.String themeUri)
Initialize HTML-layout. |
void |
notifyChildrenOfSizeChange()
This method is published to JS side with the same name into first DOM node of custom layout. |
void |
onBrowserEvent(Event event)
|
void |
onDetach()
|
boolean |
remove(Widget w)
Removes given widget from the layout |
void |
setStyleName(java.lang.String style)
|
void |
setWidget(Widget widget,
java.lang.String location)
Sets widget to given location. |
void |
updateCaption(ComponentConnector paintable)
Update caption for given widget |
| 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 CLASSNAME
public java.lang.String scripts
For internal use only. May be removed or replaced in the future.
public java.lang.String pid
For internal use only. May be removed or replaced in the future.
public ApplicationConnection client
| Constructor Detail |
|---|
public VCustomLayout()
| Method Detail |
|---|
public void setStyleName(java.lang.String style)
public void setWidget(Widget widget,
java.lang.String location)
widget - Widget to be set into location.location - location name where widget will be added
java.lang.IllegalArgumentException - if no such location is found in the layout.
public void initializeHTML(java.lang.String template,
java.lang.String themeUri)
public boolean hasTemplate()
public static void eval(java.lang.String script)
For internal use only. May be removed or replaced in the future.
public void updateCaption(ComponentConnector paintable)
public java.lang.String getLocation(Widget w)
public boolean remove(Widget w)
public void add(Widget w)
public void clear()
public void notifyChildrenOfSizeChange()
public void onDetach()
public boolean iLayoutJS(com.google.gwt.user.client.Element el)
Note! When implementing a JS layout function you most likely want to call notifyChildrenOfSizeChange() function on your custom layouts main element. That method is used to control whether child components layout functions are to be run.
For internal use only. May be removed or replaced in the future.
el -
public void onBrowserEvent(Event event)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||