示例#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();
 }
示例#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("");
  }
示例#3
0
 public Vector<Telephone> getTele() {
   if (linkTelAddress == false) {
     return teleView.getTels();
   }
   return null;
 }
示例#4
0
 public void setTele(Vector<Telephone> t) {
   teleView.setTels(t);
 }
示例#5
0
 public void setLinkTelAddress(boolean b) {
   addressView.setEditable(!b);
   addressView.getArchive().setEnabled(!b);
   teleView.setEditable(!b);
   linkTelAddress = b;
 }