Package com.projity.pm.graphic.spreadsheet.common.transfer

Examples of com.projity.pm.graphic.spreadsheet.common.transfer.NodeListTransferHandler


      actionMap.put(spreadSheetActionId,spreadSheetAction);
    }
  }
  private void addActions(String[] actions){
//    System.out.println("SpreadSheet "+spreadSheetCategory+", "+hashCode()+" addActions("+dumpActions(actions)+")");
    NodeListTransferHandler handler=null;
    if (getTransferHandler() instanceof NodeListTransferHandler) handler=(NodeListTransferHandler)getTransferHandler();
    if (actions!=null)
      for (int i=0;i<actions.length;i++){
        String action=actions[i];
        addAction(action,MenuActionConstants.ACTION_INDENT,indentAction);
        addAction(action,MenuActionConstants.ACTION_OUTDENT,outdentAction);
        addAction(action,MenuActionConstants.ACTION_NEW,newAction);
        addAction(action,MenuActionConstants.ACTION_DELETE,deleteAction);
        if (handler!=null){
          addAction(action,MenuActionConstants.ACTION_COPY,handler.getNodeListCopyAction());
          addAction(action,MenuActionConstants.ACTION_CUT,handler.getNodeListCutAction());
          addAction(action,MenuActionConstants.ACTION_PASTE,handler.getNodeListPasteAction());
        }
        addAction(action,MenuActionConstants.ACTION_EXPAND,expandAction);
        addAction(action,MenuActionConstants.ACTION_COLLAPSE,collapseAction);
       
      }
View Full Code Here

TOP

Related Classes of com.projity.pm.graphic.spreadsheet.common.transfer.NodeListTransferHandler

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.