Пример #1
0
  /**
   * This method initializes titlePanel
   *
   * @return javax.swing.JPanel
   */
  private JPanel getTitlePanel() {
    if (titlePanel == null) {
      String title = "";
      String subTitle = "";

      if (this.update) {
        title = "Update Privilege(s)";
        subTitle =
            "Update a users privilege(s) on the stem " + browser.getStem().getDisplayExtension();
      } else {
        title = "Grant Privilege(s)";
        subTitle =
            "Grant a user privilege(s) on the stem " + browser.getStem().getDisplayExtension();
      }

      titlePanel = new TitlePanel(title, subTitle);
    }
    return titlePanel;
  }
Пример #2
0
 public StemPrivilegeWindow(StemBrowser browser, StemPrivilegeCaddy caddy) {
   super();
   this.caddy = caddy;
   this.browser = browser;
   this.update = true;
   this.targetStem = browser.getStem();
   if (caddy == null) {
     update = false;
   } else {
     update = true;
   }
   initialize();
 }