 /* Copyright 2012 - Yaqiang Wang,
 * yaqiang.wang@gmail.com
 * 
 * This library is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or (at
 * your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
 * General Public License for more details.
 */
package org.meteoinfo.ui;

import javax.swing.JCheckBox;

 /**
  *
  * @author yaqiang
  */
 public class CheckBoxListEntry extends JCheckBox {

     private Object value = null;
     private boolean red = false;

     public CheckBoxListEntry(Object itemValue, boolean selected) {
         super(itemValue == null ? "" : "" + itemValue, selected);
         setValue(itemValue);
     }

     @Override
     public boolean isSelected() {
         return super.isSelected();
     }

     @Override
     public void setSelected(boolean selected) {
         super.setSelected(selected);
     }

     public Object getValue() {
         return value;
     }

     public void setValue(Object value) {
         this.value = value;
     }

     public boolean isRed() {
         return red;
     }

     public void setRed(boolean red) {
         this.red = red;
     }
 }
