Browse Source

calculator优化

master
daniel 8 years ago
parent
commit
08220632e4
  1. 2
      designer/src/com/fr/design/mainframe/WorkBookModelAdapter.java
  2. 2
      designer_base/src/com/fr/design/data/datapane/preview/PreviewTableModel.java

2
designer/src/com/fr/design/mainframe/WorkBookModelAdapter.java

@ -52,7 +52,7 @@ public class WorkBookModelAdapter extends DesignModelAdapter<WorkBook, JWorkBook
public Parameter[] getTableDataParameters() { public Parameter[] getTableDataParameters() {
TableDataSource source = this.getBook(); TableDataSource source = this.getBook();
Calculator c = Calculator.createCalculator(); Calculator c = Calculator.createCalculator();
c.setAttribute(TableDataSource.class, source); c.setAttribute(TableDataSource.KEY, source);
java.util.List<ParameterProvider> list = new java.util.ArrayList<ParameterProvider>(); java.util.List<ParameterProvider> list = new java.util.ArrayList<ParameterProvider>();
java.util.Iterator<String> nameIt = this.getBook().getTableDataNameIterator(); java.util.Iterator<String> nameIt = this.getBook().getTableDataNameIterator();
while (nameIt.hasNext()) { while (nameIt.hasNext()) {

2
designer_base/src/com/fr/design/data/datapane/preview/PreviewTableModel.java

@ -50,7 +50,7 @@ public class PreviewTableModel extends AbstractTableModel {
maxRowCount = rowCount; maxRowCount = rowCount;
} }
final int finalRowCount = maxRowCount; final int finalRowCount = maxRowCount;
DataModel dm = new DataModel() { DataModel dm = new AbstractDataModel() {
@Override @Override
public void release() throws Exception { public void release() throws Exception {

Loading…
Cancel
Save