Search in sources :

Example 1 with IFormHTMLAndJSGenerator

use of com.servoy.j2db.server.ngclient.INGClientWindow.IFormHTMLAndJSGenerator in project servoy-client by Servoy.

the class NGClient method changesWillBeSend.

@Override
public void changesWillBeSend() {
    reloadClientFunctionsSend = false;
    if (toRecreate.size() > 0) {
        NGClientWebsocketSessionWindows allWindowsProxy = new NGClientWebsocketSessionWindows(getWebsocketSession());
        for (Pair<Form, String> pair : toRecreate) {
            IFormHTMLAndJSGenerator generator = getWebsocketSession().getFormHTMLAndJSGenerator(pair.getLeft(), pair.getRight());
            allWindowsProxy.updateForm(pair.getLeft(), pair.getRight(), generator);
        }
        toRecreate.clear();
    }
    if (showUrl != null) {
        this.getWebsocketSession().getClientService(NGClient.APPLICATION_SERVICE).executeAsyncServiceCall("showUrl", new Object[] { showUrl.url, showUrl.target, showUrl.target_options, Integer.valueOf(showUrl.timeout) });
        showUrl = null;
    }
}
Also used : Form(com.servoy.j2db.persistence.Form) NGClientWebsocketSessionWindows(com.servoy.j2db.server.ngclient.eventthread.NGClientWebsocketSessionWindows) IFormHTMLAndJSGenerator(com.servoy.j2db.server.ngclient.INGClientWindow.IFormHTMLAndJSGenerator)

Aggregations

Form (com.servoy.j2db.persistence.Form)1 IFormHTMLAndJSGenerator (com.servoy.j2db.server.ngclient.INGClientWindow.IFormHTMLAndJSGenerator)1 NGClientWebsocketSessionWindows (com.servoy.j2db.server.ngclient.eventthread.NGClientWebsocketSessionWindows)1