Package org.springframework.richclient.dialog

Examples of org.springframework.richclient.dialog.TitledPageApplicationDialog


        if( getDefaultUserName() != null ) {
            loginForm.setUserName( getDefaultUserName() );
        }

        dialog = new TitledPageApplicationDialog( tabbedPage ) {
            protected boolean onFinish() {
                loginForm.commit();
                Authentication authentication = loginForm.getAuthentication();

                // Hand this token to the security manager to actually attempt the login
View Full Code Here


    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() {
              form.commit();
              SearchBean bean = (SearchBean)form.getFormObject();
              try{
            SearchWorker worker = new SearchWorker(bean.getQueryString());
            worker.start();
            return true;
              }
              catch(IllegalArgumentException e){
                return false;
              }
          }
      };
      dialog.showDialog();
   }
View Full Code Here

            compositePage = new TabbedDialogPage("ownerProperties");
            compositePage.addForm(ownerGeneralForm);
            compositePage.addForm(new OwnerAddressForm(FormModelHelper.createChildPageFormModel(ownerFormModel, null)));

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

        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);
                    ownersTreeModel.nodeChanged(getSelectedPetNode());
                    return true;
                }
            };
            dialog.showDialog();
        }
View Full Code Here

         */
        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

TOP

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

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.