コード例 #1
0
ファイル: UsrC.java プロジェクト: saiful-mukhlis/basic
  public void setContentComponent(ODocument o) {
    if (o != null && modelIsTrue(o)) {
      UsrDao d = App.getUsrDao();
      code.setText(d.getCode(o));

      username.setText(d.getUsername(o));
      //				grp.setText(model.field(Usr.)+"");
      nama.setText(d.getNama(o));
      alamat.setText(d.getAlamat(o));

      kota.setText(d.getKota(o));
      noIdentitas.setText(d.getNoIdentitas(o));
      jenisIdentitas.setText(d.getJenisIdentitas(o));
      kotaLahir.setText(d.getKotaLahir(o));
      tglLahir.setText(d.tglLahirToString(o));
      jenisKelamin.setText(d.jenisKelaminToString(o));
      noTelp.setText(d.getNoTelp(o));
      noHp1.setText(d.getNoHp1(o));
      noHp2.setText(d.getNoHp2(o));
      pinBb.setText(d.getPinBb(o));
      tglMasuk.setText(d.tglMasukToString(o));
      gaji.setText(d.gajiToString(o));
      //				jenisPekerjaan.setText(model.field(Usr.JENIS_PEKERJAAN)+"");
      pendidikanTerakhir.setText(d.getPendidikanTerakhir(o));
      status.setText(d.statusToString(o));

    } else if (o != null && o.field("@class").equals(Grp.TABLE)) {
      grp.setText(o.field(Grp.NAME) + "");
    } else if (o != null && o.field("@class").equals(JenisPekerjaan.TABLE)) {
      jenisPekerjaan.setText(o.field(JenisPekerjaan.NAMA) + "");
    }
  }
コード例 #2
0
 @Override
 public void actionReset() {
   code.setText("Auto");
   nama.setText("");
   username.setText("");
   password.setText("");
   ulang.setText("");
   jenisIdentitas.setText("");
   noIdentitas.setText("");
   alamat.setText("");
   kota.setText("");
   hp.setText("");
   status.setSelectedIndex(0);
   List<Object> os = App.getHakAks().getAll();
   os.add(0, App.getT("Pilih Hak Akses"));
   hakAksesModel = new DefaultComboBoxModel<Object>(os.toArray());
   hakAkses.setModel(hakAksesModel);
   hakAkses.setSelectedIndex(0);
   requestDefaultFocus();
 }
コード例 #3
0
ファイル: UsrC.java プロジェクト: saiful-mukhlis/basic
  public void resetContentComponent() {
    code.setText("");
    username.setText("");
    grp.setText("");
    nama.setText("");
    alamat.setText("");

    kota.setText("");
    noIdentitas.setText("");
    jenisIdentitas.setText("");
    kotaLahir.setText("");
    tglLahir.setText("");
    jenisKelamin.setText("");
    noTelp.setText("");
    noHp1.setText("");
    noHp2.setText("");
    pinBb.setText("");
    tglMasuk.setText("");
    gaji.setText("");
    jenisPekerjaan.setText("");
    pendidikanTerakhir.setText("");
    status.setText("");
  }