//make cell editable
configRegistry.registerConfigAttribute(
EditConfigAttributes.CELL_EDITABLE_RULE,
- getEditRule(matrix.getBodyDataProvider()),
-// IEditableRule.ALWAYS_EDITABLE,
+// getEditRule(matrix.getBodyDataProvider()),
+ IEditableRule.ALWAYS_EDITABLE,
DisplayMode.EDIT,
CharacterMatrixConfigLabelAccumulator.CATEGORICAL_EDITABLE
);
//make cell editable
configRegistry.registerConfigAttribute(
EditConfigAttributes.CELL_EDITABLE_RULE,
- getEditRule(matrix.getBodyDataProvider()),
-// IEditableRule.ALWAYS_EDITABLE,
+// getEditRule(matrix.getBodyDataProvider()),
+ IEditableRule.ALWAYS_EDITABLE,
DisplayMode.EDIT,
CharacterMatrixConfigLabelAccumulator.QUANTITATIVE_EDITABLE
);
}
- private static IEditableRule getEditRule(final IDataProvider dataProvider) {
- return new EditableRule(){
- public boolean isEditable(int columnIndex, int rowIndex) {
- Object dataValue = dataProvider.getDataValue(columnIndex, rowIndex);
- if (dataValue instanceof Set && ((Set)dataValue).size()>1){
- return false;
- }else return true;
- }
- };
- }
+// private static IEditableRule getEditRule(final IDataProvider dataProvider) {
+// return new EditableRule(){
+// public boolean isEditable(int columnIndex, int rowIndex) {
+// Object dataValue = dataProvider.getDataValue(columnIndex, rowIndex);
+// if (dataValue instanceof Set && ((Set)dataValue).size()>1){
+// return false;
+// }else return true;
+// }
+// };
+// }
}