OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
137 ilm 1
package org.jopencalendar.ui;
2
 
3
import java.awt.Component;
4
import java.awt.Dimension;
5
import java.awt.Graphics;
6
 
7
public class MultipleDayViewHeader extends Component {
8
 
9
    private MultipleDayView view;
10
 
11
    public MultipleDayViewHeader(MultipleDayView view) {
12
        this.view = view;
13
    }
14
 
15
    @Override
16
    public void paint(Graphics g) {
17
        view.paintHeader(g);
18
    }
19
 
20
    @Override
21
    public Dimension getPreferredSize() {
22
        return new Dimension(view.getPreferredSize().width + 100, view.getHeaderHeight());
23
    }
24
}