Main panel of the random name generator.
| 76 | * Main panel of the random name generator. |
| 77 | */ |
| 78 | @SuppressWarnings({"UseOfObsoleteCollectionType", "PMD.UseArrayListInsteadOfVector"}) |
| 79 | public class NameGenPanel extends JPanel |
| 80 | { |
| 81 | private final Map<String, List<RuleSet>> categories = new HashMap<>(); |
| 82 | private JButton generateButton; |
| 83 | private JButton jButton1; |
| 84 | private JCheckBox chkStructure; |
| 85 | private JComboBox<RuleSet> cbCatalog; |
| 86 | private JComboBox<String> cbCategory; |
| 87 | private JComboBox<String> cbGender; |
| 88 | private JComboBox<DataElement> cbStructure; |
| 89 | private JLabel jLabel1; |
| 90 | private JLabel jLabel2; |
| 91 | private JLabel jLabel3; |
| 92 | |
| 93 | private JLabel jLabel4; |
| 94 | private JLabel jLabel5; |
| 95 | private JLabel jLabel6; |
| 96 | private JLabel meaning; |
| 97 | private JLabel pronounciation; |
| 98 | private JPanel buttonPanel; |
| 99 | private JPanel genCtrlPanel; |
| 100 | private JPanel jPanel10; |
| 101 | private JPanel jPanel11; |
| 102 | private JPanel jPanel12; |
| 103 | private JPanel jPanel13; |
| 104 | private JPanel jPanel14; |
| 105 | private JPanel nameDisplayPanel; |
| 106 | private JPanel namePanel; |
| 107 | private JPanel jPanel4; |
| 108 | private JPanel nameSubInfoPanel; |
| 109 | private JPanel nameActionPanel; |
| 110 | private JPanel jPanel7; |
| 111 | private JPanel jPanel8; |
| 112 | private JPanel jPanel9; |
| 113 | private JSeparator jSeparator1; |
| 114 | private JSeparator jSeparator2; |
| 115 | private JSeparator jSeparator3; |
| 116 | private JSeparator jSeparator4; |
| 117 | private JTextField name; |
| 118 | private final VariableHashMap allVars = new VariableHashMap(); |
| 119 | |
| 120 | private Rule lastRule = null; |
| 121 | |
| 122 | /** Creates new form NameGenPanel */ |
| 123 | public NameGenPanel() |
| 124 | { |
| 125 | this(new File(".")); |
| 126 | } |
| 127 | |
| 128 | /** |
| 129 | * Constructs a NameGenPanel given a dataPath |
| 130 | * |
| 131 | * @param dataPath The path to the random name data files. |
| 132 | */ |
| 133 | public NameGenPanel(File dataPath) |
| 134 | { |
| 135 | initComponents(); |
nothing calls this directly
no outgoing calls
no test coverage detected