Exemplo n.º 1
0
  public void setColorView() {

    code.setBackground(App.whiteSmoke);
    username.setBackground(App.whiteSmoke);
    grp.setBackground(App.whiteSmoke);
    nama.setBackground(App.whiteSmoke);
    alamat.setBackground(App.whiteSmoke);
    salamat.setBackground(App.whiteSmoke);

    kota.setBackground(App.whiteSmoke);
    noIdentitas.setBackground(App.whiteSmoke);
    jenisIdentitas.setBackground(App.whiteSmoke);
    kotaLahir.setBackground(App.whiteSmoke);
    tglLahir.setBackground(App.whiteSmoke);
    jenisKelamin.setBackground(App.whiteSmoke);
    noTelp.setBackground(App.whiteSmoke);
    noHp1.setBackground(App.whiteSmoke);
    noHp2.setBackground(App.whiteSmoke);
    pinBb.setBackground(App.whiteSmoke);
    tglMasuk.setBackground(App.whiteSmoke);
    gaji.setBackground(App.whiteSmoke);
    jenisPekerjaan.setBackground(App.whiteSmoke);
    pendidikanTerakhir.setBackground(App.whiteSmoke);
    status.setBackground(App.whiteSmoke);
  }
Exemplo n.º 2
0
  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) + "");
    }
  }
Exemplo n.º 3
0
  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("");
  }
Exemplo n.º 4
0
  public void setEditable(boolean isEdit) {

    code.setEditable(isEdit);
    username.setEditable(isEdit);
    grp.setEditable(isEdit);
    nama.setEditable(isEdit);
    alamat.setEditable(isEdit);

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