Package com.cubusmail.gwtui.client.model

Examples of com.cubusmail.gwtui.client.model.IGWTFolder


  public boolean doBeforeNodeDrop( TreePanel treePanel, TreeNode target, DragData dragData, String point,
      DragDrop source, TreeNode dropNode, DropNodeCallback dropNodeCallback ) {

    try {
      if ( dragData instanceof TreeDragData ) {
        IGWTFolder sourceFolder = (IGWTFolder) dropNode.getUserObject();
        IGWTFolder targedFolder = (IGWTFolder) target.getUserObject();

        ActionRegistry.MOVE_FOLDER.get( MoveFolderAction.class ).moveFolder( sourceFolder.getId(),
            targedFolder.getId() );
        return true;
      }
      else if ( dragData instanceof GridDragData ) {

        if ( POINT_APPEND.equals( point ) ) {
View Full Code Here


      DragDrop source, TreeNode dropNode ) {

    // is drop node allowed to move
    try {
      if ( dragData instanceof TreeDragData ) {
        IGWTFolder sourceFolder = (IGWTFolder) dropNode.getUserObject();
        IGWTFolder targedFolder = (IGWTFolder) target.getUserObject();

        return POINT_APPEND.equals( point ) && allowMoving( sourceFolder, targedFolder );
      }
      else if ( dragData instanceof GridDragData ) {
        return POINT_APPEND.equals( point );
View Full Code Here

  /**
   *
   */
  private void deleteTrash() {

    IGWTFolder folder = GWTSessionManager.get().getMailbox().getTrashFolder();
    if ( folder != null ) {
      ServiceProvider.getMailboxService().emptyFolder( folder.getId(), new AsyncCallbackAdapter<Void>() {

        @Override
        public void onSuccess( Void result ) {

          logout();
View Full Code Here

     * (com.gwtext.client.widgets.tree.TreeNode,
     * com.gwtext.client.core.EventObject)
     */
    public void onClick( TreeNode node, EventObject e ) {

      IGWTFolder mailFolder = (IGWTFolder) node.getUserObject();
      if ( !node.equals( currentTreeNode ) ) {
        currentTreeNode = node;
        changeToolbarButtonStatus( mailFolder );
        if ( mailFolder instanceof GWTMailFolder ) {
          GWTSessionManager.get().setCurrentMailFolder( (GWTMailFolder) mailFolder );
View Full Code Here

     * onContextMenu(com.gwtext.client.widgets.tree.TreeNode,
     * com.gwtext.client.core.EventObject)
     */
    public void onContextMenu( TreeNode node, EventObject e ) {

      IGWTFolder mailFolder = (IGWTFolder) node.getUserObject();
      changeContextMenuStatus( mailFolder );

      contextMenu.showAt( e.getXY() );
    }
View Full Code Here

TOP

Related Classes of com.cubusmail.gwtui.client.model.IGWTFolder

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.