1 32 33 package it.businesslogic.ireport.gui.sheet; 34 35 import it.businesslogic.ireport.ExpressionContext; 36 import javax.swing.*; 37 38 public class MeterIntervalsSheetProperty extends SheetProperty { 39 40 private MeterIntervalsSheetPropertyComponent editor = null; 41 42 public MeterIntervalsSheetProperty(String key, String name) { 43 super( key, name, SheetProperty.STRING, null); 44 } 45 46 public JComponent getEditor() 47 { 48 if (editor != null) return editor; 49 editor = new MeterIntervalsSheetPropertyComponent(); 50 editor.addActionListener( this ); 51 return editor; 52 } 53 54 public Object getEditorValue(JComponent component) 55 { 56 return editor.getListOfMeterIntervals(); 57 } 58 59 public void setEditorValue(JComponent component, Object str) 60 { 61 try { 62 getEditor(); editor.setListOfMeterIntervals( (java.util.List )str); 64 65 } catch (Exception ex) {} 66 } 67 } 68 | Popular Tags |