()
| 128 | } |
| 129 | |
| 130 | private void initComponents() |
| 131 | { |
| 132 | setOrientation(VERTICAL_SPLIT); |
| 133 | |
| 134 | deityTable.setTreeCellRenderer(qualifiedRenderer); |
| 135 | JPanel panel = new JPanel(new BorderLayout()); |
| 136 | FilterBar<Object, Deity> bar = new FilterBar<>(); |
| 137 | bar.addDisplayableFilter(new SearchFilterPanel()); |
| 138 | qDeityButton.setText(LanguageBundle.getString("in_igQualFilter")); //$NON-NLS-1$ |
| 139 | bar.addDisplayableFilter(qDeityButton); |
| 140 | deityTable.setDisplayableFilter(bar); |
| 141 | panel.add(bar, BorderLayout.NORTH); |
| 142 | |
| 143 | ListSelectionModel selectionModel = deityTable.getSelectionModel(); |
| 144 | selectionModel.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); |
| 145 | panel.add(new JScrollPane(deityTable), BorderLayout.CENTER); |
| 146 | |
| 147 | Box box = Box.createHorizontalBox(); |
| 148 | box.add(Box.createHorizontalGlue()); |
| 149 | box.add(new JLabel(LanguageBundle.getString("in_domDeityLabel"))); //$NON-NLS-1$ |
| 150 | box.add(Box.createHorizontalStrut(5)); |
| 151 | box.add(selectedDeity); |
| 152 | box.add(Box.createHorizontalStrut(5)); |
| 153 | box.add(selectDeity); |
| 154 | box.add(Box.createHorizontalGlue()); |
| 155 | panel.add(box, BorderLayout.SOUTH); |
| 156 | |
| 157 | FlippingSplitPane splitPane = new FlippingSplitPane(); |
| 158 | splitPane.setLeftComponent(panel); |
| 159 | |
| 160 | panel = new JPanel(new BorderLayout()); |
| 161 | FilterBar<CharacterFacade, QualifiedObject<Domain>> dbar = new FilterBar<>(); |
| 162 | dbar.addDisplayableFilter(new SearchFilterPanel()); |
| 163 | qDomainButton.setText(LanguageBundle.getString("in_igQualFilter")); //$NON-NLS-1$ |
| 164 | dbar.addDisplayableFilter(qDomainButton); |
| 165 | domainFilter = dbar; |
| 166 | panel.add(dbar, BorderLayout.NORTH); |
| 167 | |
| 168 | selectionModel = domainTable.getSelectionModel(); |
| 169 | selectionModel.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); |
| 170 | domainTable.setAutoCreateColumnsFromModel(false); |
| 171 | domainTable.setColumnModel(createDomainColumnModel()); |
| 172 | |
| 173 | JScrollPane scrollPane = TableUtils.createCheckBoxSelectionPane(domainTable, domainRowHeaderTable); |
| 174 | panel.add(scrollPane, BorderLayout.CENTER); |
| 175 | |
| 176 | box = Box.createHorizontalBox(); |
| 177 | box.add(Box.createHorizontalGlue()); |
| 178 | box.add(new JLabel(LanguageBundle.getString("in_domRemainDomLabel"))); //$NON-NLS-1$ |
| 179 | box.add(Box.createHorizontalStrut(5)); |
| 180 | box.add(selectedDomain); |
| 181 | box.add(Box.createHorizontalGlue()); |
| 182 | |
| 183 | panel.add(box, BorderLayout.SOUTH); |
| 184 | |
| 185 | splitPane.setRightComponent(panel); |
| 186 | setTopComponent(splitPane); |
| 187 | splitPane = new FlippingSplitPane(); |
no test coverage detected