/*
* NameNotePanel.java
*
* Created on 23 January 2008, 12:12
*/
package org.genedb.jogra.plugins;
/**
*
* @author admin
*/
public class NameNotePanel extends javax.swing.JPanel {
/** Creates new form NameNotePanel */
public NameNotePanel() {
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 Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
buttonGroup1 = new javax.swing.ButtonGroup();
jPanel1 = new javax.swing.JPanel();
clearButton = new javax.swing.JButton();
transferButton = new javax.swing.JButton();
NoteButton = new javax.swing.JRadioButton();
commentButton = new javax.swing.JRadioButton();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
primaryNameField = new javax.swing.JTextField();
primaryNameButton = new javax.swing.JRadioButton();
productButton = new javax.swing.JRadioButton();
ecButton = new javax.swing.JRadioButton();
productField = new javax.swing.JTextField();
ecField = new javax.swing.JTextField();
jLabel1 = new javax.swing.JLabel();
privateButton = new javax.swing.JRadioButton();
jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Name/Note"));
clearButton.setLabel("Clear");
clearButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
clearButtonActionPerformed(evt);
}
});
transferButton.setLabel("Transfer");
transferButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
transferButtonActionPerformed(evt);
}
});
buttonGroup1.add(NoteButton);
NoteButton.setText("Note");
NoteButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
NoteButtonActionPerformed(evt);
}
});
buttonGroup1.add(commentButton);
commentButton.setText("Comment");
commentButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
commentButtonActionPerformed(evt);
}
});
jTextArea1.setColumns(20);
jTextArea1.setRows(3);
jScrollPane1.setViewportView(jTextArea1);
primaryNameField.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
primaryNameFieldActionPerformed(evt);
}
});
primaryNameButton.setText("Primary Name");
productButton.setText("Product");
productButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
productButtonActionPerformed(evt);
}
});
ecButton.setText("E.C. Number");
ecButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ecButtonActionPerformed(evt);
}
});
productField.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
productFieldActionPerformed(evt);
}
});
jLabel1.setText("Comment");
buttonGroup1.add(privateButton);
privateButton.setText("Private");
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(192, 192, 192)
.addComponent(clearButton)
.addGap(18, 18, 18)
.addComponent(transferButton))
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(ecButton)
.addComponent(productButton)
.addComponent(primaryNameButton))
.addGap(16, 16, 16)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(ecField, javax.swing.GroupLayout.DEFAULT_SIZE, 431, Short.MAX_VALUE)
.addComponent(productField, javax.swing.GroupLayout.DEFAULT_SIZE, 431, Short.MAX_VALUE)
.addComponent(primaryNameField, javax.swing.GroupLayout.DEFAULT_SIZE, 431, Short.MAX_VALUE)))
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1)
.addGap(18, 18, 18)
.addComponent(NoteButton)
.addGap(18, 18, 18)
.addComponent(commentButton)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(privateButton))
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 544, Short.MAX_VALUE))
.addContainerGap())
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(primaryNameField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(primaryNameButton))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(productButton)
.addComponent(productField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(ecButton)
.addComponent(ecField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(36, 36, 36)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(NoteButton)
.addComponent(commentButton)
.addComponent(privateButton))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(transferButton)
.addComponent(clearButton))
.addContainerGap())
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
);
}// </editor-fold>//GEN-END:initComponents
private void clearButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clearButtonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_clearButtonActionPerformed
private void transferButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_transferButtonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_transferButtonActionPerformed
private void productButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_productButtonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_productButtonActionPerformed
private void ecButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ecButtonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_ecButtonActionPerformed
private void productFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_productFieldActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_productFieldActionPerformed
private void NoteButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_NoteButtonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_NoteButtonActionPerformed
private void commentButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_commentButtonActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_commentButtonActionPerformed
private void primaryNameFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_primaryNameFieldActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_primaryNameFieldActionPerformed
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JRadioButton NoteButton;
private javax.swing.ButtonGroup buttonGroup1;
private javax.swing.JButton clearButton;
private javax.swing.JRadioButton commentButton;
private javax.swing.JRadioButton ecButton;
private javax.swing.JTextField ecField;
private javax.swing.JLabel jLabel1;
private javax.swing.JPanel jPanel1;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JTextArea jTextArea1;
private javax.swing.JRadioButton primaryNameButton;
private javax.swing.JTextField primaryNameField;
private javax.swing.JRadioButton privateButton;
private javax.swing.JRadioButton productButton;
private javax.swing.JTextField productField;
private javax.swing.JButton transferButton;
// End of variables declaration//GEN-END:variables
}