4 package net.sf.openrocket.gui.print.components;
7 * A class that acts as the textual node of the check box within the JTree.
9 public class CheckBoxNode {
12 * The text label of the check box.
17 * State flag indicating if the check box has been selected.
24 * @param theText the check box label
25 * @param isSelected true if selected
27 public CheckBoxNode (String theText, boolean isSelected) {
29 selected = isSelected;
33 * Get the current state of the check box.
35 * @return true if selected
37 public boolean isSelected () {
42 * Set the current state of the check box. Note: this just tracks the state - it
43 * does NOT actually set the state of the check box.
45 * @param isSelected true if selected
47 public void setSelected (boolean isSelected) {
48 selected = isSelected;
52 * Get the text of the label.
54 * @return the text of the label
56 public String getText () {
61 * Set the text of the label of the check box.
63 * @param theText the text of the label
65 public void setText (String theText) {
70 * If someone prints this object, the text label will be displayed.
72 * @return the text label
74 public String toString () {