alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

/*
 *                 Sun Public License Notice
 * 
 * The contents of this file are subject to the Sun Public License
 * Version 1.0 (the "License"). You may not use this file except in
 * compliance with the License. A copy of the License is available at
 * http://www.sun.com/
 * 
 * The Original Code is NetBeans. The Initial Developer of the Original
 * Code is Sun Microsystems, Inc. Portions Copyright 1997-2002 Sun
 * Microsystems, Inc. All Rights Reserved.
 */
package org.netbeans.modules.xml.tools.generator;

import java.awt.event.*;
import java.beans.*;

/**
 * Should start a wizard traveling around panels.
 *
 * @author  pkuzel
 * @version 
 */
public class SAXGeneratorCustomizer extends javax.swing.JPanel implements Customizer, ActionListener {

    /** Serial Version UID */
    private static final long serialVersionUID =9150516877346238338L;    


    private SAXGeneratorModel model;
    
    /** Creates new form SAXGeneratorCustomizer */
    public SAXGeneratorCustomizer() {
        initComponents ();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the FormEditor.
     */
    private void initComponents() {//GEN-BEGIN:initComponents
        sAXGeneratorParsletPanel1 = new org.netbeans.modules.xml.tools.generator.SAXGeneratorParsletPanel();
        sAXGeneratorMethodPanel1 = new org.netbeans.modules.xml.tools.generator.SAXGeneratorMethodPanel();
        sAXGeneratorVersionPanel1 = new org.netbeans.modules.xml.tools.generator.SAXGeneratorVersionPanel();
        sAXGeneratorFilePanel1 = new org.netbeans.modules.xml.tools.generator.SAXGeneratorFilePanel();

        setLayout(new java.awt.GridLayout(2, 2));

        sAXGeneratorParsletPanel1.setLayout(new java.awt.BorderLayout());

        add(sAXGeneratorParsletPanel1);

        sAXGeneratorMethodPanel1.setLayout(new java.awt.BorderLayout());

        add(sAXGeneratorMethodPanel1);

        add(sAXGeneratorVersionPanel1);

        add(sAXGeneratorFilePanel1);

    }//GEN-END:initComponents

    public void setObject(java.lang.Object peer) {
        if ( not(peer instanceof SAXGeneratorModel) ) {
            throw new IllegalArgumentException("SAXGeneratorModel class expected.");  // NOI18N
        }        
        
        model = (SAXGeneratorModel) peer;
        
        sAXGeneratorParsletPanel1.setObject(model);
        sAXGeneratorMethodPanel1.setObject(model);  
        sAXGeneratorVersionPanel1.setObject(model);
        sAXGeneratorFilePanel1.setObject(model);
    }    

    private boolean not (boolean expr) {
        return ! expr;
    }
    
    public void addPropertyChangeListener(java.beans.PropertyChangeListener p1) {
    }
    
    public void removePropertyChangeListener(java.beans.PropertyChangeListener p1) {
    }
    
    public void actionPerformed(java.awt.event.ActionEvent e) {
        sAXGeneratorVersionPanel1.actionPerformed(e);
        sAXGeneratorFilePanel1.actionPerformed(e);

    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private org.netbeans.modules.xml.tools.generator.SAXGeneratorParsletPanel sAXGeneratorParsletPanel1;
    private org.netbeans.modules.xml.tools.generator.SAXGeneratorFilePanel sAXGeneratorFilePanel1;
    private org.netbeans.modules.xml.tools.generator.SAXGeneratorMethodPanel sAXGeneratorMethodPanel1;
    private org.netbeans.modules.xml.tools.generator.SAXGeneratorVersionPanel sAXGeneratorVersionPanel1;
    // End of variables declaration//GEN-END:variables

}
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.