Esempio n. 1
0
 /**
  * Load infos from contact in the corresponding views.
  *
  * @param c contact
  */
 public void set(Contact c) {
   contact = c;
   setPerson(c);
   if (c != null) {
     setAddress(c.getAddress());
     setTele(c.getTele());
     setEmail(c.getEmail());
     websiteView.setSites(c.getSites());
   }
 }
Esempio n. 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("");
  }
Esempio n. 3
0
 public Vector<WebSite> getSites() {
   return websiteView.getSites();
 }
Esempio n. 4
0
 public void setSites(List<WebSite> sites) {
   websiteView.setSites(new Vector<WebSite>(sites));
 }