ListModelList<Pegawai> lmUg = new ListModelList<Pegawai>(grups);
lstData.setModel(lmUg);
}
public Pegawai extract() {
Pegawai peg = txtIdPegawai.getText() != null
? !"".equals(txtIdPegawai.getText())
? pegawaiRepository.findOne(txtIdPegawai.getText())
: new Pegawai()
: new Pegawai();
peg.setJabatan(referensiUtil.fromCombo(txtJabatan));
peg.setPangkat(referensiUtil.fromCombo(txtPangkat));
peg.setNip(txtNip.getText());
peg.setNama(txtNama.getText());
peg.setEmail(txtEmail.getText());
peg.setUnit(unitLookuper.getValue(txtUnit));
// tarif.setKode(txtKode.getText());
return peg;
}