Package org.springframework.richclient.samples.simple.domain

Examples of org.springframework.richclient.samples.simple.domain.Contact


  public ContactPropertiesDialog(Contact contact, ContactDataStore dataStore) {
    Assert.notNull(dataStore, "The data store is required to edit a contact");
    if (contact == null) {
      creatingNew = true;
      contact = new Contact();
    }
    setCloseAction(CloseAction.DISPOSE);
    form = new ContactForm(contact);
    setDialogPage(new FormBackedDialogPage(form));
    this.dataStore = dataStore;
View Full Code Here


    if (creatingNew) {
      getMessage("contactProperties.new.title");
      setTitle(getMessage("contactProperties.new.title"));
    }
    else {
      Contact contact = getEditingContact();
      String title = getMessage("contactProperties.edit.title", new Object[] { contact.getFirstName(),
          contact.getLastName() });
      setTitle(title);
    }
  }
View Full Code Here

            {
                protected void onConfirm()
                {
                    for (Object selected : widget.getSelectedRows())
                    {
                        Contact contact = (Contact) selected;
                        // Delete the object from the persistent store.
                        getContactDataStore().delete(contact);
                        // And notify the rest of the application of the change
                        getApplicationContext().publishEvent(
                                new LifecycleApplicationEvent(LifecycleApplicationEvent.DELETED, contact));
View Full Code Here

TOP

Related Classes of org.springframework.richclient.samples.simple.domain.Contact

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.