package de.unisiegen.gtitool.ui.netbeans;
import javax.swing.JPanel;
import de.unisiegen.gtitool.ui.logic.NewDialogMachineChoice;
import de.unisiegen.gtitool.ui.netbeans.interfaces.GUIClass;
/**
* The new dialog machine choice form.
*
* @author Benjamin Mies
* @version $Id$
*/
@SuppressWarnings({ "all" })
public class NewDialogMachineChoiceForm extends JPanel implements
GUIClass < NewDialogMachineChoice >
{
/**
* The serial version uid.
*/
private static final long serialVersionUID = -1303990739783698131L;
/**
* The {@link NewDialogMachineChoice}.
*/
private NewDialogMachineChoice logic;
/**
* Allocates a new {@link NewDialogMachineChoiceForm}.
*/
public NewDialogMachineChoiceForm(NewDialogMachineChoice logic) {
this.logic = logic;
initComponents();
}
/**
* {@inheritDoc}
*
* @see GUIClass#getLogic()
*/
public final NewDialogMachineChoice getLogic ()
{
return this.logic;
}
/** 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() {
java.awt.GridBagConstraints gridBagConstraints;
buttonGroupChoice = new javax.swing.ButtonGroup();
jGTILabelCaption = new de.unisiegen.gtitool.ui.swing.JGTILabel();
jGTIPanelMachines = new de.unisiegen.gtitool.ui.swing.JGTIPanel();
jGTIRadioButtonDFA = new de.unisiegen.gtitool.ui.swing.JGTIRadioButton();
jGTIRadioButtonNFA = new de.unisiegen.gtitool.ui.swing.JGTIRadioButton();
jGTIRadioButtonENFA = new de.unisiegen.gtitool.ui.swing.JGTIRadioButton();
jGTIRadioButtonPDA = new de.unisiegen.gtitool.ui.swing.JGTIRadioButton();
jGTIPanelColumn0 = new de.unisiegen.gtitool.ui.swing.JGTIPanel();
jGTIPanelButtons = new de.unisiegen.gtitool.ui.swing.JGTIPanel();
jGTIButtonPrevious = new de.unisiegen.gtitool.ui.swing.JGTIButton();
jGTIButtonNext = new de.unisiegen.gtitool.ui.swing.JGTIButton();
jGTIButtonCancel = new de.unisiegen.gtitool.ui.swing.JGTIButton();
setLayout(new java.awt.GridBagLayout());
java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("de/unisiegen/gtitool/ui/i18n/messages"); // NOI18N
jGTILabelCaption.setText(bundle.getString("NewDialog.ChooseMachine")); // NOI18N
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 0;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.insets = new java.awt.Insets(0, 16, 5, 16);
add(jGTILabelCaption, gridBagConstraints);
buttonGroupChoice.add(jGTIRadioButtonDFA);
jGTIRadioButtonDFA.setSelected(true);
jGTIRadioButtonDFA.setText(bundle.getString("NewDialog.DFA")); // NOI18N
jGTIRadioButtonDFA.addItemListener(new java.awt.event.ItemListener() {
public void itemStateChanged(java.awt.event.ItemEvent evt) {
jGTIRadioButtonDFAItemStateChanged(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 0;
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);
jGTIPanelMachines.add(jGTIRadioButtonDFA, gridBagConstraints);
buttonGroupChoice.add(jGTIRadioButtonNFA);
jGTIRadioButtonNFA.setText(bundle.getString("NewDialog.NFA")); // NOI18N
jGTIRadioButtonNFA.addItemListener(new java.awt.event.ItemListener() {
public void itemStateChanged(java.awt.event.ItemEvent evt) {
jGTIRadioButtonNFAItemStateChanged(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 1;
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.insets = new java.awt.Insets(5, 0, 5, 0);
jGTIPanelMachines.add(jGTIRadioButtonNFA, gridBagConstraints);
buttonGroupChoice.add(jGTIRadioButtonENFA);
jGTIRadioButtonENFA.setText(bundle.getString("NewDialog.ENFA")); // NOI18N
jGTIRadioButtonENFA.addItemListener(new java.awt.event.ItemListener() {
public void itemStateChanged(java.awt.event.ItemEvent evt) {
jGTIRadioButtonENFAItemStateChanged(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 2;
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.insets = new java.awt.Insets(5, 0, 5, 0);
jGTIPanelMachines.add(jGTIRadioButtonENFA, gridBagConstraints);
buttonGroupChoice.add(jGTIRadioButtonPDA);
jGTIRadioButtonPDA.setText(bundle.getString("NewDialog.PDA")); // NOI18N
jGTIRadioButtonPDA.addItemListener(new java.awt.event.ItemListener() {
public void itemStateChanged(java.awt.event.ItemEvent evt) {
jGTIRadioButtonPDAItemStateChanged(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 3;
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
jGTIPanelMachines.add(jGTIRadioButtonPDA, gridBagConstraints);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 1;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.insets = new java.awt.Insets(5, 16, 5, 16);
add(jGTIPanelMachines, gridBagConstraints);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.weighty = 1.0;
gridBagConstraints.insets = new java.awt.Insets(5, 16, 5, 16);
add(jGTIPanelColumn0, gridBagConstraints);
jGTIButtonPrevious.setMnemonic(java.util.ResourceBundle.getBundle("de/unisiegen/gtitool/ui/i18n/messages").getString("NewDialog.PreviousMnemonic").charAt(0));
jGTIButtonPrevious.setText(bundle.getString("NewDialog.Previous")); // NOI18N
jGTIButtonPrevious.setToolTipText(bundle.getString("NewDialog.PreviousToolTip")); // NOI18N
jGTIButtonPrevious.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jGTIButtonPreviousActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 0;
gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 5);
jGTIPanelButtons.add(jGTIButtonPrevious, gridBagConstraints);
jGTIButtonNext.setMnemonic(java.util.ResourceBundle.getBundle("de/unisiegen/gtitool/ui/i18n/messages").getString("NewDialog.NextMnemonic").charAt(0));
jGTIButtonNext.setText(bundle.getString("NewDialog.Next")); // NOI18N
jGTIButtonNext.setToolTipText(bundle.getString("NewDialog.NextToolTip")); // NOI18N
jGTIButtonNext.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jGTIButtonNextActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 0;
gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);
jGTIPanelButtons.add(jGTIButtonNext, gridBagConstraints);
jGTIButtonCancel.setMnemonic(java.util.ResourceBundle.getBundle("de/unisiegen/gtitool/ui/i18n/messages").getString("NewDialog.CancelMnemonic").charAt(0));
jGTIButtonCancel.setText(bundle.getString("NewDialog.Cancel")); // NOI18N
jGTIButtonCancel.setToolTipText(bundle.getString("NewDialog.CancelToolTip")); // NOI18N
jGTIButtonCancel.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jGTIButtonCancelActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 2;
gridBagConstraints.gridy = 0;
gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
jGTIPanelButtons.add(jGTIButtonCancel, gridBagConstraints);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 3;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.insets = new java.awt.Insets(5, 16, 16, 16);
add(jGTIPanelButtons, gridBagConstraints);
}// </editor-fold>//GEN-END:initComponents
private void jGTIRadioButtonPDAItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jGTIRadioButtonPDAItemStateChanged
logic.handlePDAItemStateChanged(evt);
}//GEN-LAST:event_jGTIRadioButtonPDAItemStateChanged
private void jGTIRadioButtonENFAItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jGTIRadioButtonENFAItemStateChanged
logic.handleENFAItemStateChanged(evt);
}//GEN-LAST:event_jGTIRadioButtonENFAItemStateChanged
private void jGTIRadioButtonNFAItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jGTIRadioButtonNFAItemStateChanged
logic.handleNFAItemStateChanged(evt);
}//GEN-LAST:event_jGTIRadioButtonNFAItemStateChanged
private void jGTIRadioButtonDFAItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jGTIRadioButtonDFAItemStateChanged
logic.handleDFAItemStateChanged(evt);
}//GEN-LAST:event_jGTIRadioButtonDFAItemStateChanged
private void jGTIButtonCancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jGTIButtonCancelActionPerformed
logic.handleCancel();
}//GEN-LAST:event_jGTIButtonCancelActionPerformed
private void jGTIButtonNextActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jGTIButtonNextActionPerformed
logic.handleNextMachineChoice();
}//GEN-LAST:event_jGTIButtonNextActionPerformed
private void jGTIButtonPreviousActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jGTIButtonPreviousActionPerformed
logic.handlePreviousMachineChoice();
}//GEN-LAST:event_jGTIButtonPreviousActionPerformed
// Variables declaration - do not modify//GEN-BEGIN:variables
public javax.swing.ButtonGroup buttonGroupChoice;
public de.unisiegen.gtitool.ui.swing.JGTIButton jGTIButtonCancel;
public de.unisiegen.gtitool.ui.swing.JGTIButton jGTIButtonNext;
public de.unisiegen.gtitool.ui.swing.JGTIButton jGTIButtonPrevious;
public de.unisiegen.gtitool.ui.swing.JGTILabel jGTILabelCaption;
public de.unisiegen.gtitool.ui.swing.JGTIPanel jGTIPanelButtons;
public de.unisiegen.gtitool.ui.swing.JGTIPanel jGTIPanelColumn0;
public de.unisiegen.gtitool.ui.swing.JGTIPanel jGTIPanelMachines;
public de.unisiegen.gtitool.ui.swing.JGTIRadioButton jGTIRadioButtonDFA;
public de.unisiegen.gtitool.ui.swing.JGTIRadioButton jGTIRadioButtonENFA;
public de.unisiegen.gtitool.ui.swing.JGTIRadioButton jGTIRadioButtonNFA;
public de.unisiegen.gtitool.ui.swing.JGTIRadioButton jGTIRadioButtonPDA;
// End of variables declaration//GEN-END:variables
}