Lines Matching refs:group

66  * In a check box group, at most one button can be in the "on"
68 * forces any other check box in the same group that is on
104 * The check box group.
106 * is not a group checkbox.
111 CheckboxGroup group;
138 * part of any check box group.
150 * any check box group.
166 * This check box is not part of any check box group.
182 * specified state, and in the specified check box group.
187 * @param group a check box group for this check box,
188 * or <code>null</code> for no group.
195 public Checkbox(String label, boolean state, CheckboxGroup group)
200 this.group = group;
201 if (state && (group != null)) {
202 group.setSelectedCheckbox(this);
208 * check box group, and set to the specified state.
212 * @param group a check box group for this check box,
213 * or <code>null</code> for no group.
221 public Checkbox(String label, CheckboxGroup group, boolean state)
223 this(label, state, group);
319 /* Cannot hold check box lock when calling group.setSelectedCheckbox. */
320 CheckboxGroup group = this.group;
321 if (group != null) {
323 group.setSelectedCheckbox(this);
324 } else if (group.getSelectedCheckbox() == this) {
346 * Determines this check box's group.
347 * @return this check box's group, or <code>null</code>
348 * if the check box is not part of a check box group.
352 return group;
356 * Sets this check box's group to the specified check box group.
357 * If this check box is already in a different check box group,
358 * it is first taken out of that group.
361 * group already has a check box selected, this check box's state
363 * box is <code>true</code> and the new group has no check box
365 * the new group and its state is <code>true</code>.
367 * @param g the new check box group, or <code>null</code>
368 * to remove this check box from any check box group
376 * to the check box group g.
378 if (this.group == g) {
383 oldGroup = this.group;
386 this.group = g;
391 if (this.group != null && getState()) {
392 if (this.group.getSelectedCheckbox() != null) {
395 this.group.setSelectedCheckbox(this);
405 * in the previous group and set selected check box to
406 * null for that group if so.