public class VCustomLayout
extends com.google.gwt.user.client.ui.ComplexPanel
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
Modifier and Type | Field and Description |
---|---|
static String |
CLASSNAME
The default classname for this widget.
|
ApplicationConnection |
client
For internal use only.
|
String |
pid
Paintable ID of this paintable.
|
String |
scripts
Unexecuted scripts loaded from the template.
|
Constructor and Description |
---|
VCustomLayout()
Constructs a widget for a custom layout.
|
Modifier and Type | Method and Description |
---|---|
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.
|
static void |
eval(String script)
Evaluate given script in browser document.
|
String |
getLocation(com.google.gwt.user.client.ui.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(String template,
String themeUri)
Initialize HTML-layout.
|
void |
notifyChildrenOfSizeChange()
Deprecated.
this method has done absolutely nothing since Vaadin 7.0 and
should not be used, before that forced a recursive re-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 |
setStyleName(String style) |
void |
setWidget(com.google.gwt.user.client.ui.Widget widget,
String location)
Sets widget to given location.
|
void |
updateCaption(ComponentConnector childConnector)
Update caption for the given child connector.
|
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove
add, adopt, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, 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, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final String CLASSNAME
public String scripts
For internal use only. May be removed or replaced in the future.
public String pid
For internal use only. May be removed or replaced in the future.
public ApplicationConnection client
public void setStyleName(String style)
setStyleName
in class com.google.gwt.user.client.ui.UIObject
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 addedIllegalArgumentException
- if no such location is found in the layout.public void initializeHTML(String template, String themeUri)
template
- original HTML-templatethemeUri
- URI to the current themepublic boolean hasTemplate()
true
if has template contents, false
otherwisepublic static void eval(String script)
For internal use only. May be removed or replaced in the future.
script
- the script to evaluatepublic void updateCaption(ComponentConnector childConnector)
childConnector
- the child connector whose caption should be updatedpublic String getLocation(com.google.gwt.user.client.ui.Widget w)
w
- the widget whose location to checknull
if not foundpublic 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
@Deprecated public void notifyChildrenOfSizeChange()
public void onDetach()
onDetach
in class com.google.gwt.user.client.ui.Widget
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
- The first element of the layoutpublic 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
Copyright © 2022 Vaadin Ltd. All rights reserved.