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

jvergara
01.23.2008 7902eb96a1336afd98e79d86d8dc1c41a0759b0e
In order to complete the public interface of the CategoryPanel class, make the child component and category object passed in the constructor available through public getter methods.
1 files modified
23 ■■■■■ changed files
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/components/CategoryPanel.java 23 ●●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/guitools/org/opends/guitools/controlpanel/ui/components/CategoryPanel.java
@@ -49,6 +49,7 @@
  private static final long serialVersionUID = 8941374689175404431L;
  private JPanel panel;
  private JComponent child;
  private Category category;
  private CategoryButton expandButton;
  private boolean expanded = true;
@@ -74,6 +75,8 @@
    expandButton.addChangeListener(new CollapseListener());
    add(expandButton, BorderLayout.NORTH);
    this.category = category;
    setBorder(categoryBorder);
  }
@@ -95,6 +98,26 @@
  }
  /**
   * Returns the category associated with this panel.
   * @return the category associated with this panel.
   */
  public Category getCategory()
  {
    return category;
  }
  /**
   * Returns the component that must be displayed by this panel if its
   * CategoryButton is in a certain state.
   * @return the component that must be displayed by this panel if its
   * CategoryButton is in a certain state.
   */
  public JComponent getChild()
  {
    return child;
  }
  /**
   * Returns <CODE>true</CODE> if the panel is extended and <CODE>false</CODE>
   * otherwise.
   * @return <CODE>true</CODE> if the panel is extended and <CODE>false</CODE>