Package org.springframework.richclient.dialog

Examples of org.springframework.richclient.dialog.FormBackedDialogPage


      creatingNew = true;
      contact = new Contact();
    }
    setCloseAction(CloseAction.DISPOSE);
    form = new ContactForm(contact);
    setDialogPage(new FormBackedDialogPage(form));
    this.dataStore = dataStore;
  }
View Full Code Here


 
   protected void doExecuteCommand() {
    SearchBean searchBean = new SearchBean();
      FormModel formModel = FormModelHelper.createFormModel(searchBean);
      final SearchForm form = new SearchForm(formModel);
      FormBackedDialogPage page = new FormBackedDialogPage(form);

      TitledPageApplicationDialog dialog =
          new TitledPageApplicationDialog(page, getParentWindowControl()) {
       
          protected boolean onFinish() {
View Full Code Here

    private class PetPropertiesExecutor extends AbstractActionCommandExecutor {

        public void execute() {
            final Pet pet = getSelectedPet();
            final PetForm petForm = new PetForm(FormModelHelper.createFormModel(pet), false);
            final FormBackedDialogPage dialogPage = new FormBackedDialogPage(petForm);

            TitledPageApplicationDialog dialog = new TitledPageApplicationDialog(dialogPage, getWindowControl(), CloseAction.DISPOSE) {
                protected void onAboutToShow() {
                    petForm.requestFocusInWindow();
                    setEnabled(dialogPage.isPageComplete());
                }

                protected boolean onFinish() {
                    petForm.commit();
                    clinic.storePet(pet);
View Full Code Here

         * Create the dialog with {@link CloseAction#HIDE}. This will keep the dialog hidden in order
         * to reuse the component. This avoids the time-consuming building of the dialog gui each time.
         */
        private void createDialog() {
            petForm = new PetForm(FormModelHelper.createFormModel(new Pet()), true);
            dialogPage = new FormBackedDialogPage(petForm);

            dialog = new TitledPageApplicationDialog(dialogPage, getWindowControl(), CloseAction.HIDE) {
                protected void onAboutToShow() {
                    petForm.requestFocusInWindow();
                    setEnabled(dialogPage.isPageComplete());
View Full Code Here

  }

  @Override
  @NotNull
  public DialogPage createTab() {
    return new FormBackedDialogPage( form );
  }
View Full Code Here

  }

  public void setBean( @NotNull T bean ) {
    this.bean = bean;
    form = createForm();
    setDialogPage( new FormBackedDialogPage( form ) );

    MessageSourceAccessor messageSourceAccessor = ( MessageSourceAccessor ) ApplicationServicesLocator.services().getService( MessageSourceAccessor.class );
    setTitle( messageSourceAccessor.getMessage( form.getClass().getName() + DIALOG_SUFFIX ) );
  }
View Full Code Here

    setCloseAction( CloseAction.DISPOSE );
  }

  @Override
  public void showDialog() throws CanceledException {
    setDialogPage( new FormBackedDialogPage( formUi.getForm() ) );
    super.showDialog();
  }
View Full Code Here

TOP

Related Classes of org.springframework.richclient.dialog.FormBackedDialogPage

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.