Package com.projity.graphic.configuration

Examples of com.projity.graphic.configuration.SpreadSheetFieldArray.removeField()


    hide.setIcon(IconManager.getIcon("menu.hideColumn")); //$NON-NLS-1$

    hide.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        if (fields.size() > 2 ) { // there is always the hidden Id field, so only allow delete if more than one other field
          sp.setFieldArray(fields.removeField(col));
        } else {
          Alert.warn(Messages.getString("Message.cantEmptySpreadsheet"),sp); //$NON-NLS-1$
        }
      }
    });
View Full Code Here


    spreadSheet.setSpreadSheetCategory(spreadsheetCategory); // for columns - must do first
   
    SpreadSheetFieldArray fields=getFields();
    if (((ResourcePool)document).isMaster()){
      fields=(SpreadSheetFieldArray)fields.clone();
      fields.removeField("Field.userRole"); //$NON-NLS-1$
    }
    spreadSheet.setCache(cache,fields,fields.getCellStyle(),fields.getActionList());
    ((SpreadSheetModel)spreadSheet.getModel()).setFieldContext(fieldContext);
    spreadSheet.setReadOnly(readOnly);
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.