01: /*
02: * To change this template, choose Tools | Templates
03: * and open the template in the editor.
04: */
05:
06: package it.businesslogic.ireport.gui.sheet;
07:
08: import it.businesslogic.ireport.gui.box.LineStyleListCellRenderer;
09: import javax.swing.JComboBox;
10:
11: /**
12: *
13: * @author gtoffoli
14: */
15: public class LineComboBoxSheetProperty extends ComboBoxSheetProperty {
16:
17: public LineComboBoxSheetProperty(String key, String name) {
18: super (key, name);
19: ((JComboBox) getEditor())
20: .setRenderer(new LineStyleListCellRenderer());
21: ((JComboBox) getEditor()).addItem(null);
22: ((JComboBox) getEditor()).addItem("Solid");
23: ((JComboBox) getEditor()).addItem("Dashed");
24: ((JComboBox) getEditor()).addItem("Dotted");
25: ((JComboBox) getEditor()).addItem("Double");
26: }
27: }
|