/*-{
var ap = this;
var client = {};
- client.isActive = function() {
+ client.isActive = $entry(function() {
return ap.@com.vaadin.terminal.gwt.client.ApplicationConnection::hasActiveRequest()()
|| ap.@com.vaadin.terminal.gwt.client.ApplicationConnection::isExecutingDeferredCommands()();
- }
+ });
var vi = ap.@com.vaadin.terminal.gwt.client.ApplicationConnection::getVersionInfo()();
if (vi) {
}
}
- client.getProfilingData = function() {
+ client.getProfilingData = $entry(function() {
var pd = [
ap.@com.vaadin.terminal.gwt.client.ApplicationConnection::lastProcessingTime,
ap.@com.vaadin.terminal.gwt.client.ApplicationConnection::totalProcessingTime
];
pd = pd.concat(ap.@com.vaadin.terminal.gwt.client.ApplicationConnection::testBenchServerStatus);
return pd;
- }
+ });
- client.getElementByPath = function(id) {
+ client.getElementByPath = $entry(function(id) {
return componentLocator.@com.vaadin.terminal.gwt.client.ComponentLocator::getElementByPath(Ljava/lang/String;)(id);
- }
- client.getPathForElement = function(element) {
+ });
+ client.getPathForElement = $entry(function(element) {
return componentLocator.@com.vaadin.terminal.gwt.client.ComponentLocator::getPathForElement(Lcom/google/gwt/user/client/Element;)(element);
- }
+ });
if (!$wnd.vaadin.clients) {
$wnd.vaadin.clients = {};
if ($wnd.vaadin.forceSync) {
oldSync = $wnd.vaadin.forceSync;
}
- $wnd.vaadin.forceSync = function() {
+ $wnd.vaadin.forceSync = $entry(function() {
if (oldSync) {
oldSync();
}
app.@com.vaadin.terminal.gwt.client.ApplicationConnection::sendPendingVariableChanges()();
- }
+ });
var oldForceLayout;
if ($wnd.vaadin.forceLayout) {
oldForceLayout = $wnd.vaadin.forceLayout;
}
- $wnd.vaadin.forceLayout = function() {
+ $wnd.vaadin.forceLayout = $entry(function() {
if (oldForceLayout) {
oldForceLayout();
}
app.@com.vaadin.terminal.gwt.client.ApplicationConnection::forceLayout()();
- }
+ });
}-*/;
/**
/*-{
var historyImplRef = this;
- $wnd.__gwt_onHistoryLoad = function(token) {
+ $wnd.__gwt_onHistoryLoad = $entry(function(token) {
historyImplRef.@com.google.gwt.user.client.impl.HistoryImpl::newItemOnEvent(Ljava/lang/String;)(token);
- };
+ });
}-*/;
protected native void navigateFrame(String token)
*/
public native static void addPngFix(Element el)
/*-{
- el.attachEvent("onload", function() {
+ el.attachEvent("onload", $entry(function() {
@com.vaadin.terminal.gwt.client.Util::doIE6PngFix(Lcom/google/gwt/user/client/Element;)(el);
- },false);
+ }),false);
}-*/;
private native static void doPngFix(Element el, String blankImageUrl)
native void hookEvents(com.google.gwt.dom.client.Element iframe,
VUpload upload)
/*-{
- iframe.onload = function() {
+ iframe.onload = $entry(function() {
upload.@com.vaadin.terminal.gwt.client.ui.VUpload::onSubmitComplete()();
- };
+ });
}-*/;
/**
@Override
native void hookEvents(Element iframe, VUpload upload)
/*-{
- iframe.onreadystatechange = function() {
+ iframe.onreadystatechange = $entry(function() {
if (iframe.readyState == 'complete') {
upload.@com.vaadin.terminal.gwt.client.ui.VUpload::onSubmitComplete()();
}
- };
+ });
}-*/;
@Override
private native void publishResizedFunction(Element element)
/*-{
var self = this;
- element.notifyChildrenOfSizeChange = function() {
+ element.notifyChildrenOfSizeChange = $entry(function() {
self.@com.vaadin.terminal.gwt.client.ui.VCustomLayout::notifyChildrenOfSizeChange()();
- };
+ });
}-*/;
/**
protected native void hookHtml5DragStart(Element el)
/*-{
var me = this;
- el.addEventListener("dragstart", function(ev) {
+ el.addEventListener("dragstart", $entry(function(ev) {
return me.@com.vaadin.terminal.gwt.client.ui.VDragAndDropWrapper::html5DragStart(Lcom/vaadin/terminal/gwt/client/ui/dd/VHtml5DragEvent;)(ev);
- }, false);
+ }), false);
}-*/;
/**
/*-{
var me = this;
- el.addEventListener("dragenter", function(ev) {
+ el.addEventListener("dragenter", $entry(function(ev) {
return me.@com.vaadin.terminal.gwt.client.ui.VDragAndDropWrapper::html5DragEnter(Lcom/vaadin/terminal/gwt/client/ui/dd/VHtml5DragEvent;)(ev);
- }, false);
+ }), false);
- el.addEventListener("dragleave", function(ev) {
+ el.addEventListener("dragleave", $entry(function(ev) {
return me.@com.vaadin.terminal.gwt.client.ui.VDragAndDropWrapper::html5DragLeave(Lcom/vaadin/terminal/gwt/client/ui/dd/VHtml5DragEvent;)(ev);
- }, false);
+ }), false);
- el.addEventListener("dragover", function(ev) {
+ el.addEventListener("dragover", $entry(function(ev) {
return me.@com.vaadin.terminal.gwt.client.ui.VDragAndDropWrapper::html5DragOver(Lcom/vaadin/terminal/gwt/client/ui/dd/VHtml5DragEvent;)(ev);
- }, false);
+ }), false);
- el.addEventListener("drop", function(ev) {
+ el.addEventListener("drop", $entry(function(ev) {
return me.@com.vaadin.terminal.gwt.client.ui.VDragAndDropWrapper::html5DragDrop(Lcom/vaadin/terminal/gwt/client/ui/dd/VHtml5DragEvent;)(ev);
- }, false);
+ }), false);
}-*/;
public boolean updateDropDetails(VDragEvent drag) {
/*-{
var me = this;
- el.attachEvent("ondragstart", function(ev) {
+ el.attachEvent("ondragstart", $entry(function(ev) {
return me.@com.vaadin.terminal.gwt.client.ui.VDragAndDropWrapper::html5DragStart(Lcom/vaadin/terminal/gwt/client/ui/dd/VHtml5DragEvent;)(ev);
- });
+ }));
}-*/;
@Override
/*-{
var me = this;
- el.attachEvent("ondragenter", function(ev) {
+ el.attachEvent("ondragenter", $entry(function(ev) {
return me.@com.vaadin.terminal.gwt.client.ui.VDragAndDropWrapper::html5DragEnter(Lcom/vaadin/terminal/gwt/client/ui/dd/VHtml5DragEvent;)(ev);
- });
+ }));
- el.attachEvent("ondragleave", function(ev) {
+ el.attachEvent("ondragleave", $entry(function(ev) {
return me.@com.vaadin.terminal.gwt.client.ui.VDragAndDropWrapper::html5DragLeave(Lcom/vaadin/terminal/gwt/client/ui/dd/VHtml5DragEvent;)(ev);
- });
+ }));
- el.attachEvent("ondragover", function(ev) {
+ el.attachEvent("ondragover", $entry(function(ev) {
return me.@com.vaadin.terminal.gwt.client.ui.VDragAndDropWrapper::html5DragOver(Lcom/vaadin/terminal/gwt/client/ui/dd/VHtml5DragEvent;)(ev);
- });
+ }));
- el.attachEvent("ondrop", function(ev) {
+ el.attachEvent("ondrop", $entry(function(ev) {
return me.@com.vaadin.terminal.gwt.client.ui.VDragAndDropWrapper::html5DragDrop(Lcom/vaadin/terminal/gwt/client/ui/dd/VHtml5DragEvent;)(ev);
- });
+ }));
}-*/;
}
protected native void attachCutEventListener(Element el)
/*-{
var me = this;
- el.oncut = function() {
+ el.oncut = $entry(function() {
me.@com.vaadin.terminal.gwt.client.ui.VTextField::onCut()();
- };
+ });
}-*/;
protected native void detachCutEventListener(Element el)
private native void updateDimensionsWhenMetadataLoaded(Element el)
/*-{
var self = this;
- el.addEventListener('loadedmetadata', function(e) {
- $entry(self.@com.vaadin.terminal.gwt.client.ui.VVideo::updateElementDynamicSize(II)(el.videoWidth, el.videoHeight));
- }, false);
+ el.addEventListener('loadedmetadata', $entry(function(e) {
+ self.@com.vaadin.terminal.gwt.client.ui.VVideo::updateElementDynamicSize(II)(el.videoWidth, el.videoHeight);
+ }), false);
}-*/;