1 32 33 package it.businesslogic.ireport.gui.sheet; 34 35 import javax.swing.ComboBoxEditor ; 36 import javax.swing.JLabel ; 37 38 42 public class SimpleComboBoxEditor implements ComboBoxEditor { 43 44 private JLabel jlable = null; 45 private Object item = null; 46 47 48 public SimpleComboBoxEditor() { 49 50 } 51 52 public void addActionListener(java.awt.event.ActionListener actionListener) { 53 } 54 55 public java.awt.Component getEditorComponent() { 56 57 if (jlable == null){ 58 jlable = new JLabel (); 59 jlable.setBorder( null ); 60 } 61 62 return jlable; 63 } 64 65 public Object getItem() { 66 return item; 67 } 68 69 public void removeActionListener(java.awt.event.ActionListener actionListener) { 70 } 71 72 public void selectAll() { 73 } 74 75 public void setItem(Object obj) { 76 item = obj; 77 jlable.setText( item + ""); 78 } 79 80 } 81 | Popular Tags |