Package com.meapsoft.gui.composers

Source Code of com.meapsoft.gui.composers.NNSwapComposerPanel

/*
* NNComposerPanel.java
*
* Created on November 24, 2007, 10:50 PM
*/

package com.meapsoft.gui.composers;

import com.meapsoft.composers.Composer;
import com.meapsoft.composers.NNSwapComposer;
import com.meapsoft.composers.SortComposer;

/**
*
* @author  Mike
*/
public class NNSwapComposerPanel extends ComposerSettingsPanel
{
   
    /** Creates new form NNSwapComposerPanel */
    public NNSwapComposerPanel()
    {
        initComponents();
    }
   
    public int initComposer()
    {
      mComposer = new NNSwapComposer(mParentTab.featFile, mParentTab.edlFile);
  
    //set its settings
    ((NNSwapComposer)mComposer).setReuseChunks(this.reuseChunksCheckBox.isSelected());
   
      return 0;
    }
   
    /** 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 Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        reuseChunksCheckBox = new javax.swing.JCheckBox();

        reuseChunksCheckBox.setText("reuse chunks");
        reuseChunksCheckBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                reuseChunksCheckBoxActionPerformed(evt);
            }
        });

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(reuseChunksCheckBox)
                .addContainerGap(134, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(79, 79, 79)
                .add(reuseChunksCheckBox)
                .addContainerGap(93, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

private void reuseChunksCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_reuseChunksCheckBoxActionPerformed

}//GEN-LAST:event_reuseChunksCheckBoxActionPerformed
   
   
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JCheckBox reuseChunksCheckBox;
    // End of variables declaration//GEN-END:variables


   
}
TOP

Related Classes of com.meapsoft.gui.composers.NNSwapComposerPanel

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.