mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
29.44.2009 126fdec53cddaab214ffb0d7b85f93e65bfa37e7
Fix for issue 3948 (control-panel: some information in the "Monitoring -> General Information -> Entry Cache" panel are not mapped)
Display the attributes when the server returns them (so the layout of the panel will vary depending on the entry cache implementation used by the server).
1 files modified
23 ■■■■■ changed files
opends/src/guitools/org/opends/guitools/controlpanel/ui/EntryCachesMonitoringPanel.java 23 ●●●●● patch | view | raw | blame | history
opends/src/guitools/org/opends/guitools/controlpanel/ui/EntryCachesMonitoringPanel.java
@@ -66,6 +66,13 @@
      monitoringLabels.add(Utilities.createDefaultLabel());
    }
  }
  private ArrayList<JLabel> labels = new ArrayList<JLabel>();
  {
    for (int i=0; i<ngOperations.size(); i++)
    {
      labels.add(Utilities.createPrimaryLabel(getLabel(ngOperations.get(i))));
    }
  }
  /**
   * Default constructor.
@@ -108,13 +115,12 @@
    gbc.gridwidth = 1;
    for (int i=0; i<ngOperations.size(); i++)
    {
      JLabel l = Utilities.createPrimaryLabel(getLabel(ngOperations.get(i)));
      gbc.gridy ++;
      gbc.insets.left = 0;
      gbc.gridx = 0;
      gbc.weightx = 0.0;
      gbc.gridwidth = 1;
      add(l, gbc);
      add(labels.get(i), gbc);
      gbc.insets.left = 10;
      gbc.gridx = 1;
      gbc.gridwidth = 2;
@@ -151,6 +157,19 @@
    if (csr != null)
    {
      updateMonitoringInfo(ngOperations, monitoringLabels, csr);
      int index = 0;
      for (MonitoringAttributes attr : ngOperations)
      {
        if (Utilities.getFirstMonitoringValue(csr, attr.getAttributeName())
            == null)
        {
          monitoringLabels.get(index).setVisible(false);
          labels.get(index).setVisible(false);
        }
        index ++;
      }
      revalidate();
      repaint();
    }
    else
    {