APISonar


com.vaadin.client.VConsole.log

> com > vaadin > client > VConsole > log
com APIs vaadin APIs client APIs VConsole APIs log APIs

Example 1
private static void execRunnable(Runnable r) {
        if (r != null) {
            try {
                r.run();
            } catch (Throwable e) {
                VConsole.log(e.toString());
            }
        }
    }
Example 2
public void logDependencyStatus(ComponentConnector connector) {
        VConsole.log("====");
        String connectorId = connector.getConnectorId();
        VConsole.log(getDependency(connectorId, HORIZONTAL).toString());
        VConsole.log(getDependency(connectorId, VERTICAL).toString());
    }
Example 3
private void greet() {
        String msg = getState().getGreeting() + " from "
                + Util.getConnectorString(this) + " attached to "
                + Util.getConnectorString(getParent());
        VConsole.log(msg);

        String response = Window.prompt(msg, "");
        getRpcProxy(HelloWorldRpc.class).onMessageSent(response);
    }
Example 4
public void lazyRevertFocusToRow(final VScrollTableRow currentlyFocusedRow) {
        Scheduler.get().scheduleFinally(new ScheduledCommand() {

            @Override
            public void execute() {
                if (currentlyFocusedRow != null) {
                    setRowFocus(currentlyFocusedRow);
                } else {
                    VConsole.log("no row?");
                    focusRowFromBody();
                }
                scrollBody.ensureFocus();
            }
        });
    }
Example 5
public void onBrowserEvent(Event event) {
        super.onBrowserEvent(event);
        if (DOM.eventGetType(event) == Event.ONLOAD) {
            VConsole.log("Embeddable onload");
            Util.notifyParentOfSizeChange(this, true);
        }
    }
Example 6
protected void onReconnect(JavaScriptObject request,
            final AtmosphereResponse response) {
        if (state == State.CONNECTED) {
            VConsole.log("No onClose was received before reconnect. Forcing state to closed.");
            state = State.CONNECT_PENDING;
        }
        VConsole.log("Reopening push connection");
    }
Example 7
protected void onOpen(AtmosphereResponse response) {
        VConsole.log("Push connection established using "
                + response.getTransport());
        onConnect(response);
    }
Example 8
private void connect() {
        String baseUrl = connection
                .translateVaadinUri(ApplicationConstants.APP_PROTOCOL_PREFIX
                        + ApplicationConstants.PUSH_PATH + '/');
        String extraParams = UIConstants.UI_ID_PARAMETER + "="
                + connection.getConfiguration().getUIId();
        extraParams += "&" + ApplicationConstants.CSRF_TOKEN_PARAMETER + "="
                + connection.getCsrfToken();

        // uri is needed to identify the right connection when closing
        uri = ApplicationConnection.addGetParameters(baseUrl, extraParams);

        VConsole.log("Establishing push connection");
        socket = doConnect(uri, getConfig());
    }
Example 9
public boolean drop(VDragEvent drag) {
        VConsole.log("Drop!");

        // Un-emphasis any selections
        getLayout().deEmphasis();

        // Update the details
        getLayout().updateDragDetails(drag);

        return getLayout().postDropHook(drag) && super.drop(drag);
    }