private void initClassificationList() { classificationTable.setPreference(preferenceId); try { classificationTable.load(); } catch (RequestException ex) { ErrorDialog.show(this, "Impossible de charger la liste des axes.", ex); } }
private void updateAssetClassificationList() { StringBuffer buffer = new StringBuffer(); boolean first = true; for (int index : classificationTable.getSelectedRows()) { if (first) { first = false; } else { buffer.append(", "); } buffer.append(classificationTable.getColumnValue(index, "classificationId")); } setValue(ASSET_CL_LIST_KEY, buffer.toString()); }
public void checkFulfilled() { for (ClassificationWizardWindow.ComponentValidator validator : validators) { if (!validator.isComponentValid()) { setFulfilled(false); return; } } setFulfilled(classificationTable.getSelectedRowCount() > 0); }
private void jbInit() { BorderLayout borderLayout = new BorderLayout(); borderLayout.setVgap(5); setLayout(borderLayout); setBorder(new EmptyBorder(0, 0, 5, 0)); classificationTable.setName("AssistantSegmentation.ListeDesAxes"); add(new JScrollPane(classificationTable), BorderLayout.CENTER); JScrollPane pane = new JScrollPane(mainPanel); pane.setBorder(new EmptyBorder(0, 0, 0, 0)); add(pane, BorderLayout.EAST); infoField = new JLabel(); infoField.setName("Summary"); add(infoField, BorderLayout.SOUTH); }
Row[] getClassificationTableSelectedRows() { return classificationTable.getAllSelectedDataRows(); }
public void addListSelectionListener(ListSelectionListener listener) { classificationTable.getSelectionModel().addListSelectionListener(listener); }