Package com.cubusmail.gwtui.client.windows

Examples of com.cubusmail.gwtui.client.windows.MailFolderWindow


  private class OKButtonListener extends ButtonListenerAdapter {

    public void onClick( Button button, EventObject e ) {

      MailFolderWindow window = WindowRegistry.MOVE_FOLDER_WINDOW.get( MailFolderWindow.class );
      if ( window.getSelectedTreeNode() != null ) {
        WindowRegistry.MOVE_FOLDER_WINDOW.close();
        String sourceFolderId = ((GWTMailFolder) getSelectedTreeNode().getUserObject()).getId();
        String targetFolderId = window.getSelectedFolderId();
        moveFolder( sourceFolderId, targetFolderId );
      }
      else {
        MessageBox.alert( "Bitte w�hlen einen Ordner aus" );
      }
View Full Code Here


   */
  public void execute() {

    if ( this.toMove ) {
      if ( this.okButtonListener == null ) {
        MailFolderWindow dialog = WindowRegistry.MOVE_MESSAGES_WINDOW.get( MailFolderWindow.class );
        this.okButtonListener = new OKButtonListener( dialog );
        dialog.addOKButtonListener( this.okButtonListener );
      }
      WindowRegistry.MOVE_MESSAGES_WINDOW.open();
    }
    else {
      if ( this.okButtonListener == null ) {
        MailFolderWindow dialog = WindowRegistry.COPY_MESSAGES_WINDOW.get( MailFolderWindow.class );
        this.okButtonListener = new OKButtonListener( dialog );
        dialog.addOKButtonListener( this.okButtonListener );
      }
      WindowRegistry.COPY_MESSAGES_WINDOW.open();
    }
  }
View Full Code Here

TOP

Related Classes of com.cubusmail.gwtui.client.windows.MailFolderWindow

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.