Esempio n. 1
0
  public void onClose() {
    ChangeSlicer transform = model.getTransform(ChangeSlicer.class);

    Hierarchy hierarchy = getHierarchy();

    if (!transform.getHierarchies().contains(hierarchy)) {
      removeHierarchy(getHierarchyName());
    }

    setHierarchyName(null);
  }
Esempio n. 2
0
  protected void configureFilter() {
    if (model != null && filterPanel != null) {
      filterPanel.getChildren().clear();

      if (model.isInitialized()) {
        ChangeSlicer transform = model.getTransform(ChangeSlicer.class);

        List<Hierarchy> hierarchies = transform.getHierarchies();

        for (Hierarchy hierarchy : hierarchies) {
          UIComponent panel = createFilterItem(hierarchy);
          filterPanel.getChildren().add(panel);
        }
      }
    }
  }