Example usage for com.vaadin.client.communication StateChangeEvent StateChangeEvent

List of usage examples for com.vaadin.client.communication StateChangeEvent StateChangeEvent

Introduction

In this page you can find the example usage for com.vaadin.client.communication StateChangeEvent StateChangeEvent.

Prototype

public StateChangeEvent(ServerConnector connector, JsonObject stateJson, boolean initialStateChange) 

Source Link

Document

/** Creates a new state change event.

Usage

From source file:org.vaadin.alump.offlinebuilder.client.conn.OButtonConnector.java

License:Open Source License

@Override
public void onOfflineState(SharedState state, JSONObject jsonState) {
    offlineState = (OButtonState) state;

    // TODO: replace with offline handler checks
    if (offlineState.disableInOfflineMode) {
        offlineState.enabled = false;/*  ww  w .  ja v  a2  s  .com*/
    }

    fireEvent(new StateChangeEvent(this, jsonState, true));
}

From source file:org.vaadin.alump.offlinebuilder.client.conn.OCheckBoxConnector.java

License:Open Source License

@Override
public void onOfflineState(SharedState state, JSONObject jsonState) {
    offlineState = (OCheckBoxState) state;
    fireEvent(new StateChangeEvent(this, jsonState, true));
}

From source file:org.vaadin.alump.offlinebuilder.client.conn.OCssLayoutConnector.java

License:Open Source License

@Override
public void onOfflineState(SharedState state, JSONObject jsonState) {
    offlineState = (CssLayoutState) state;
    fireEvent(new StateChangeEvent(this, jsonState, true));
}

From source file:org.vaadin.alump.offlinebuilder.client.conn.OFormLayoutConnector.java

License:Open Source License

@Override
public void onOfflineState(SharedState state, JSONObject jsonState) {
    offlineState = (AbstractOrderedLayoutState) state;
    fireEvent(new StateChangeEvent(this, jsonState, true));
}

From source file:org.vaadin.alump.offlinebuilder.client.conn.OHorizontalLayoutConnector.java

License:Open Source License

@Override
public void onOfflineState(SharedState state, JSONObject jsonState) {
    offlineState = (HorizontalLayoutState) state;
    fireEvent(new StateChangeEvent(this, jsonState, true));
}

From source file:org.vaadin.alump.offlinebuilder.client.conn.OImageConnector.java

License:Open Source License

@Override
public void onOfflineState(SharedState state, JSONObject jsonState) {
    offlineState = (ImageState) state;//from   ww  w.  j a va  2  s . com
    fireEvent(new StateChangeEvent(this, jsonState, true));
}

From source file:org.vaadin.alump.offlinebuilder.client.conn.OLabelConnector.java

License:Open Source License

@Override
public void onOfflineState(SharedState state, JSONObject jsonState) {
    offlineState = (LabelState) state;/*from   ww w  . j a va 2s.  c om*/
    fireEvent(new StateChangeEvent(this, jsonState, true));
}

From source file:org.vaadin.alump.offlinebuilder.client.conn.OLinkConnector.java

License:Open Source License

@Override
public void onOfflineState(SharedState state, JSONObject jsonState) {
    offlineState = (OLinkState) state;//from w w w  .  j a  v a2 s.  c om
    fireEvent(new StateChangeEvent(this, jsonState, true));
}

From source file:org.vaadin.alump.offlinebuilder.client.conn.OVerticalLayoutConnector.java

License:Open Source License

@Override
public void onOfflineState(SharedState state, JSONObject jsonState) {
    offlineState = (VerticalLayoutState) state;
    StateChangeEvent event = new StateChangeEvent(this, jsonState, true);
    fireEvent(event);/*from   ww  w  . j av a 2 s.c  o m*/
}