package osa.attribute.atgrammar.gui.panels;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;


/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: </p>
 * <p>Company: </p>
 * @author not attributable
 * @version
 */

public class DictionaryPanel
  extends JPanel
  {
  JList non_terminals_lst = new JList();
  JList terminals_lst = new JList();
  JList outputs_lst = new JList();
  JButton add_new_btn = new JButton();
  JButton remove_btn = new JButton();
  JButton rename_btn = new JButton();
  JButton properties_btn = new JButton();
  JLabel non_terminals_lbl = new JLabel();
  JLabel terminals_lbl = new JLabel();
  JLabel outputs_lbl = new JLabel();
  JPanel jPanel1 = new JPanel();
  GridLayout gridLayout1 = new GridLayout();
  GridBagLayout gridBagLayout1 = new GridBagLayout();
  public DictionaryPanel()
    {
    try {
      jbInit();
    }
    catch(Exception e) {
      e.printStackTrace();
    }
    }
  private void jbInit() throws Exception {
    this.setLayout(gridBagLayout1);
    add_new_btn.setText("Добавить");
    remove_btn.setText("Удалить");
    rename_btn.setText("Переименовать");
    properties_btn.setText("Свойства");
    non_terminals_lbl.setText("Нетерминалы:");
    terminals_lbl.setText("Терминалы:");
    outputs_lbl.setText("Выходные:");
    jPanel1.setLayout(gridLayout1);
    gridLayout1.setColumns(4);
    gridLayout1.setHgap(5);
    gridLayout1.setRows(1);
    gridLayout1.setVgap(5);
    this.add(jPanel1,    new GridBagConstraints(0, 2, 3, 1, 1.0, 0.0
            ,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0));
    jPanel1.add(add_new_btn, null);
    jPanel1.add(properties_btn, null);
    jPanel1.add(rename_btn, null);
    jPanel1.add(remove_btn, null);
    this.add(non_terminals_lst,   new GridBagConstraints(0, 1, 1, 1, 1.0, 1.0
            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0));
    this.add(terminals_lst,   new GridBagConstraints(1, 1, 1, 1, 1.0, 1.0
            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0));
    this.add(outputs_lst,   new GridBagConstraints(2, 1, 1, 1, 1.0, 1.0
            ,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0));
    this.add(outputs_lbl,    new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0
            ,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0));
    this.add(terminals_lbl,    new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0
            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
    this.add(non_terminals_lbl,   new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
            ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
  }
  }