Examples of ConfirmationDialog


Examples of org.springframework.richclient.dialog.ConfirmationDialog

  @Override
  protected void doExecuteCommand() {
    String title = SpringSupport.INSTANCE.getMessage( DELETE_COMMAND_ID + ".title" );
    String message = SpringSupport.INSTANCE.getMessage( DELETE_COMMAND_ID + ".message" );
    ConfirmationDialog dlg = new ConfirmationDialog( title, message ) {
      @Override
      protected void onConfirm() {
        final List<? extends T> objectsToDelete = objectAccess.getElements();

        new BlockingBackgroundActionRunner( SpringSupport.INSTANCE.getActiveApplicationWindow(), new BackgroundAction( idStrategy.getBaseId() + AddRemoveAspect.KEY_DELETE_BEAN ) {
          @Override
          protected boolean confirm() {
            if ( callback != null ) {
              return callback.confirm();
            }
            return true;
          }

          @Override
          protected void executeInBackground() throws Exception {
            for ( T entry : objectsToDelete ) {
              objectRemove.remove( entry );
              // And notify the rest of the application of the change
              SpringSupport.INSTANCE.publishDeleted( entry );
            }
          }
        } ).run();
      }
    };
    dlg.showDialog();
  }
View Full Code Here

Examples of org.springframework.richclient.dialog.ConfirmationDialog

      throw new IllegalStateException( "Bean is null" );
    }

    String title = "delete." + listView.getBeanType().getName();
    String message = "delete." + listView.getBeanType().getName() + bean; //TODO message format
    ConfirmationDialog dialog = new ConfirmationDialog( title, listView.getContext().getWindow().getControl(), message ) {
      @Override
      protected void onConfirm() {
        listView.getBeanManager().delete( bean );
      }
    };
    dialog.showDialog();
  }
View Full Code Here

Examples of palmed.ui.ConfirmationDialog

                {
                    display_.setCurrent( next_ );
                }
            };
            final String description = "The file " + file.toString() + " already exists.";
            display_.setCurrent( new ConfirmationDialog( TITLE, description, QUESTION, listener ) );
        }
    }
View Full Code Here

Examples of palmed.ui.ConfirmationDialog

    }

    private Displayable createCloseDialog( final IBufferManager manager, final IResult result )
    {
        final CloseConfirmationListener listener = new CloseConfirmationListener( manager, result );
        return new ConfirmationDialog( "Buffer Close Confirmation", "This buffer has been modified.",
                "Are you sure you want to close it ?", listener );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.