Example usage for com.google.gwt.tok.client Stream getConnection

List of usage examples for com.google.gwt.tok.client Stream getConnection

Introduction

In this page you can find the example usage for com.google.gwt.tok.client Stream getConnection.

Prototype

public Connection getConnection() 

Source Link

Usage

From source file:com.google.gwt.tok.test.client.model.TokModel.java

private void createStreamPanel(List<Stream> streams) {
    for (Stream stream : streams) {
        if (stream.getConnection().getConnectionId().equals(this.session.getConnection().getConnectionId())) {
            // Make sure we don't subscribe to ourself
            continue;
        }/*from www.  java 2 s  . c o m*/
        EVENT_BUS.fireEvent(new NewStreamEvent(stream));
    }
}

From source file:com.google.gwt.tok.test.client.model.TokModel.java

private void deleteStreamPanel(List<Stream> streams) {
    for (Stream stream : streams) {
        if (stream.getConnection().getConnectionId().equals(this.session.getConnection().getConnectionId())) {
            // Make sure we don't subscribe to ourself
            continue;
        }//  w ww.  j av  a2s .  c o  m
        EVENT_BUS.fireEvent(new StreamDeletedEvent(stream));
    }
}