Package net.imgseek.server.admin.client.Sink

Examples of net.imgseek.server.admin.client.Sink.SinkInfo


    sinks.add(info);
  }

  public SinkInfo find(String sinkName) {
    for (int i = 0; i < sinks.size(); ++i) {
      SinkInfo info = (SinkInfo) sinks.get(i);
      if (info.getName().equals(sinkName)) {
        return info;
      }
    }

    return null;
View Full Code Here


    if (selectedSink != -1) {
      list.getWidget(selectedSink).removeStyleName("ks-SinkItem-selected");
    }
   
    for (int i = 0; i < sinks.size(); ++i) {
      SinkInfo info = (SinkInfo) sinks.get(i);
      if (info.getName().equals(name)) {
        selectedSink = i;
        list.getWidget(selectedSink).addStyleName("ks-SinkItem-selected");
        return;
      }
    }
View Full Code Here

  }

  public static void manualRefreshAllSinks() {
    for (@SuppressWarnings("unchecked")
    Iterator<SinkInfo> iter = list.getSinks().iterator(); iter.hasNext();) {
      SinkInfo element = iter.next();
      element.getInstance().manualRefreshAll();
    }
  }
View Full Code Here

    // Start timer
    Timer t = new Timer() {
      public void run() {
        for (@SuppressWarnings("unchecked")
        Iterator<SinkInfo> iter = list.getSinks().iterator(); iter.hasNext();) {
          SinkInfo element = iter.next();
          element.getInstance().autoRefreshAll();
        }
      }
    };
    // Schedule the timer to run once in 5 seconds.
    t.scheduleRepeating(5000);
View Full Code Here

  public void onValueChange(ValueChangeEvent<String> event) {
    // Find the SinkInfo associated with the history context. If one is
    // found, show it (It may not be found, for example, when the user mis-
    // types a URL, or on startup, when the first context will be "").
    String token = event.getValue();
    SinkInfo info = list.find(token);
    if (info == null) {
      showInfo();
      return;
    }
    show(info, false);
View Full Code Here

TOP

Related Classes of net.imgseek.server.admin.client.Sink.SinkInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.