1 32 33 package it.businesslogic.ireport.gui.fonts; 34 35 import javax.swing.JCheckBox ; 36 37 41 public class CheckBoxListEntry extends JCheckBox { 42 43 private Object value = null; 44 private boolean red = false; 45 46 public CheckBoxListEntry(Object itemValue, boolean selected) { 47 super(itemValue == null ? "" : ""+itemValue, selected); 48 setValue( itemValue ); 49 } 50 51 public boolean isSelected() { 52 return super.isSelected(); 53 } 54 55 public void setSelected(boolean selected) { 56 super.setSelected(selected); 57 } 58 59 public Object getValue() { 60 return value; 61 } 62 63 public void setValue(Object value) { 64 this.value = value; 65 } 66 67 public boolean isRed() { 68 return red; 69 } 70 71 public void setRed(boolean red) { 72 this.red = red; 73 } 74 75 } 76 | Popular Tags |