ListModelList<Referensi> lmUg = new ListModelList<Referensi>(grups);
lstData.setModel(lmUg);
}
public Referensi extract() {
Referensi ref = txtIdReferensi.getText() != null
? !"".equals(txtIdReferensi.getText())
? referensiRepository.findOne(txtIdReferensi.getText())
: new Referensi()
: new Referensi();
ref.setNama(txtNama.getText());
Referensi grup = referensiUtil.fromCombo(txtGrup);
ref.setGrup(grup != null ? grup.getNum() : null);
ref.setKeterangan(txtKeterangan.getText());
ref.setKode(txtKode.getText());
ref.setUrut(txtUrut.getValue());
ref.setNilai(txtNilai.getValue() != null ? txtNilai.getValue().longValue() : null);
ref.setNum(txtNilai.getValue() != null ? txtNum.getValue().longValue() : null);