Esempio n. 1
0
  @Override
  public void showSelection(String name, int hour) {

    service.getRules(
        name,
        new Date(),
        new GenericAsyncCallback<List<VisualRule>>() {

          @Override
          public void onSuccess(List<VisualRule> ruleList) {
            RuleTablePopup popup = new RuleTablePopup("Rule list", ruleList);
            popup.show();
          }
        });
  }
Esempio n. 2
0
  @Override
  public void draw() {

    if (listBox.getItemCount() != 0) {

      service.getRuleHistory(
          listBox.getItemText(listBox.getSelectedIndex()),
          new GenericAsyncCallback<List<Long>>() {

            @Override
            public void onSuccess(List<Long> activations) {
              chart.draw(activations);
            }
          });
    }
  }
Esempio n. 3
0
  @Override
  public void updateComboBox() {

    service.getRuleNames(
        new GenericAsyncCallback<List<String>>() {

          @Override
          public void onSuccess(List<String> eventNameList) {

            for (String eventName : eventNameList) {
              listBox.addItem(eventName);
            }

            draw();
          }
        });
  }