/**
  * Toggles the visibility of the filter field defined for the give column ID.
  *
  * @param columnId Column/Property ID of the filter to toggle
  * @param visible true to set visible, false to set hidden
  */
 public void setFilterFieldVisible(Object columnId, boolean visible) {
   Component component = columnIdToFilterMap.get(columnId);
   if (component != null) {
     component.setVisible(visible);
     reRenderFilterFields = true;
     markAsDirty();
   }
 }
Пример #2
0
  private void toggleMaximized(final Component panel, final boolean maximized) {
    for (Iterator<Component> it = root.iterator(); it.hasNext(); ) {
      it.next().setVisible(!maximized);
    }
    dashboardPanels.setVisible(true);

    for (Iterator<Component> it = dashboardPanels.iterator(); it.hasNext(); ) {
      Component c = it.next();
      c.setVisible(!maximized);
    }

    if (maximized) {
      panel.setVisible(true);
      panel.addStyleName("max");
    } else {
      panel.removeStyleName("max");
    }
  }