OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 110 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 110 Rev 159
Line 1... Line 1...
1
package org.openconcerto.modules.reports.olap;
1
package org.openconcerto.modules.reports.olap;
-
 
2
 
2
import java.awt.Color;
3
import java.awt.Color;
3
import java.awt.Dimension;
4
import java.awt.Dimension;
4
import java.awt.GridBagConstraints;
5
import java.awt.GridBagConstraints;
5
import java.awt.GridBagLayout;
6
import java.awt.GridBagLayout;
6
 
7
 
Line 8... Line 9...
8
import javax.swing.JPanel;
9
import javax.swing.JPanel;
9
import javax.swing.JScrollPane;
10
import javax.swing.JScrollPane;
10
 
11
 
11
import org.olap4j.CellSet;
12
import org.olap4j.CellSet;
12
import org.openconcerto.modules.reports.olap.renderer.CellSetRenderer;
13
import org.openconcerto.modules.reports.olap.renderer.CellSetRenderer;
-
 
14
import org.openconcerto.modules.reports.olap.renderer.Matrix;
13
import org.openconcerto.ui.DefaultGridBagConstraints;
15
import org.openconcerto.ui.DefaultGridBagConstraints;
14
import org.openconcerto.ui.ReloadPanel;
16
import org.openconcerto.ui.ReloadPanel;
15
 
17
 
16
 
-
 
17
public class OLAPRenderer extends JPanel {
18
public class OLAPRenderer extends JPanel {
18
    final CellSetRenderer cellSetRenderer;
19
    final CellSetRenderer cellSetRenderer;
19
    final ReloadPanel reload;
20
    final ReloadPanel reload;
20
 
21
 
21
    public OLAPRenderer() {
22
    public OLAPRenderer() {
Line 51... Line 52...
51
        } else {
52
        } else {
52
            reload.setMode(ReloadPanel.MODE_EMPTY);
53
            reload.setMode(ReloadPanel.MODE_EMPTY);
53
        }
54
        }
54
 
55
 
55
    }
56
    }
-
 
57
 
-
 
58
    public Matrix getMatrix() {
-
 
59
        return this.cellSetRenderer.getMatrix();
-
 
60
    }
-
 
61
 
-
 
62
    public void setMatrix(Matrix matrix) {
-
 
63
        setWaitState(false);
-
 
64
        cellSetRenderer.setMatrix(matrix);
-
 
65
    }
56
}
66
}