1 package fr.ifremer.quadrige3.ui.swing.table.renderer;
2
3 /*-
4 * #%L
5 * Quadrige3 Core :: Quadrige3 UI Common
6 * $Id:$
7 * $HeadURL:$
8 * %%
9 * Copyright (C) 2017 Ifremer
10 * %%
11 * This program is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Affero General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU Affero General Public License
22 * along with this program. If not, see <http://www.gnu.org/licenses/>.
23 * #L%
24 */
25
26
27 /**
28 * <p>LabeledCheckBoxBean class.</p>
29 *
30 * @author Ludovic Pecquot <ludovic.pecquot@e-is.pro>
31 */
32 public class LabeledCheckBoxBean {
33
34 private boolean checked;
35 private String text;
36
37 /**
38 * <p>Constructor for LabeledCheckBoxBean.</p>
39 */
40 public LabeledCheckBoxBean() {
41 this(false, null);
42 }
43
44 /**
45 * <p>Constructor for LabeledCheckBoxBean.</p>
46 *
47 * @param checked a boolean.
48 * @param text a {@link String} object.
49 */
50 public LabeledCheckBoxBean(boolean checked, String text) {
51 this.checked = checked;
52 this.text = text;
53 }
54
55 /**
56 * <p>isChecked.</p>
57 *
58 * @return a boolean.
59 */
60 public boolean isChecked() {
61 return checked;
62 }
63
64 /**
65 * <p>Setter for the field <code>checked</code>.</p>
66 *
67 * @param checked a boolean.
68 */
69 public void setChecked(boolean checked) {
70 this.checked = checked;
71 }
72
73 /**
74 * <p>Getter for the field <code>text</code>.</p>
75 *
76 * @return a {@link String} object.
77 */
78 public String getText() {
79 return text;
80 }
81
82 /**
83 * <p>Setter for the field <code>text</code>.</p>
84 *
85 * @param text a {@link String} object.
86 */
87 public void setText(String text) {
88 this.text = text;
89 }
90
91 }