Package edu.hawaii.ics.csdl.jupiter.file.preference

Examples of edu.hawaii.ics.csdl.jupiter.file.preference.ColumnEntry


        if (eventType == XMLStreamConstants.START_ELEMENT) {
          QName elementQName = reader.getName();
          String elementName = elementQName.toString();
          if (ELEMENT_COLUMN_ENTRY.equals(elementName)) {
            ColumnEntry colEntry = new ColumnEntry();
            colEntry.setName(reader.getAttributeValue(null, ATTRIBUTE_NAME));
            String width = reader.getAttributeValue(null, ATTRIBUTE_WIDTH);
           
            try {
              colEntry.setWidth(Integer.valueOf(width));
            }
            catch (NumberFormatException e) {
              // just don't set the width
            }
           
            colEntry.setResizable(Boolean.valueOf(reader.getAttributeValue(null,
                ATTRIBUTE_RESIZABLE)));
            colEntry.setEnable(Boolean.valueOf(reader
                .getAttributeValue(null, ATTRIBUTE_ENABLE)));
           
            phase.getColumnEntry().add(colEntry);
          }
        }
View Full Code Here


        boolean resizable = columnDataArray[i].getColumnPixelData().resizable;
        String columnNameKey = columnDataArray[i].getColumnNameKey();
        boolean isEnabled = columnDataArray[i].isEnabled();

        // create column data entry from scratch
        ColumnEntry columnEntry = new ColumnEntry();
        columnEntry.setWidth(width);
        columnEntry.setResizable(resizable);
        columnEntry.setName(columnNameKey);
        columnEntry.setEnable(isEnabled);

        phase.getColumnEntry().add(columnEntry);
      }
      try {
        PrefXmlSerializer.serializePreference(preference);
View Full Code Here

TOP

Related Classes of edu.hawaii.ics.csdl.jupiter.file.preference.ColumnEntry

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.