Update of /cvsroot/sblim/wbemsmt-dns-eui/jswing/org/sblim/wbemsmt/dns/gui/wizard/panels In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15299/jswing/org/sblim/wbemsmt/dns/gui/wizard/panels Added Files: ResourceRecordWizardData.java ResourceRecordWizardPage1.java ZoneWizardPage21.java ZoneWizardPage01.java ZoneWizardPage2.java ZoneWizardPage3c.java ZoneWizardPage5.java ACLWizardPage2.java ZoneWizardPage31.java ResourceRecordWizardPage5.java ZoneWizardPage3b.java ZoneWizardPage3a.java ACLWizardPage3.java ACLWizardPage1.java ZoneWizardData.java ResourceRecordWizardPage2.java ACLWizardData.java ZoneWizardPage1.java Log Message: WBEM-SMT DNS EUI component. First initial upload. --- NEW FILE: ZoneWizardPage1.java --- /** * ZoneWizardPage1.java * * (C) Copyright IBM Corp. 2005 * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. * * You can obtain a current copy of the Common Public License from * http://www.opensource.org/licenses/cpl1.0.php * * Author: Bert Lange <la...@de...> * * Contributors: * Rodrigo Ceron <rc...@br...> * Fernando Aires <fa...@br...> **/ /* * Created on Apr 4, 2005 * */ package org.sblim.wbemsmt.dns.gui.wizard.panels; import java.awt.FlowLayout; import java.awt.GridLayout; import javax.swing.BoxLayout; import javax.swing.ButtonGroup; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JRadioButton; import org.sblim.wbemsmt.dns.bl.fco.DNSZone; /** * Author L123394 * */ public class ZoneWizardPage1 extends JPanel { private JRadioButton jRadioButton = null; private JRadioButton jRadioButton1 = null; private JRadioButton jRadioButton3 = null; private JRadioButton jRadioButton4 = null; private JRadioButton jRadioButton5 = null; private JRadioButton jRadioButton6 = null; private ButtonGroup bGroup = new ButtonGroup(); private JPanel jPanel = null; private JPanel jPanel1 = null; private JPanel jPanel2 = null; private JLabel jLabel = null; /** * This is the default constructor */ public ZoneWizardPage1() { super(); initialize(); } public ButtonGroup getBGroup(){ return this.bGroup; } /** * This method initializes this * * @return void */ private void initialize() { this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); this.setSize(300,200); this.add(getJPanel(), null); this.add(getJPanel1(), null); this.add(getJPanel2(), null); bGroup.add(getJRadioButton4()); bGroup.add(getJRadioButton3()); bGroup.add(getJRadioButton1()); bGroup.add(getJRadioButton()); bGroup.add(getJRadioButton5()); bGroup.add(getJRadioButton6()); } /** * This method initializes jRadioButton * * @return javax.swing.JRadioButton */ private JRadioButton getJRadioButton() { if (jRadioButton == null) { jRadioButton = new JRadioButton(); jRadioButton.setText(DNSZone.CIM_VALUEMAP_TYPE[5]); jRadioButton.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); jRadioButton.setName(DNSZone.CIM_VALUEMAP_TYPE[5]); } return jRadioButton; } /** * This method initializes jRadioButton1 * * @return javax.swing.JRadioButton */ private JRadioButton getJRadioButton1() { if (jRadioButton1 == null) { jRadioButton1 = new JRadioButton(); jRadioButton1.setText(DNSZone.CIM_VALUEMAP_TYPE[4]); jRadioButton1.setName(DNSZone.CIM_VALUEMAP_TYPE[4]); jRadioButton1.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); } return jRadioButton1; } /** * This method initializes jRadioButton3 * * @return javax.swing.JRadioButton */ private JRadioButton getJRadioButton3() { if (jRadioButton3 == null) { jRadioButton3 = new JRadioButton(); jRadioButton3.setText(DNSZone.CIM_VALUEMAP_TYPE[2]); jRadioButton3.setName(DNSZone.CIM_VALUEMAP_TYPE[2]); jRadioButton3.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); } return jRadioButton3; } /** * This method initializes jRadioButton4 * * @return javax.swing.JRadioButton */ private JRadioButton getJRadioButton4() { if (jRadioButton4 == null) { jRadioButton4 = new JRadioButton(); jRadioButton4.setText(DNSZone.CIM_VALUEMAP_TYPE[1]); jRadioButton4.setName(DNSZone.CIM_VALUEMAP_TYPE[1]); jRadioButton4.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); } return jRadioButton4; } /** * This method initializes jRadioButton5 * * @return javax.swing.JRadioButton */ private JRadioButton getJRadioButton5() { if (jRadioButton5 == null) { jRadioButton5 = new JRadioButton(); jRadioButton5.setText(DNSZone.CIM_VALUEMAP_TYPE[3]); jRadioButton5.setName(DNSZone.CIM_VALUEMAP_TYPE[3]); jRadioButton5.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); } return jRadioButton5; } /** * This method initializes jRadioButton5 * * @return javax.swing.JRadioButton */ private JRadioButton getJRadioButton6() { if (jRadioButton6 == null) { jRadioButton6 = new JRadioButton(); jRadioButton6.setText("Reverse"); jRadioButton6.setName("Reverse"); jRadioButton6.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); } return jRadioButton6; } /** * This method initializes jPanel * * @return javax.swing.JPanel */ private JPanel getJPanel() { if (jPanel == null) { jLabel = new JLabel(); FlowLayout flowLayout5 = new FlowLayout(); jPanel = new JPanel(); jPanel.setLayout(flowLayout5); jPanel.setPreferredSize(new java.awt.Dimension(339,26)); jLabel.setText("Specify the type of the new Zone"); jLabel.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); flowLayout5.setAlignment(java.awt.FlowLayout.LEFT); flowLayout5.setHgap(5); jPanel.add(jLabel, null); } return jPanel; } /** * This method initializes jPanel1 * * @return javax.swing.JPanel */ private JPanel getJPanel1() { if (jPanel1 == null) { GridLayout gridLayout4 = new GridLayout(); jPanel1 = new JPanel(); jPanel1.setLayout(gridLayout4); gridLayout4.setRows(6); gridLayout4.setHgap(0); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.LOWERED), "Select a type", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12), java.awt.Color.black)); jPanel1.add(getJRadioButton4(), null); jPanel1.add(getJRadioButton3(), null); jPanel1.add(getJRadioButton1(), null); jPanel1.add(getJRadioButton(), null); jPanel1.add(getJRadioButton5(), null); jPanel1.add(getJRadioButton6(), null); } return jPanel1; } /** * This method initializes jPanel2 * * @return javax.swing.JPanel */ private JPanel getJPanel2() { if (jPanel2 == null) { jPanel2 = new JPanel(); } return jPanel2; } } --- NEW FILE: ZoneWizardPage01.java --- /** * ZoneWizardPage1.java * * (C) Copyright IBM Corp. 2005 * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. * * You can obtain a current copy of the Common Public License from * http://www.opensource.org/licenses/cpl1.0.php * * Author: Bert Lange <la...@de...> * * Contributors: * Rodrigo Ceron <rc...@br...> **/ /* * Created on Aug 13, 2005, ceron */ package org.sblim.wbemsmt.dns.gui.wizard.panels; import java.awt.FlowLayout; import java.awt.GridLayout; import javax.swing.BoxLayout; import javax.swing.ButtonGroup; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JRadioButton; /** * Author ceron * */ public class ZoneWizardPage01 extends JPanel { private JRadioButton jRadioButton6 = null; private ButtonGroup bGroup = new ButtonGroup(); private JPanel jPanel = null; private JPanel jPanel1 = null; private JPanel jPanel2 = null; private JLabel jLabel = null; private JRadioButton jRadioButton = null; private JRadioButton jRadioButton1 = null; /** * This is the default constructor */ public ZoneWizardPage01() { super(); initialize(); } public ButtonGroup getBGroup(){ return this.bGroup; } /** * This method initializes this * * @return void */ private void initialize() { this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); this.setSize(300,200); this.add(getJPanel(), null); this.add(getJPanel1(), null); this.add(getJPanel2(), null); bGroup.add(getJRadioButton1()); bGroup.add(getJRadioButton()); bGroup.add(getJRadioButton6()); } /** * This method initializes jRadioButton5 * * @return javax.swing.JRadioButton */ public JRadioButton getJRadioButton6() { if (jRadioButton6 == null) { jRadioButton6 = new JRadioButton(); jRadioButton6.setText("Create reverse zone for all master zones"); jRadioButton6.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); } return jRadioButton6; } /** * This method initializes jPanel * * @return javax.swing.JPanel */ private JPanel getJPanel() { if (jPanel == null) { jLabel = new JLabel(); FlowLayout flowLayout5 = new FlowLayout(); jPanel = new JPanel(); jPanel.setLayout(flowLayout5); jPanel.setPreferredSize(new java.awt.Dimension(339,26)); jLabel.setText("Specify the wizard type"); jLabel.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); flowLayout5.setAlignment(java.awt.FlowLayout.LEFT); flowLayout5.setHgap(5); jPanel.add(jLabel, null); } return jPanel; } /** * This method initializes jPanel1 * * @return javax.swing.JPanel */ private JPanel getJPanel1() { if (jPanel1 == null) { GridLayout gridLayout4 = new GridLayout(); jPanel1 = new JPanel(); jPanel1.setLayout(gridLayout4); gridLayout4.setRows(6); gridLayout4.setHgap(0); jPanel1.add(getJRadioButton1(), null); jPanel1.add(getJRadioButton(), null); jPanel1.add(getJRadioButton6(), null); } return jPanel1; } /** * This method initializes jPanel2 * * @return javax.swing.JPanel */ private JPanel getJPanel2() { if (jPanel2 == null) { jPanel2 = new JPanel(); } return jPanel2; } /** * This method initializes jRadioButton * * @return javax.swing.JRadioButton */ public JRadioButton getJRadioButton() { if (jRadioButton == null) { jRadioButton = new JRadioButton(); jRadioButton.setText("Create reverse zone for one master zone"); jRadioButton.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); } return jRadioButton; } /** * This method initializes jRadioButton1 * * @return javax.swing.JRadioButton */ public JRadioButton getJRadioButton1() { if (jRadioButton1 == null) { jRadioButton1 = new JRadioButton(); jRadioButton1.setText("Create reverse zone from resource records"); jRadioButton1.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); } return jRadioButton1; } } --- NEW FILE: ZoneWizardPage3b.java --- /** * ZoneWizardPage3b.java * * (C) Copyright IBM Corp. 2005 * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. * * You can obtain a current copy of the Common Public License from * http://www.opensource.org/licenses/cpl1.0.php * * Author: Bert Lange <la...@de...> * * Contributors: * Rodrigo Ceron <rc...@br...> * Fernando Aires <fa...@br...> **/ /* * Created on 05.04.2005 * */ package org.sblim.wbemsmt.dns.gui.wizard.panels; import java.awt.FlowLayout; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import javax.swing.BoxLayout; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; /** * Author L123394 * */ public class ZoneWizardPage3b extends JPanel { private JPanel jPanel = null; private JPanel jPanel1 = null; private JLabel jLabel = null; private JLabel jLabel1 = null; private JTextField jTextField = null; private JLabel jLabel2 = null; private JTextField jTextField1 = null; private JPanel jPanel4 = null; private JLabel jLabel3 = null; private JTextField jTextField2 = null; /** * This is the default constructor */ public ZoneWizardPage3b() { super(); initialize(); } /** * This method initializes this * * @return void */ private void initialize() { this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); this.setSize(300,200); this.setPreferredSize(new java.awt.Dimension(242,112)); this.add(getJPanel1(), null); this.add(getJPanel(), null); this.add(getJPanel4(), null); } /** * This method initializes jPanel * * @return javax.swing.JPanel */ private JPanel getJPanel() { if (jPanel == null) { jLabel3 = new JLabel(); GridBagConstraints gridBagConstraints2 = new GridBagConstraints(); GridBagConstraints gridBagConstraints3 = new GridBagConstraints(); GridBagConstraints gridBagConstraints9 = new GridBagConstraints(); GridBagConstraints gridBagConstraints8 = new GridBagConstraints(); GridBagConstraints gridBagConstraints7 = new GridBagConstraints(); GridBagConstraints gridBagConstraints6 = new GridBagConstraints(); jPanel = new JPanel(); jPanel.setLayout(new GridBagLayout()); jPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.LOWERED), "Name Server", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12), java.awt.Color.black)); jLabel2 = new JLabel(); jLabel2.setText("Name Server"); jLabel1 = new JLabel(); jLabel1.setText("IP Address "); jLabel1.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); jLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT); jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); gridBagConstraints6.gridx = 0; gridBagConstraints6.gridy = 0; gridBagConstraints6.ipadx = 0; gridBagConstraints6.ipady = 0; gridBagConstraints6.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints6.insets = new java.awt.Insets(5,5,5,5); gridBagConstraints7.gridx = 1; gridBagConstraints7.gridy = 0; gridBagConstraints7.weightx = 1.0; gridBagConstraints7.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints7.ipadx = 0; gridBagConstraints7.ipady = 0; gridBagConstraints7.insets = new java.awt.Insets(5,5,5,5); gridBagConstraints8.gridx = 0; gridBagConstraints8.gridy = 1; gridBagConstraints8.ipadx = 0; gridBagConstraints8.ipady = 0; gridBagConstraints8.insets = new java.awt.Insets(5,5,5,5); gridBagConstraints8.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints9.gridx = 1; gridBagConstraints9.gridy = 1; gridBagConstraints9.weightx = 1.0; gridBagConstraints9.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints9.ipadx = 0; gridBagConstraints9.ipady = 0; gridBagConstraints9.insets = new java.awt.Insets(5,5,5,5); jLabel2.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); gridBagConstraints2.gridx = 0; gridBagConstraints2.gridy = 2; gridBagConstraints2.insets = new java.awt.Insets(5,5,5,5); jLabel3.setText("Contact E-mail Address"); jLabel3.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); gridBagConstraints3.gridx = 1; gridBagConstraints3.gridy = 2; gridBagConstraints3.weightx = 1.0; gridBagConstraints3.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints3.insets = new java.awt.Insets(5,5,5,5); jPanel.add(jLabel2, gridBagConstraints6); jPanel.add(getJTextField1(), gridBagConstraints7); jPanel.add(jLabel1, gridBagConstraints8); jPanel.add(getJTextField(), gridBagConstraints9); jPanel.add(jLabel3, gridBagConstraints2); jPanel.add(getJTextField2(), gridBagConstraints3); } return jPanel; } /** * This method initializes jPanel1 * * @return javax.swing.JPanel */ private JPanel getJPanel1() { if (jPanel1 == null) { FlowLayout flowLayout5 = new FlowLayout(); jLabel = new JLabel(); jPanel1 = new JPanel(); jPanel1.setLayout(flowLayout5); jLabel.setText("Please specify the Name Server"); jLabel.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); jPanel1.setPreferredSize(new java.awt.Dimension(339,26)); flowLayout5.setAlignment(java.awt.FlowLayout.LEFT); jPanel1.add(jLabel, null); } return jPanel1; } /** * This method initializes jTextField * * @return javax.swing.JTextField */ public JTextField getJTextField() { if (jTextField == null) { jTextField = new JTextField(30); jTextField.setName("ipAddress"); } return jTextField; } /** * This method initializes jTextField1 * * @return javax.swing.JTextField */ public JTextField getJTextField1() { if (jTextField1 == null) { jTextField1 = new JTextField(30); jTextField1.setName("serverName"); } return jTextField1; } /** * This method initializes jPanel4 * * @return javax.swing.JPanel */ private JPanel getJPanel4() { if (jPanel4 == null) { jPanel4 = new JPanel(); jPanel4.setPreferredSize(new java.awt.Dimension(10,120)); } return jPanel4; } /** * This method initializes jTextField2 * * @return javax.swing.JTextField */ public JTextField getJTextField2() { if (jTextField2 == null) { jTextField2 = new JTextField(); } return jTextField2; } } --- NEW FILE: ResourceRecordWizardPage1.java --- /** * ResourceRecordWizardPage1.java * * (C) Copyright IBM Corp. 2005 * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. * * You can obtain a current copy of the Common Public License from * http://www.opensource.org/licenses/cpl1.0.php * * Author: Fernando Aires <fa...@br...> * * Contributors: **/ /* * Created on 07.04.2005 * */ package org.sblim.wbemsmt.dns.gui.wizard.panels; import java.awt.FlowLayout; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import javax.swing.BoxLayout; import javax.swing.DefaultListModel; import javax.swing.JLabel; import javax.swing.JList; import javax.swing.JPanel; import javax.swing.JScrollPane; import org.sblim.wbemsmt.dns.bl.fco.DNSResourceRecord; /** * Author L123394 * */ public class ResourceRecordWizardPage1 extends JPanel{ private JPanel jPanel = null; private JPanel jPanel1 = null; private JLabel jLabel = null; String[] sl = new String[DNSResourceRecord.CIM_VALUEMAP_TYPE_DISPLAY.length-1]; private DNSResourceRecord record = null; private JList jList = null; private DefaultListModel defaultListModel = null; // @jve:decl-index=0: private JScrollPane jScrollPane = null; private JPanel jPanel2 = null; /** * This is the default constructor */ public ResourceRecordWizardPage1() { super(); initialize(); } /** * This method initializes this * * @return void */ private void initialize() { this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); this.setSize(300,200); this.add(getJPanel(), null); this.add(getJPanel1(), null); this.add(getJPanel2(), null); } /** * This method initializes jPanel * * @return javax.swing.JPanel */ private JPanel getJPanel() { if (jPanel == null) { jLabel = new JLabel(); FlowLayout flowLayout5 = new FlowLayout(); jPanel = new JPanel(); jPanel.setLayout(flowLayout5); jPanel.setPreferredSize(new java.awt.Dimension(20,26)); flowLayout5.setAlignment(java.awt.FlowLayout.LEFT); jLabel.setText("Specify the type of the new Resource Record"); jLabel.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); jPanel.add(jLabel, null); } return jPanel; } /** * This method initializes jPanel1 * * @return javax.swing.JPanel */ private JPanel getJPanel1() { if (jPanel1 == null) { GridBagConstraints gridBagConstraints10 = new GridBagConstraints(); jPanel1 = new JPanel(); jPanel1.setLayout(new GridBagLayout()); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.LOWERED), "Select a type", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12), java.awt.Color.black)); jPanel1.setPreferredSize(new java.awt.Dimension(100,100)); gridBagConstraints10.weightx = 1.0; gridBagConstraints10.weighty = 1.0; gridBagConstraints10.fill = java.awt.GridBagConstraints.BOTH; jPanel1.add(getJScrollPane(), gridBagConstraints10); } return jPanel1; } /** * This method initializes jList * * @return javax.swing.JList */ public JList getJList() { if (jList == null) { jList = new JList(); jList.setModel(getDefaultListModel()); jList.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); jList.setName("typeRR"); jList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); System.arraycopy(DNSResourceRecord.CIM_VALUEMAP_TYPE_DISPLAY,1,sl,0,sl.length); jList.setListData(sl); } return jList; } /** * This method initializes defaultListModel * * @return javax.swing.DefaultListModel */ private DefaultListModel getDefaultListModel() { if (defaultListModel == null) { defaultListModel = new DefaultListModel(); defaultListModel.add(0, "Host (A)"); defaultListModel.add(1, "MailServer (MX)"); defaultListModel.add(2, "NameServer (NS)"); } return defaultListModel; } /** * This method initializes jScrollPane * * @return javax.swing.JScrollPane */ private JScrollPane getJScrollPane() { if (jScrollPane == null) { jScrollPane = new JScrollPane(); jScrollPane.setViewportView(getJList()); } return jScrollPane; } /** * This method initializes jPanel2 * * @return javax.swing.JPanel */ private JPanel getJPanel2() { if (jPanel2 == null) { jPanel2 = new JPanel(); } return jPanel2; } } --- NEW FILE: ACLWizardPage2.java --- /** * ACLWizardPage2.java * * (C) Copyright IBM Corp. 2005 * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. * * You can obtain a current copy of the Common Public License from * http://www.opensource.org/licenses/cpl1.0.php * * Author: Fernando Aires <fa...@br...> * * Contributors: **/ /* * Created on 26/07/2005 * */ package org.sblim.wbemsmt.dns.gui.wizard.panels; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import javax.swing.BoxLayout; import javax.swing.DefaultListModel; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JList; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTextField; public class ACLWizardPage2 extends JPanel { private ACLWizardPage2 me = null; private JPanel jPanel = null; private JPanel jPanel1 = null; private JPanel jPanel2 = null; private JButton jButton = null; private JButton jButton1 = null; private JTextField jTextField = null; private JScrollPane jScrollPane = null; private JLabel jLabel = null; private JList jList = null; private DefaultListModel defaultListModel = null; // @jve:decl-index=0: /** * This is the default constructor */ public ACLWizardPage2() { super(); initialize(); } // public boolean validateAddressList(String[] l){ // // String s = null; // String[] t = null; // // for (int i=0;i<l.length;i++){ // s = l[i]; // t = s.split("\\."); // if(t.length!=4){ // if(s.indexOf("::")<0) return false; // } // } // return true; // } public boolean validateIP(String ip) { String[] t = null; t = ip.split("\\."); if(t.length!=4){ if(ip.indexOf(":")<0) return false; } return true; } public JPanel getNextWizardJPanel() { return new ACLWizardPage3(); } /** * This method initializes this * * @return void */ private void initialize() { this.me = this; this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); this.setSize(300,200); this.setPreferredSize(new java.awt.Dimension(100,136)); this.add(getJPanel(), null); this.add(getJPanel1(), null); this.add(getJPanel2(), null); } /** * This method initializes jPanel * * @return javax.swing.JPanel */ private JPanel getJPanel() { if (jPanel == null) { jLabel = new JLabel(); jPanel = new JPanel(); jPanel.setPreferredSize(new java.awt.Dimension(20,26)); jLabel.setText("Add Addresses to ACL"); jLabel.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); jLabel.setPreferredSize(new java.awt.Dimension(257,15)); jPanel.add(jLabel, null); } return jPanel; } /** * This method initializes jPanel1 * * @return javax.swing.JPanel */ private JPanel getJPanel1() { if (jPanel1 == null) { GridBagConstraints gridBagConstraints11 = new GridBagConstraints(); GridBagConstraints gridBagConstraints10 = new GridBagConstraints(); GridBagConstraints gridBagConstraints9 = new GridBagConstraints(); GridBagConstraints gridBagConstraints8 = new GridBagConstraints(); jPanel1 = new JPanel(); jPanel1.setLayout(new GridBagLayout()); jPanel1.setPreferredSize(new java.awt.Dimension(100,100)); gridBagConstraints8.gridx = 1; gridBagConstraints8.gridy = 0; gridBagConstraints8.insets = new java.awt.Insets(5,5,5,5); gridBagConstraints8.anchor = java.awt.GridBagConstraints.NORTH; gridBagConstraints9.gridx = 1; gridBagConstraints9.gridy = 1; gridBagConstraints9.insets = new java.awt.Insets(5,5,5,5); gridBagConstraints9.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints10.gridx = 0; gridBagConstraints10.gridy = 1; gridBagConstraints10.weightx = 1.0; gridBagConstraints10.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints10.insets = new java.awt.Insets(5,5,5,5); gridBagConstraints11.gridx = 0; gridBagConstraints11.gridy = 0; gridBagConstraints11.weightx = 1.0; gridBagConstraints11.weighty = 1.0; gridBagConstraints11.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints11.insets = new java.awt.Insets(5,5,5,5); jPanel1.add(getJButton(), gridBagConstraints8); jPanel1.add(getJButton1(), gridBagConstraints9); jPanel1.add(getJTextField(), gridBagConstraints10); jPanel1.add(getJScrollPane(), gridBagConstraints11); } return jPanel1; } /** * This method initializes jPanel2 * * @return javax.swing.JPanel */ private JPanel getJPanel2() { if (jPanel2 == null) { jPanel2 = new JPanel(); jPanel2.setPreferredSize(new java.awt.Dimension(10,10)); } return jPanel2; } /** * This method initializes jButton * * @return javax.swing.JButton */ private JButton getJButton() { if (jButton == null) { jButton = new JButton(); jButton.setText("Remove"); jButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { while (jList.getSelectedIndex()>=0 ){ ((DefaultListModel) jList.getModel()).removeElementAt(jList.getSelectedIndex()); } } }); } return jButton; } /** * This method initializes jButton1 * * @return javax.swing.JButton */ private JButton getJButton1() { if (jButton1 == null) { jButton1 = new JButton(); jButton1.setText("Add"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent e) { if(jTextField.getText()!=null) { if (!validateIP(jTextField.getText())){ JOptionPane.showMessageDialog(me, "Your input is not valid!", "ERROR", JOptionPane.ERROR_MESSAGE); return; } DefaultListModel list = (DefaultListModel) jList.getModel(); if(!list.contains(jTextField.getText())) list.addElement(jTextField.getText()); //((DefaultListModel) jList.getModel()).addElement(jTextField.getText()); jTextField.setText(null); } } }); } return jButton1; } /** * This method initializes jTextField * * @return javax.swing.JTextField */ private JTextField getJTextField() { if (jTextField == null) { jTextField = new JTextField(); } return jTextField; } /** * This method initializes jScrollPane * * @return javax.swing.JScrollPane */ private JScrollPane getJScrollPane() { if (jScrollPane == null) { jScrollPane = new JScrollPane(); jScrollPane.setPreferredSize(new java.awt.Dimension(3,50)); jScrollPane.setViewportView(getJList()); } return jScrollPane; } /** * This method initializes jList * * @return javax.swing.JList */ public JList getJList() { if (jList == null) { jList = new JList(); jList.setModel(getDefaultListModel()); } return jList; } /** * This method initializes defaultListModel * * @return javax.swing.DefaultListModel */ private DefaultListModel getDefaultListModel() { if (defaultListModel == null) { defaultListModel = new DefaultListModel(); } return defaultListModel; } } --- NEW FILE: ZoneWizardPage31.java --- /** * ZoneWizardPage31.java * * (C) Copyright IBM Corp. 2005 * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. * * You can obtain a current copy of the Common Public License from * http://www.opensource.org/licenses/cpl1.0.php * * Author: Rodrigo Ceron <rc...@br...> * * Contributors: * **/ /* * Created on Aug 13, 2005, ceron */ package org.sblim.wbemsmt.dns.gui.wizard.panels; import java.awt.FlowLayout; import java.util.ArrayList; import javax.swing.BoxLayout; import javax.swing.JLabel; import javax.swing.JPanel; import org.sblim.wbem.client.CIMClient; import org.sblim.wbemsmt.dns.bl.fco.DNSResourceRecord; import org.sblim.wbemsmt.dns.gui.ResourceRecordListComponent; import javax.swing.JScrollPane; import javax.swing.JList; import java.awt.GridBagLayout; import java.awt.GridBagConstraints; import javax.swing.DefaultListModel; /** * Author ceron * */ public class ZoneWizardPage31 extends JPanel { private JPanel jPanel = null; private JPanel jPanel1 = null; private JPanel jPanel2 = null; private JLabel jLabel = null; private CIMClient cimClient = null; private JScrollPane jScrollPane = null; private JList jList = null; private DefaultListModel defaultListModel = null; // @jve:decl-index=0: /** * This is the default constructor */ public ZoneWizardPage31(CIMClient cc) { super(); this.cimClient = cc; initialize(); } /** * This method initializes this * * @return void */ private void initialize() { this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); this.setSize(300,200); this.add(getJPanel(), null); this.add(getJPanel1(), null); this.add(getJPanel2(), null); ArrayList a = DNSResourceRecord.enumerateInstances(this.cimClient); ResourceRecordListComponent rrlc = null; DefaultListModel model = (DefaultListModel) getJList().getModel(); try{ for(int i=0; i<a.size();i++){ DNSResourceRecord rr = (DNSResourceRecord) a.get(i); if(rr.getType().shortValue()==DNSResourceRecord.CIM_TYPE_A){ rrlc = new ResourceRecordListComponent(rr); model.addElement(rrlc); } } }catch(Exception ex){ System.err.println("Error retrieving zone name"); } } /** * This method initializes jPanel * * @return javax.swing.JPanel */ private JPanel getJPanel() { if (jPanel == null) { jLabel = new JLabel(); FlowLayout flowLayout5 = new FlowLayout(); jPanel = new JPanel(); jPanel.setLayout(flowLayout5); jPanel.setPreferredSize(new java.awt.Dimension(339,26)); jLabel.setText("Select resource records"); jLabel.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); flowLayout5.setAlignment(java.awt.FlowLayout.LEFT); flowLayout5.setHgap(5); jPanel.add(jLabel, null); } return jPanel; } /** * This method initializes jPanel1 * * @return javax.swing.JPanel */ private JPanel getJPanel1() { if (jPanel1 == null) { GridBagConstraints gridBagConstraints1 = new GridBagConstraints(); jPanel1 = new JPanel(); jPanel1.setLayout(new GridBagLayout()); gridBagConstraints1.gridx = 0; gridBagConstraints1.gridy = 0; gridBagConstraints1.weightx = 1.0; gridBagConstraints1.weighty = 1.0; gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints1.ipadx = 41; gridBagConstraints1.ipady = -104; gridBagConstraints1.insets = new java.awt.Insets(20,10,20,10); jPanel1.add(getJScrollPane(), gridBagConstraints1); } return jPanel1; } /** * This method initializes jPanel2 * * @return javax.swing.JPanel */ private JPanel getJPanel2() { if (jPanel2 == null) { jPanel2 = new JPanel(); } return jPanel2; } /** * This method initializes jScrollPane * * @return javax.swing.JScrollPane */ private JScrollPane getJScrollPane() { if (jScrollPane == null) { jScrollPane = new JScrollPane(); jScrollPane.setViewportView(getJList()); } return jScrollPane; } /** * This method initializes jList * * @return javax.swing.JList */ public JList getJList() { if (jList == null) { jList = new JList(); jList.setModel(getDefaultListModel()); } return jList; } /** * This method initializes defaultListModel * * @return javax.swing.DefaultListModel */ private DefaultListModel getDefaultListModel() { if (defaultListModel == null) { defaultListModel = new DefaultListModel(); } return defaultListModel; } } --- NEW FILE: ResourceRecordWizardPage5.java --- /** * ResourceRecordWizardPage5.java * * (C) Copyright IBM Corp. 2005 * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. * * You can obtain a current copy of the Common Public License from * http://www.opensource.org/licenses/cpl1.0.php * * Author: Fernando Aires <fa...@br...> * * Contributors: **/ /* * Created on 07.04.2005 * */ package org.sblim.wbemsmt.dns.gui.wizard.panels; import java.awt.FlowLayout; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import javax.swing.BoxLayout; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextArea; import org.sblim.wbemsmt.dns.bl.fco.DNSResourceRecord; /** * Author L123394 * */ public class ResourceRecordWizardPage5 extends JPanel { private JPanel jPanel = null; private JPanel jPanel1 = null; private JPanel jPanel2 = null; private JLabel jLabel = null; private JTextArea jTextArea = null; private DNSResourceRecord record = null; /** * This is the default constructor */ public ResourceRecordWizardPage5() { super(); initialize(); } /*public ResourceRecordWizardPage5(DNSResourceRecord record) { super(); this.record = record; initialize(); }*/ /** * This method initializes this * * @return void */ private void initialize() { this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); this.setSize(300,200); this.add(getJPanel(), null); this.add(getJPanel1(), null); this.add(getJPanel2(), null); } /** * This method initializes jPanel * * @return javax.swing.JPanel */ private JPanel getJPanel() { if (jPanel == null) { FlowLayout flowLayout1 = new FlowLayout(); jLabel = new JLabel(); jPanel = new JPanel(); jPanel.setLayout(flowLayout1); jPanel.setPreferredSize(new java.awt.Dimension(339,26)); jLabel.setText("A new Resource Record will be created with the following values "); jLabel.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); flowLayout1.setAlignment(java.awt.FlowLayout.LEFT); jPanel.add(jLabel, null); } return jPanel; } /** * This method initializes jPanel1 * * @return javax.swing.JPanel */ private JPanel getJPanel1() { if (jPanel1 == null) { GridBagConstraints gridBagConstraints18 = new GridBagConstraints(); jPanel1 = new JPanel(); jPanel1.setLayout(new GridBagLayout()); jPanel1.setPreferredSize(new java.awt.Dimension(310,80)); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.LOWERED), "Overview", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12), java.awt.Color.black)); gridBagConstraints18.gridx = 0; gridBagConstraints18.gridy = 0; gridBagConstraints18.weightx = 1.0; gridBagConstraints18.weighty = 1.0; gridBagConstraints18.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints18.insets = new java.awt.Insets(5,5,5,5); jPanel1.add(getJTextArea(), gridBagConstraints18); } return jPanel1; } /** * This method initializes jPanel2 * * @return javax.swing.JPanel */ private JPanel getJPanel2() { if (jPanel2 == null) { jPanel2 = new JPanel(); jPanel2.setPreferredSize(new java.awt.Dimension(10,10)); } return jPanel2; } /** * This method initializes jTextArea * * @return javax.swing.JTextArea */ public JTextArea getJTextArea() { if (jTextArea == null) { jTextArea = new JTextArea(); jTextArea.setEditable(false); jTextArea.setPreferredSize(new java.awt.Dimension(0,160)); jTextArea.setBackground(new java.awt.Color(204,204,204)); jTextArea.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED))); } return jTextArea; } /*private String buildText() { StringBuffer sbText = new StringBuffer(); String na = "= n/a"+System.getProperty("line.separator"); try { sbText.append("Name "+"\t\t\t"); if (record.getName() != null) sbText.append("= "+record.getName()+System.getProperty("line.separator")); else sbText.append(na); sbText.append("Zone Name"+"\t\t\t"); if (record.getZoneName()!= null) sbText.append("= "+record.getZoneName()+System.getProperty("line.separator")); else sbText.append(na); sbText.append("Type"+"\t\t\t"); if (record.getTypeString()!= null) sbText.append("= "+record.getTypeString()+System.getProperty("line.separator")); else sbText.append(na); sbText.append("Value"+"\t\t\t"); if (record.getValue()!= null) sbText.append("= "+record.getValue()+System.getProperty("line.separator")); else sbText.append(na); sbText.append("Description"+"\t\t\t"); if (record.getDescription()!= null) sbText.append("= "+record.getDescription()+System.getProperty("line.separator")); else sbText.append(na); } catch (Exception nfe) { System.out.println("caught exception: "+nfe); nfe.printStackTrace(); } return sbText.toString(); }*/ } --- NEW FILE: ACLWizardPage3.java --- /** * ACLWizardPage3.java * * (C) Copyright IBM Corp. 2005 * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. * * You can obtain a current copy of the Common Public License from * http://www.opensource.org/licenses/cpl1.0.php * * Author: Fernando Aires <fa...@br...> * * Contributors: **/ /* * Created on 26/07/2005 * */ package org.sblim.wbemsmt.dns.gui.wizard.panels; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import javax.swing.BoxLayout; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTextArea; public class ACLWizardPage3 extends JPanel { private JPanel jPanel = null; private JPanel jPanel1 = null; private JPanel jPanel2 = null; private JLabel jLabel = null; private JTextArea jTextArea = null; private JScrollPane jScrollPane = null; /** * This is the default constructor */ public ACLWizardPage3() { super(); initialize(); } public void cleanUP() { } // do nothing public boolean isLast() { return true; } public void saveData() { // aires TODO create it } public boolean isValid() { return true; } public JPanel getNextWizardJPanel() { return null; } /** * This method initializes this * * @return void */ private void initialize() { this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); this.setSize(300,200); this.setPreferredSize(new java.awt.Dimension(100,136)); this.add(getJPanel(), null); this.add(getJPanel1(), null); this.add(getJPanel2(), null); } /** * This method initializes jPanel * * @return javax.swing.JPanel */ private JPanel getJPanel() { if (jPanel == null) { jLabel = new JLabel(); jPanel = new JPanel(); jPanel.setPreferredSize(new java.awt.Dimension(20,26)); jLabel.setText("A new ACL will be created with the following values"); jLabel.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); jLabel.setPreferredSize(new java.awt.Dimension(257,15)); jPanel.add(jLabel, null); } return jPanel; } /** * This method initializes jPanel1 * * @return javax.swing.JPanel */ private JPanel getJPanel1() { if (jPanel1 == null) { GridBagConstraints gridBagConstraints11 = new GridBagConstraints(); jPanel1 = new JPanel(); jPanel1.setLayout(new GridBagLayout()); jPanel1.setPreferredSize(new java.awt.Dimension(100,100)); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.LOWERED), "Overview", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12), java.awt.Color.black)); gridBagConstraints11.weightx = 1.0; gridBagConstraints11.weighty = 1.0; gridBagConstraints11.fill = java.awt.GridBagConstraints.BOTH; jPanel1.add(getJScrollPane(), gridBagConstraints11); } return jPanel1; } /** * This method initializes jPanel2 * * @return javax.swing.JPanel */ private JPanel getJPanel2() { if (jPanel2 == null) { jPanel2 = new JPanel(); jPanel2.setPreferredSize(new java.awt.Dimension(10,10)); } return jPanel2; } /** * This method initializes jTextArea * * @return javax.swing.JTextArea */ public JTextArea getJTextArea() { if (jTextArea == null) { jTextArea = new JTextArea(); jTextArea.setEditable(false); jTextArea.setBackground(new java.awt.Color(204,204,204)); jTextArea.setPreferredSize(new java.awt.Dimension(0,0)); jTextArea.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED), "", javax.swing.border.TitledBorder.LEADING, javax.swing.border.TitledBorder.TOP, new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), java.awt.Color.black)); } return jTextArea; } /** * This method initializes jScrollPane * * @return javax.swing.JScrollPane */ private JScrollPane getJScrollPane() { if (jScrollPane == null) { jScrollPane = new JScrollPane(); jScrollPane.setViewportView(getJTextArea()); } return jScrollPane; } } --- NEW FILE: ResourceRecordWizardPage2.java --- /** * ResourceRecordWizardPage2.java * * (C) Copyright IBM Corp. 2005 * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. * * You can obtain a current copy of the Common Public License from * http://www.opensource.org/licenses/cpl1.0.php * * Author: Fernando Aires <fa...@br...> * * Contributors: **/ /* * Created on 07.04.2005 * */ package org.sblim.wbemsmt.dns.gui.wizard.panels; import java.awt.FlowLayout; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import javax.swing.BoxLayout; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; import org.sblim.wbemsmt.dns.bl.fco.DNSResourceRecord; /** * Author L123394 * */ public class ResourceRecordWizardPage2 extends JPanel { private JPanel jPanel = null; private JPanel jPanel1 = null; private JPanel jPanel2 = null; private JLabel jLabel = null; private DNSResourceRecord record = null; private JLabel jLabel1 = null; private JTextField jTextField = null; private JLabel jLabel2 = null; private JTextField jTextField1 = null; /** * This is the default constructor */ public ResourceRecordWizardPage2() { super(); initialize(); } public ResourceRecordWizardPage2(DNSResourceRecord record) { super(); this.record = record; initialize(); } /** * This method initializes this * * @return void */ private void initialize() { this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); this.setSize(300,200); this.add(getJPanel(), null); this.add(getJPanel1(), null); this.add(getJPanel2(), null); } /** * This method initializes jPanel * * @return javax.swing.JPanel */ private JPanel getJPanel() { if (jPanel == null) { jLabel = new JLabel(); FlowLayout flowLayout1 = new FlowLayout(); jPanel = new JPanel(); jPanel.setLayout(flowLayout1); jPanel.setPreferredSize(new java.awt.Dimension(339,26)); flowLayout1.setAlignment(java.awt.FlowLayout.LEFT); jLabel.setText("Specify settings for the new Resource Record"); jLabel.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); jPanel.add(jLabel, null); } return jPanel; } /** * This method initializes jPanel1 * * @return javax.swing.JPanel */ private JPanel getJPanel1() { if (jPanel1 == null) { jLabel2 = new JLabel(); jLabel1 = new JLabel(); GridBagConstraints gridBagConstraints14 = new GridBagConstraints(); GridBagConstraints gridBagConstraints15 = new GridBagConstraints(); GridBagConstraints gridBagConstraints16 = new GridBagConstraints(); GridBagConstraints gridBagConstraints17 = new GridBagConstraints(); jPanel1 = new JPanel(); jPanel1.setLayout(new GridBagLayout()); jPanel1.setPreferredSize(new java.awt.Dimension(310,100)); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.LOWERED), "Specify values", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12), java.awt.Color.black)); gridBagConstraints14.gridx = 0; gridBagConstraints14.gridy = 0; gridBagConstraints14.insets = new java.awt.Insets(5,5,5,5); jLabel1.setText("Name"); jLabel1.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); gridBagConstraints15.gridx = 1; gridBagConstraints15.gridy = 0; gridBagConstraints15.weightx = 1.0; gridBagConstraints15.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints15.insets = new java.awt.Insets(5,5,5,5); gridBagConstraints16.gridx = 0; gridBagConstraints16.gridy = 1; gridBagConstraints16.insets = new java.awt.Insets(5,5,5,5); jLabel2.setText("Value"); jLabel2.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); gridBagConstraints17.gridx = 1; gridBagConstraints17.gridy = 1; gridBagConstraints17.weightx = 1.0; gridBagConstraints17.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints17.insets = new java.awt.Insets(5,5,5,5); jPanel1.add(jLabel1, gridBagConstraints14); jPanel1.add(getJTextField(), gridBagConstraints15); jPanel1.add(jLabel2, gridBagConstraints16); jPanel1.add(getJTextField1(), gridBagConstraints17); } return jPanel1; } /** * This method initializes jPanel2 * * @return javax.swing.JPanel */ private JPanel getJPanel2() { if (jPanel2 == null) { jPanel2 = new JPanel(); jPanel2.setPreferredSize(new java.awt.Dimension(10,50)); } return jPanel2; } /** * This method initializes jTextField * * @return javax.swing.JTextField */ public JTextField getJTextField() { if (jTextField == null) { jTextField = new JTextField(); jTextField.setName("settingName"); // jTextField.getDocument().addDocumentListener(this); } return jTextField; } /** * This method initializes jTextField1 * * @return javax.swing.JTextField */ public JTextField getJTextField1() { if (jTextField1 == null) { jTextField1 = new JTextField(); jTextField1.setName("settingValue"); // jTextField1.getDocument().addDocumentListener(this); } return jTextField1; } /* public void changedUpdate(DocumentEvent e) { System.out.println("changed"); if (testInput(jTextField.getText(), jTextField1.getText())) { setNextButton(true); } else setNextButton(false); } public void insertUpdate(DocumentEvent e) { System.out.println("insert"); if (testInput(jTextField.getText(), jTextField1.getText())) { setNextButton(true); } else setNextButton(false); } public void removeUpdate(DocumentEvent e) { System.out.println("remove"); if (testInput(jTextField.getText(), jTextField1.getText())) { setNextButton(true); } else setNextButton(false); } private boolean testInput(String strTest1, String strTest2) { if (strTest1.trim().length() > 0 && strTest2.trim().length() > 0) return true; return false; } */ } --- NEW FILE: ZoneWizardPage5.java --- /** * ZoneWizardPage5.java * * (C) Copyright IBM Corp. 2005 * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. * * You can obtain a current copy of the Common Public License from * http://www.opensource.org/licenses/cpl1.0.php * * Author: Bert Lange <la...@de...> * * Contributors: * Rodrigo Ceron <rc...@br...> * Fernando Aires <fa...@br...> **/ /* * Created on 05.04.2005 * */ package org.sblim.wbemsmt.dns.gui.wizard.panels; import java.awt.FlowLayout; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import javax.swing.BoxLayout; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextArea; /** * Author L123394 * */ public class ZoneWizardPage5 extends JPanel { private JPanel jPanel = null; private JLabel jLabel = null; private JTextArea jTextArea = null; private JPanel jPanel1 = null; private JPanel jPanel2 = null; public ZoneWizardPage5() { super(); initialize(); } /** * This method initializes this * * @return void */ private void initialize() { this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); this.setSize(300,200); this.add(getJPanel(), null); this.add(getJPanel2(), null); this.add(getJPanel1(), null); } /** * This method initializes jPanel * * @return javax.swing.JPanel */ private JPanel getJPanel() { if (jPanel == null) { jLabel = new JLabel(); FlowLayout flowLayout14 = new FlowLayout(); jPanel = new JPanel(); jPanel.setLayout(flowLayout14); flowLayout14.setAlignment(java.awt.FlowLayout.LEFT); jLabel.setText("A new Zone will be created with the following values"); jLabel.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); jPanel.setPreferredSize(new java.awt.Dimension(239,26)); jPanel.add(jLabel, null); } return jPanel; } /** * This method initializes jTextArea * * @return javax.swing.JTextArea */ public JTextArea getJTextArea() { if (jTextArea == null) { jTextArea = new JTextArea(); jTextArea.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED))); jTextArea.setBackground(new java.awt.Color(204,204,204)); jTextArea.setColumns(2); jTextArea.setEditable(false); } return jTextArea; } /** * This method initializes jPanel1 * * @return javax.swing.JPanel */ private JPanel getJPanel1() { if (jPanel1 == null) { jPanel1 = new JPanel(); jPanel1.setPreferredSize(new java.awt.Dimension(10,50)); } return jPanel1; } /** * This method initializes jPanel2 * * @return javax.swing.JPanel */ private JPanel getJPanel2() { if (jPanel2 == null) { GridBagConstraints gridBagConstraints3 = new GridBagConstraints(); jPanel2 = new JPanel(); jPanel2.setLayout(new GridBagLayout()); gridBagConstraints3.gridx = 0; gridBagConstraints3.gridy = 0; gridBagConstraints3.weightx = 1.0; gridBagConstraints3.weighty = 1.0; gridBagConstraints3.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints3.insets = new java.awt.Insets(5,5,5,5); gridBagConstraints3.ipadx = 5; gridBagConstraints3.ipady = 5; jPanel2.setPreferredSize(new java.awt.Dimension(300,150)); jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.LOWERED), "Overview", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12), java.awt.Color.black)); jPanel2.add(getJTextArea(), gridBagConstraints3); } return jPanel2; } } --- NEW FILE: ZoneWizardPage21.java --- /** * ZoneWizardPage21.java * * (C) Copyright IBM Corp. 2005 * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. * * You can obtain a current copy of the Common Public License from * http://www.opensource.org/licenses/cpl1.0.php * * Author: Rodrigo Ceron <rc...@br...> * * Contributors: * **/ /* * Created on Aug 13, 2005, ceron */ package org.sblim.wbemsmt.dns.gui.wizard.panels; import java.awt.FlowLayout; import java.awt.GridLayout; import java.util.ArrayList; import javax.swing.BoxLayout; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JComboBox; import org.sblim.wbem.client.CIMClient; import org.sblim.wbemsmt.dns.bl.fco.DNSMasterZone; import org.sblim.wbemsmt.dns.gui.ZoneListComponent; /** * Author ceron * */ public class ZoneWizardPage21 extends JPanel { private JPanel jPanel = null; private JPanel jPanel1 = null; private JPanel jPanel2 = null; private JLabel jLabel = null; private CIMClient cimClient = null; private JComboBox jComboBox = null; /** * This is the default constructor */ public ZoneWizardPage21(CIMClient cc) { super(); this.cimClient = cc; initialize(); } /** * This method initializes this * * @return void */ private void initialize() { this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); this.setSize(300,200); this.add(getJPanel(), null); this.add(getJPanel1(), null); this.add(getJPanel2(), null); ArrayList a = DNSMasterZone.enumerateInstances(this.cimClient); ZoneListComponent zlc = null; try{ for(int i=0; i<a.size();i++){ DNSMasterZone zone = (DNSMasterZone) a.get(i); if(!"localhost".equalsIgnoreCase(zone.getName()) && !"0.0.127.in-addr.arpa".equalsIgnoreCase(zone.getName()) && zone.getName().toLowerCase().indexOf("in-addr.arpa")==-1){ zlc = new ZoneListComponent(zone); this.jComboBox.addItem(zlc); } } }catch(Exception ex){ System.err.println("Error retrieving zone name"); } } /** * This method initializes jPanel * * @return javax.swing.JPanel */ private JPanel getJPanel() { if (jPanel == null) { jLabel = new JLabel(); FlowLayout flowLayout5 = new FlowLayout(); jPanel = new JPanel(); jPanel.setLayout(flowLayout5); jPanel.setPreferredSize(new java.awt.Dimension(339,26)); jLabel.setText("Select a master zone"); jLabel.setFont(new java.awt.Font("Dialog", java.awt.Font.PLAIN, 12)); flowLayout5.setAlignment(java.awt.FlowLayout.LEFT); flowLayout5.setHgap(5); jPanel.add(jLabel, null); } return jPanel; } /** * This method initializes jPanel1 * * @return javax.swing.JPanel */ private JPanel getJPanel1() { if (jPanel1 == null) { GridLayout gridLayout4 = new GridLayout(); jPanel1 = new JPanel(); jPanel1.setLayout(gridLayout4); gridLayout4.setRows(6); gridLayout4.setHgap(0); jPanel1.add(getJComboBox(), null); } return jPanel1; } /** * This method initializes jPanel2 * * @return javax.swing.JPanel */ private JPanel getJPanel2() { if (jPanel2 == null) { jPanel2 = new JPanel(); } return jPanel2; } /** * This method initializes jComboBox * * @return javax.swing.JComboBox */ public JComboBox getJComboBox() { if (jComboBox == null) { jComboBox = new JComboBox(); } return jComboBox; } } --- NEW FILE: ACLWizardData.java --- /** * ACLWizardData.java * * (C) Copyright IBM Corp. 2005 * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. * * You can obtain a current copy of the Common Public License from * http://www.opensource.org/licenses/cpl1.0.php * * Author: Fernando Aires <fa...@br...> * * Contributors: **/ /* * Created on 26/07/2005 * */ package org.sblim.wbemsmt.dns.gui.wizard.panels; import org.sblim.wbem.client.CIMClient; import org.sblim.wbemsmt.dns.bl.fco.DNSAddressMatchList; public class ACLWizardData { private DNSAddressMatchList myACL = null; public ACLWizardData (CIMClient cimClient) { try{ this.myACL = new DNSAddressMatchList(cimClient); } catch (Exception e){ System.err.println("Failed to create an ACLWizardData object..."); } } public DNSAddressMatchList getACL() { return this.myACL; } } --- NEW FILE: ZoneWizardPage2.java --- /** * ZoneWizardPage2.java * * (C) Copyright IBM Corp. 2005 * * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. * * You can obtain a current copy of the Common Public License from * http://www.opensource.org/licenses/cpl1.0.php * * Author: Bert Lange <la...@de...> * * Contributors: * Rodrigo Ceron <rc...@br...> * Fernando Aires <fa...@br...> **/ /* * Created on 04.04.2005 * */ package org.sblim.wbemsmt.dns.gui.wizard.panels; import java.awt.FlowLayout; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import javax.swing.BoxLayout; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; /** * Author L123394 * */ public class ZoneWizardPage2 extends JPanel { private JLabel jLabel = null; private JTextField jTextField = null; private JPanel jPanel = null; private JPanel jPanel1 = null; private JPanel jPanel2 = null; private JLabel jLabel1 = null; public ZoneWizardPage2() { super(); initialize(); } /** * This method initializes this * * @return void */ private void initialize() { jLabel = new JLabel(); this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); this.setSize(300,200);... [truncated message content] |