⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 permistargetpolicy.java

📁 一个完整的XACML工程,学习XACML技术的好例子!
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
        targetCancelButton = new javax.swing.JButton();
        targetCloseButton = new javax.swing.JButton();
        optionPanel1 = new javax.swing.JPanel();
        ldapRadioButton1 = new javax.swing.JRadioButton();
        urlRadioButton1 = new javax.swing.JRadioButton();
        urlPanel = new javax.swing.JPanel();
        urlLabel = new javax.swing.JLabel();
        urlTextField = new javax.swing.JTextField();
        resourcePanel1 = new javax.swing.JPanel();
        resourceLabel = new javax.swing.JLabel();
         targetObjectClassTextField = new javax.swing.JTextField();
        resourceButtonPanel = new javax.swing.JPanel();
        targetObjectClassAddButton = new javax.swing.JButton();
        resourceDeleteButton = new javax.swing.JButton();
        resourceTypeScrollPane = new javax.swing.JScrollPane();
         targetObjectClassList = new javax.swing.JList();
        targetObjectClassList = new JList(targetObjectClassListModel);
        
        setLayout(new BorderLayout());
        targetInternalFrame.getContentPane().setLayout(new AbsoluteLayout());
        targetInternalFrame.setTitle(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("tar_pol_frm_title"));
        targetInternalFrame.setPreferredSize(new Dimension(300, 300));
        targetPolicyViewPanel.setLayout(new AbsoluteLayout());
        targetDomainPanel.setLayout(new AbsoluteLayout());
        targetDomainPanel.setBorder(new TitledBorder(
                         null, 
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("tar_pol_brd_avail_resources"), 
                         TitledBorder.DEFAULT_JUSTIFICATION, 
                         TitledBorder.DEFAULT_POSITION, 
                         new Font("Dialog", 1, 14)));
        targetViewList.setToolTipText(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("tar_pol_tt_vlist_avail_resources"));
        targetViewScrollPane.setViewportView(targetViewList);
        targetDomainPanel.add(targetViewScrollPane, 
                                    new AbsoluteConstraints(30, 110, 320, 230));
        targetViewComboBox.setBackground(new Color(255, 255, 204));
        targetViewComboBox.setToolTipText(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("tar_pol_tt_combo_box"));
        targetViewComboBox.setActionCommand(VIEW_ACTION);
        targetViewComboBox.addActionListener(this);
        targetDomainPanel.add(targetViewComboBox, 
                                      new AbsoluteConstraints(30, 50, 320, -1));
        
        targetPolicyViewPanel.add(targetDomainPanel, 
                                     new AbsoluteConstraints(70, 40, 380, 350));
        targetViewEditButton.setMnemonic('E');
        targetViewEditButton.setText(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("sub_pol_btn_edit"));
        targetViewEditButton.setToolTipText(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("tar_pol_tt_btn_v_edit"));
        targetViewEditButton.setMaximumSize(new Dimension(70, 26));
        targetViewEditButton.setMinimumSize(new Dimension(70, 26));
        targetViewEditButton.setPreferredSize(new Dimension(70, 26));
        targetViewEditButton.setActionCommand(EDIT_ACTION);
        targetViewEditButton.addActionListener(this);
        targetDomainButtonPanel.add(targetViewEditButton);
        
        targetViewDeleteButton.setMnemonic('D');
        targetViewDeleteButton.setText(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("sub_pol_btn_v_del"));
        targetViewDeleteButton.setToolTipText(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("tar_pol_tt_btn_v_delete"));
        targetViewDeleteButton.setActionCommand(DELETE_ACTION);
        targetViewDeleteButton.addActionListener(this);
        targetDomainButtonPanel.add(targetViewDeleteButton);
        
        closeTargetButton.setMnemonic('l');
        closeTargetButton.setText(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("pol_num_btn_close"));
        closeTargetButton.setToolTipText(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("pol_num_tt_btn_close"));
        closeTargetButton.setMaximumSize(new Dimension(70, 26));
        closeTargetButton.setMinimumSize(new Dimension(70, 26));
        closeTargetButton.setPreferredSize(new Dimension(70, 26));
        closeTargetButton.setActionCommand(CLOSE_ACTION);
        closeTargetButton.addActionListener(this);
        targetDomainButtonPanel.add(closeTargetButton);
        
        targetPolicyViewPanel.add(targetDomainButtonPanel, 
                                     new AbsoluteConstraints(70, 430, 380, 40));
        targetDomainTabbedPane.addTab(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("sub_pol_tab_v"), targetPolicyViewPanel);
       // targetPolicyCreatePanel.setLayout(new AbsoluteLayout());
        targetDomainsPanel.setLayout(new AbsoluteLayout());
        
     
        targetDomainsPanel.add(targetDomainButtonsPanel, 
                                    new AbsoluteConstraints(200, 90, 100, 110));
       
       
        targetDomainLDAPLabel.setText(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("soa_pol_lbl_LDAPDir"));
        targetDomainsPanel.add(targetDomainLDAPLabel, 
                                      new AbsoluteConstraints(10, 60, 190, -1));
        //targetPolicyCreatePanel.add(targetDomainsPanel, 
          //                           new AbsoluteConstraints(10, 70, 490, 280));
        targetDomainIDPanel.setLayout(new AbsoluteLayout());
        targetDomainIDPanel.setBorder(new TitledBorder(
                         null, 
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("tar_pol_brd_resource_id"), 
                         TitledBorder.DEFAULT_JUSTIFICATION, 
                         TitledBorder.DEFAULT_POSITION, 
                         new Font("Dialog", 1, 14)));
       
        
        
        setLayout(new java.awt.BorderLayout());

        targetPolicyCreatePanel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        ldapPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        ldapPanel1.setBorder(new javax.swing.border.TitledBorder(null, ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("ldap_directory"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 1, 14)));
        ldapPanel1.add(targetDnTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 30, 370, 20));

        ldapDnLabel.setText(ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("ldap_dn"));
        ldapPanel1.add(ldapDnLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 30, 60, 20));
       //
        targetIncludeButton.setMnemonic('I');
        targetIncludeButton.setText(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("sub_pol_btn_include"));
        targetIncludeButton.setToolTipText(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("tar_pol_tt_btn_include"));
        targetIncludeButton.setMaximumSize(new Dimension(79, 26));
        targetIncludeButton.setMinimumSize(new Dimension(79, 26));
        targetIncludeButton.setPreferredSize(new Dimension(79, 26));
        targetIncludeButton.setActionCommand(INCLUDE_ACTION);
        targetIncludeButton.addActionListener(this);
       ldapButtonPanel.add(targetIncludeButton);
        
        targetExcludeButton.setMnemonic('X');
        targetExcludeButton.setText(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("sub_pol_btn_exclude"));
        targetExcludeButton.setToolTipText(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("tar_pol_tt_btn_exclude"));
        targetExcludeButton.setActionCommand(EXCLUDE_ACTION);
        targetExcludeButton.addActionListener(this);
        targetExcludeButton.setEnabled(false);
        ldapButtonPanel.add(targetExcludeButton);
       
        
        targetDeleteButton.setMnemonic('D');
        targetDeleteButton.setText(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("sub_pol_btn_cm_delete"));
        targetDeleteButton.setToolTipText(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("sub_pol_tt_btn_cm_delete"));
        targetDeleteButton.setMaximumSize(new Dimension(79, 26));
        targetDeleteButton.setMinimumSize(new Dimension(79, 26));
        targetDeleteButton.setPreferredSize(new Dimension(79, 26));
        targetDeleteButton.setActionCommand(DELETE1_ACTION);
        targetDeleteButton.addActionListener(this);
        targetDeleteButton.setEnabled(false);
       ldapButtonPanel.add(targetDeleteButton);
  
      
        ldapPanel1.add(ldapButtonPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 70, 100, 100));

        targetTreeScrollPane.setViewportView(targetTree);

        ldapPanel1.add(targetTreeScrollPane, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 70, 180, 190));

        // targetLdapScrollPane.setViewportView(ldap_dit);
         this.initLDAP_DIT();
        ldapPanel1.add(ldap_dit, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 70, 190, 190));

        ldapLabel1.setText(ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("ldap_directory"));
        ldapPanel1.add(ldapLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 50, 190, -1));

        targetPolicyCreatePanel.add(ldapPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 160, 490, 270));

        idPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
  
        idPanel1.setBorder(new TitledBorder(
                         null, 
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("tar_pol_brd_resource_id"), 
                         TitledBorder.DEFAULT_JUSTIFICATION, 
                         TitledBorder.DEFAULT_POSITION, 
                         new Font("Dialog", 1, 14)));
        targetIdTextField.setToolTipText(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("tar_pol_tt_tf_tar_dom_id"));
        highLighter(targetIdTextField);
        //targetIdTextField.requestFocus();
        targetIdTextField.addFocusListener(this);
        idPanel1.add(targetIdTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 20, 370, -1));

        targetPolicyCreatePanel.add(idPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 490, 60));

        targetOkButton.setMnemonic('o');
        targetOkButton.setText(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("pol_num_btn_ok"));
        targetOkButton.setToolTipText(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("pol_num_tt_btn_ok"));
        targetOkButton.setMaximumSize(new Dimension(73, 26));
        targetOkButton.setMinimumSize(new Dimension(73, 26));
        targetOkButton.setPreferredSize(new Dimension(73, 26));
        targetOkButton.setActionCommand(OK_ACTION);
        targetOkButton.addActionListener(this);
        buttonPanel1.add(targetOkButton);

        targetCancelButton.setMnemonic('c');
        targetCancelButton.setText(                         
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("pol_num_btn_cancel"));
        targetCancelButton.setToolTipText(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("pol_num_tt_btn_cancel"));
        targetCancelButton.setActionCommand(CANCEL_ACTION);
        targetCancelButton.addActionListener(this);

        buttonPanel1.add(targetCancelButton);

        targetCloseButton.setMnemonic('l');
        targetCloseButton.setText(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("pol_num_btn_close"));
        targetCloseButton.setToolTipText(
                         ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("pol_num_tt_btn_close"));
        targetCloseButton.setMaximumSize(new Dimension(73, 26));
        targetCloseButton.setMinimumSize(new Dimension(73, 26));
        targetCloseButton.setPreferredSize(new Dimension(73, 26));
        targetCloseButton.setActionCommand(CLOSE1_ACTION);
        targetCloseButton.addActionListener(this);
        buttonPanel1.add(targetCloseButton);

        targetPolicyCreatePanel.add(buttonPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 510, 410, 40));

        optionPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        optionPanel1.setBorder(new javax.swing.border.TitledBorder(ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("resource_option")));
        optionPanel1.setToolTipText(ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("resource_option_tt"));
        ldapRadioButton1.setSelected(true);
        ldapRadioButton1.setText(ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("ldap"));
         ldapRadioButton1.setActionCommand(LDAP_ACTION);
         ldapRadioButton1.addActionListener(this);
        optionPanel1.add(ldapRadioButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 10, -1, 30 ));
         optionButtonGroup.add(ldapRadioButton1); 
        
        urlRadioButton1.setText(ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("url"));
        urlRadioButton1.setToolTipText(ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("url_tt"));
         urlRadioButton1.setActionCommand(URL_ACTION);
         urlRadioButton1.addActionListener(this);
        
       optionPanel1.add(urlRadioButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 10, -1, 30));
       optionButtonGroup.add(urlRadioButton1);
        //250, 10, -1, 30   120, 10, -1, 30
        targetPolicyCreatePanel.add(optionPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 60, 490, 50));

        urlPanel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        urlPanel.setBorder(new javax.swing.border.TitledBorder(ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("url_full")));
        urlPanel.setForeground(new Color(153, 153, 153));
        urlLabel.setText(ResourceBundle.getBundle("issrg/editor/gui/Editor_GUI_i18n").
                         getString("url"));
        urlPanel.add(urlLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 20, 80, 20));

        urlPanel.add(urlTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 20, 370, -1));

        targetPolicyCreatePanel.add(urlPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 110, 490, 50));

        resourcePanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -