org.pietschy.command
Class ToggleGroupController
java.lang.Object
org.pietschy.command.ToggleGroupController
public class ToggleGroupController
extends java.lang.Object
GUI Commands
Copyright 2004 Andrew Pietsch
Licensed 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.
$Id: ToggleGroupController.java,v 1.2 2005/09/18 00:37:18 pietschy Exp $
ToggleGroupController
public ToggleGroupController()
handleSelectionRequest
public void handleSelectionRequest(ToggleCommand toggleCommand,
boolean selected)
Handles a particular selection request on a particular command.
toggleCommand
- the command that has been selectedselected
- the new state of the command.
isEmptySelectionAllowed
public boolean isEmptySelectionAllowed()
Checks if this groups allows empty selection.
- true if the group allows empty selection, false if there must
always be at least on selected command.
isExclusive
public boolean isExclusive()
setEmptySelectionAllowed
public void setEmptySelectionAllowed(boolean emptySelectionAllowed)
Sets if this groups allows empty selection.
emptySelectionAllowed
- true if the group should allow empty
selection, false if there must always be at least on selected command.
setExclusive
public void setExclusive(boolean exclusive)