/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package ro.nextreports.designer.ui.list; import javax.swing.Icon; /** * @author Decebal Suiu */ public class CheckListItem { protected String text; protected Icon icon; protected Object object; protected boolean selected = false; protected boolean enabled = true; public CheckListItem() { } public CheckListItem(String label, Object object) { this.text = label; this.object = object; } public String getText() { return text; } public void setText(String text) { this.text = text; } public Icon getIcon() { return icon; } public void setIcon(Icon icon) { this.icon = icon; } public Object getObject() { return object; } public void setObject(Object object) { this.object = object; } public boolean isSelected() { return selected; } public void setSelected(boolean v) { this.selected = v; } public boolean isEnabled() { return enabled; } public void setEnabled(boolean b) { this.enabled = b; } }