Package net.sf.mpxj

Examples of net.sf.mpxj.Group


         // short 4 = show summary tasks
         // short int at byte 6 for number of clauses        
         //Integer groupUniqueID = Integer.valueOf(MPPUtility.getInt(groupVarData, 0));
         boolean showSummaryTasks = (MPPUtility.getShort(groupVarData, 4) != 0);

         Group group = new Group(groupID, groupName, showSummaryTasks);
         file.addGroup(group);

         int clauseCount = MPPUtility.getShort(groupVarData, 6);
         int offset = 8;

         for (int clauseIndex = 0; clauseIndex < clauseCount; clauseIndex++)
         {
            if (offset + 47 > groupVarData.length)
            {
               break;
            }

            GroupClause clause = new GroupClause();
            group.addGroupClause(clause);

            int fieldID = MPPUtility.getInt(groupVarData, offset);
            FieldType type = FieldTypeUtility.getInstance(fieldID);
            clause.setField(type);
View Full Code Here


         // short 4 = show summary tasks
         // short int at byte 6 for number of clauses        
         //Integer groupUniqueID = Integer.valueOf(MPPUtility.getInt(groupVarData, 0));
         boolean showSummaryTasks = (MPPUtility.getShort(groupVarData, 4) != 0);

         Group group = new Group(groupID, groupName, showSummaryTasks);
         file.addGroup(group);

         int clauseCount = MPPUtility.getShort(groupVarData, 10);
         int offset = 12;

         for (int clauseIndex = 0; clauseIndex < clauseCount; clauseIndex++)
         {
            if (offset + 71 > groupVarData.length)
            {
               break;
            }

            //System.out.println("Clause " + clauseIndex);
            //System.out.println(MPPUtility.hexdump(groupVarData, offset, 71, false, 16, ""));

            GroupClause clause = new GroupClause();
            group.addGroupClause(clause);

            int fieldID = MPPUtility.getInt(groupVarData, offset);
            FieldType type = FieldTypeUtility.getInstance14(fieldID);
            clause.setField(type);
View Full Code Here

TOP

Related Classes of net.sf.mpxj.Group

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.