Exemple #1
0
  @Override
  public void rowSelected(int row) {
    // TODO Auto-generated method stub
    if (row != 0 && !table.getModel().getContentAt(1, row).toString().equals("")) {
      action = 2;
      btnBrisi_.setEnabled(true);
      btnNovo_.setEnabled(true);

      m_ControlId = table.getModel().getContentAt(6, row).toString();

      m_ControlRiskId = table.getModel().getContentAt(4, row).toString();

      String control = table.getModel().getContentAt(2, row).toString();

      String description = table.getModel().getContentAt(5, row).toString();

      //			if (description == null)
      //				textPrimjena_.setText("");
      //			else
      textPrimjena_.setText(description);
      comboKontrola_.setText(m_ControlId + "-" + control);

    } else {
      fillForm();
    }
  }
Exemple #2
0
  private void fillForm() {
    // TODO Auto-generated method stub

    /** Poèetno postavljanje controla */
    action = 1;
    initialSettings();
    table.setSelection(null, false);
  }
Exemple #3
0
 public void refreshTable() {
   ((ListRiskASKTableModel) m_RiskModel).readAllFromDB();
   ((ListControlRiskASKTableModel) table.getModel()).readAllFromDB();
   //		((ListRiskASKTableModel) m_ModelRisk).readAllFromDB();
   table.redraw();
 }
Exemple #4
0
 private void refreshTable() {
   ((ListAssetASKTableModel) m_Model).readAllFromDB();
   m_Table.redraw();
 }