1 19 package org.netbeans.modules.xml.tools.generator; 20 21 import java.awt.event.*; 22 import java.beans.*; 23 24 30 public class SAXGeneratorCustomizer extends javax.swing.JPanel implements Customizer, ActionListener { 31 32 33 private static final long serialVersionUID =9150516877346238338L; 34 35 36 private SAXGeneratorModel model; 37 38 39 public SAXGeneratorCustomizer() { 40 initComponents (); 41 } 42 43 48 private void initComponents() { sAXGeneratorParsletPanel1 = new org.netbeans.modules.xml.tools.generator.SAXGeneratorParsletPanel(); 50 sAXGeneratorMethodPanel1 = new org.netbeans.modules.xml.tools.generator.SAXGeneratorMethodPanel(); 51 sAXGeneratorVersionPanel1 = new org.netbeans.modules.xml.tools.generator.SAXGeneratorVersionPanel(); 52 sAXGeneratorFilePanel1 = new org.netbeans.modules.xml.tools.generator.SAXGeneratorFilePanel(); 53 54 setLayout(new java.awt.GridLayout (2, 2)); 55 56 sAXGeneratorParsletPanel1.setLayout(new java.awt.BorderLayout ()); 57 58 add(sAXGeneratorParsletPanel1); 59 60 sAXGeneratorMethodPanel1.setLayout(new java.awt.BorderLayout ()); 61 62 add(sAXGeneratorMethodPanel1); 63 64 add(sAXGeneratorVersionPanel1); 65 66 add(sAXGeneratorFilePanel1); 67 68 } 70 public void setObject(java.lang.Object peer) { 71 if ( not(peer instanceof SAXGeneratorModel) ) { 72 throw new IllegalArgumentException ("SAXGeneratorModel class expected."); } 74 75 model = (SAXGeneratorModel) peer; 76 77 sAXGeneratorParsletPanel1.setObject(model); 78 sAXGeneratorMethodPanel1.setObject(model); 79 sAXGeneratorVersionPanel1.setObject(model); 80 sAXGeneratorFilePanel1.setObject(model); 81 } 82 83 private boolean not (boolean expr) { 84 return ! expr; 85 } 86 87 public void addPropertyChangeListener(java.beans.PropertyChangeListener p1) { 88 } 89 90 public void removePropertyChangeListener(java.beans.PropertyChangeListener p1) { 91 } 92 93 public void actionPerformed(java.awt.event.ActionEvent e) { 94 sAXGeneratorVersionPanel1.actionPerformed(e); 95 sAXGeneratorFilePanel1.actionPerformed(e); 96 97 } 98 99 private org.netbeans.modules.xml.tools.generator.SAXGeneratorParsletPanel sAXGeneratorParsletPanel1; 101 private org.netbeans.modules.xml.tools.generator.SAXGeneratorFilePanel sAXGeneratorFilePanel1; 102 private org.netbeans.modules.xml.tools.generator.SAXGeneratorMethodPanel sAXGeneratorMethodPanel1; 103 private org.netbeans.modules.xml.tools.generator.SAXGeneratorVersionPanel sAXGeneratorVersionPanel1; 104 106 } 107 | Popular Tags |