Exemple #1
0
 /*==========================================================
  * public methods
  *==========================================================*/
 public void processData(Object data) {
   Vector v = new Vector();
   NameValuePairs obj = (NameValuePairs) data;
   v.addElement(
       new JLabel(
           obj.get(IMPL_NAME),
           CMSAdminUtil.getImage(CMSAdminResources.IMAGE_RULE_PLUGIN),
           JLabel.LEFT));
   v.addElement(obj.get(IMPL_CLASS));
   // v.addElement(obj.getValue(IMPL_DESC));
   addRow(v, data);
 }
Exemple #2
0
  /*==========================================================
   * public methods
   *==========================================================*/
  public void processData(Object data) {
    Vector v = new Vector();

    NameValuePairs obj = (NameValuePairs) data;

    // XXX NEED TO CHANGE if we are going to have multi-column table
    v.addElement(
        new JLabel(
            obj.get(CERT_NAME),
            CMSAdminUtil.getImage(CMSAdminResources.IMAGE_CERTICON_SMALL),
            JLabel.LEFT));
    addRow(v, data);
  }
Exemple #3
0
  protected void init() {
    GridBagLayout gb = new GridBagLayout();
    GridBagConstraints gbc = new GridBagConstraints();
    setLayout(gb);

    JLabel subjectDNLbl = makeJLabel("SUBJECTDN");
    CMSAdminUtil.resetGBC(gbc);
    gbc.anchor = gbc.NORTHWEST;
    gbc.weightx = 1.0;
    gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, 0, COMPONENT_SPACE);
    add(subjectDNLbl, gbc);

    JLabel issuerLbl = makeJLabel("ISSUE");
    CMSAdminUtil.resetGBC(gbc);
    gbc.anchor = gbc.NORTHWEST;
    gbc.gridwidth = gbc.REMAINDER;
    gbc.weightx = 1.0;
    gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, 0, COMPONENT_SPACE);
    add(issuerLbl, gbc);

    JTextArea subjectText = new JTextArea(null, null, 0, 0);
    JScrollPane subjectScrollPane =
        new JScrollPane(
            subjectText,
            JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
            JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    // subjectScrollPane.setPreferredSize(new Dimension(50, 30));
    CMSAdminUtil.resetGBC(gbc);
    gbc.anchor = gbc.NORTHWEST;
    gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, 0);
    gbc.weighty = 1.0;
    gbc.weightx = 1.0;
    gbc.fill = gbc.BOTH;
    add(subjectScrollPane, gbc);

    JTextArea issueText = new JTextArea(null, null, 0, 0);
    JScrollPane issueScrollPane =
        new JScrollPane(
            issueText,
            JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
            JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    // issueScrollPane.setPreferredSize(new Dimension(50, 30));
    CMSAdminUtil.resetGBC(gbc);
    gbc.insets = new Insets(0, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE);
    gbc.anchor = gbc.NORTHWEST;
    gbc.weighty = 1.0;
    gbc.weightx = 1.0;
    gbc.fill = gbc.BOTH;
    gbc.gridwidth = gbc.REMAINDER;
    add(issueScrollPane, gbc);

    JTextArea infoText = new JTextArea(null, null, 0, 0);
    gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE);
    infoText.setPreferredSize(new Dimension(50, 20));
    gbc.fill = gbc.BOTH;
    gbc.anchor = gbc.NORTHWEST;
    gbc.gridwidth = gbc.REMAINDER;
    gbc.weighty = 1.0;
    add(infoText, gbc);

    mAdd = makeJButton("ADD");
    CMSAdminUtil.resetGBC(gbc);
    gbc.anchor = gbc.NORTHEAST;
    gbc.fill = gbc.NONE;
    gbc.insets = new Insets(COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE, COMPONENT_SPACE);
    gbc.gridwidth = gbc.REMAINDER;
    add(mAdd, gbc);

    super.init();
  }
Exemple #4
0
 public void callHelp() {
   CMSAdminUtil.help(HELPINDEX);
 }