Example #1
0
 public void setLinkTelAddress(Vector a, Vector t, JCheckBox cb) {
   if (a != null && a.size() > 0) {
     addressView.set((Address) a.elementAt(0));
   }
   addressView.setEditable(false);
   addressView.getArchive().setEnabled(false);
   teleView.setLien(t);
   teleView.setEditable(false);
   gb.add(cb, 0, 1, 1, 1, GridBagHelper.WEST);
   cbTelAddress = cb;
   linkTelAddress = true;
   revalidate();
 }
Example #2
0
  public void clear() {
    contact = null;
    personView.clear();
    teleView.clear();
    emailView.clear();
    websiteView.clear();
    addressView.clear();

    if (cbTelAddress != null) {
      cbTelAddress.removeItemListener(this);
      remove(cbTelAddress);
      revalidate();
      cbTelAddress = null;
    }
    linkTelAddress = false;
    note.setText("");
  }
Example #3
0
 public Vector<Telephone> getTele() {
   if (linkTelAddress == false) {
     return teleView.getTels();
   }
   return null;
 }
Example #4
0
 public void setTele(Vector<Telephone> t) {
   teleView.setTels(t);
 }
Example #5
0
 public void setLinkTelAddress(boolean b) {
   addressView.setEditable(!b);
   addressView.getArchive().setEnabled(!b);
   teleView.setEditable(!b);
   linkTelAddress = b;
 }