Package net.sf.mpxj

Examples of net.sf.mpxj.FieldType


    * @param fieldID field ID
    * @return FieldType instance
    */
   public static final FieldType getInstance(int fieldID)
   {
      FieldType result;
      int prefix = fieldID & 0xFFFF0000;
      int index = fieldID & 0x0000FFFF;

      switch (prefix)
      {
View Full Code Here


    * @param fieldID field ID
    * @return FieldType instance
    */
   public static final FieldType getInstance14Unmapped(int fieldID)
   {
      FieldType result;
      int prefix = fieldID & 0xFFFF0000;
      int index = fieldID & 0x0000FFFF;

      switch (prefix)
      {
View Full Code Here

    * @param fieldID field ID
    * @return FieldType instance
    */
   public static final FieldType getInstance14(int fieldID)
   {
      FieldType result;
      int prefix = fieldID & 0xFFFF0000;
      int index = fieldID & 0x0000FFFF;

      switch (prefix)
      {
View Full Code Here

      numberMap = mapMpxIndexes(clazz,NUMBER,CustomFieldsImpl.NUM_NUMBER);
      startMap = mapMpxIndexes(clazz,START,CustomFieldsImpl.NUM_START);
      textMap = mapMpxIndexes(clazz,TEXT,CustomFieldsImpl.NUM_TEXT);
    }
    private FieldType[] mapMpxIndexes(Class clazz, String text, int count) {
      FieldType result[] = new FieldType[count];
      for (int i = 0;i < count ;i++) {
        try {
          result[i] = (FieldType) clazz.getDeclaredField(text+(i+1)).get(null); // look for something like TEXT12
        } catch (Exception e) {
          e.printStackTrace();
View Full Code Here

      // 16 byte header
      // followed by 4 bytes = field type
      // followed by 2 byte block size
      for (int loop = 0; loop < filterCount; loop++)
      {
         FieldType field = getFieldType(data, offset);
         int blockSize = MPPUtility.getShort(data, offset + 4);

         //
         // Steelray 12335: the block size may be zero
         //
View Full Code Here

   }

   @Override protected TableFontStyle getColumnFontStyle(byte[] data, int offset, Map<Integer, FontBase> fontBases)
   {
      int uniqueID = MPPUtility.getInt(data, offset);
      FieldType fieldType = MPPTaskField14.getInstance(MPPUtility.getShort(data, offset + 4));
      Integer index = Integer.valueOf(MPPUtility.getByte(data, offset + 8));
      int style = MPPUtility.getByte(data, offset + 11);
      Color color = MPPUtility.getColor(data, offset + 12);
      int change = MPPUtility.getShort(data, offset + 40);
      Color backgroundColor = MPPUtility.getColor(data, offset + 24);
View Full Code Here

    * @return ColumnFontStyle instance
    */
   protected TableFontStyle getColumnFontStyle(byte[] data, int offset, Map<Integer, FontBase> fontBases)
   {
      int uniqueID = MPPUtility.getInt(data, offset);
      FieldType fieldType = MPPTaskField.getInstance(MPPUtility.getShort(data, offset + 4));
      Integer index = Integer.valueOf(MPPUtility.getByte(data, offset + 8));
      int style = MPPUtility.getByte(data, offset + 9);
      ColorType color = ColorType.getInstance(MPPUtility.getByte(data, offset + 10));
      int change = MPPUtility.getByte(data, offset + 12);

View Full Code Here

TOP

Related Classes of net.sf.mpxj.FieldType

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.