|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SelectionGroupInterface
SelectionGroupInterface is an interface used to group and manipulate SelectableInterface objects.
SelectableInterface objects have a buttonModel that holds the selected state for
that SelectableInterface object. The SelectionGroup handles setting the state
of the buttonModel when the SelectableInterface object is selected or deselected.
SelectionGroup
Method Summary | |
---|---|
boolean |
containsItem(java.lang.Object item)
Test for the presence of an object set as the item property on one of the SelectableInterface objects in the collection. |
com.sas.util.transforms.TransformInterface |
getDisplayTransform()
Get the transform used to change the item property for display on the SelectableInterface. |
int |
getIndex(SelectableInterface selectableObject)
Get the index of the specified SelectableInterface object. |
com.sas.util.transforms.TransformInterface |
getInputTransform()
Get the transform used to change the item property for input to the SelectionGroupInterface. |
java.lang.Object |
getItem(int index)
Get the Item object of the SelectableInterface object at the specified index. |
int |
getItemIndex(java.lang.Object item)
Get the index of the SelectableInterface object with the specified item property. |
java.util.Enumeration |
getItemsData()
Get an enumeration of the objects used as item properties on the SelectableInterface objects. |
com.sas.util.transforms.TransformInterface |
getOutputTransform()
Get the transform used to change the item property for output on the SelectableInterface. |
int |
getSelectedIndex()
Get the index of the selected SelectableInterface. |
java.lang.Object |
getSelectedItem()
Get the item property of the selected SelectableInterface. |
boolean |
isDeselectable()
Get if the SelectionGroup can have no SelectableInterface objects selected. |
void |
select(SelectableInterface selectableObject)
Select the specified SelectableInterface object. |
void |
setDeselectable(boolean state)
Set the SelectionGroup to deselectable, so all of the SelectableInterface objects can be deselected at the same time. |
void |
setDisplayTransform(com.sas.util.transforms.TransformInterface displayTransform)
Set the transform used to change the item property for display on the SelectableInterface. |
void |
setInputTransform(com.sas.util.transforms.TransformInterface inputTransform)
Set the transform used to change the item property for input to the SelectionGroup. |
void |
setOutputTransform(com.sas.util.transforms.TransformInterface outputTransform)
Set the transform used to change the item property for output from the SelectionGroup. |
void |
setSelectedIndex(int index)
Set the selected SelectableInterface based on the specified index. |
void |
setSelectedItem(java.lang.Object selectedItem)
Set the selected SelectableInterface object based on its item. |
Methods inherited from interface com.sas.util.Enumerable |
---|
getItems |
Methods inherited from interface com.sas.util.IndexedGetInterface |
---|
get |
Methods inherited from interface com.sas.util.Countable |
---|
count |
Method Detail |
---|
boolean containsItem(java.lang.Object item)
item
- the item to search for
StaticCollectionInterface.contains(java.lang.Object)
com.sas.util.transforms.TransformInterface getDisplayTransform()
setDisplayTransform(com.sas.util.transforms.TransformInterface)
com.sas.util.transforms.TransformInterface getInputTransform()
setInputTransform(com.sas.util.transforms.TransformInterface)
com.sas.util.transforms.TransformInterface getOutputTransform()
setOutputTransform(com.sas.util.transforms.TransformInterface)
java.util.Enumeration getItemsData()
java.lang.Object getItem(int index)
index
- the index of the SelectableInterface object to get.
int getIndex(SelectableInterface selectableObject)
selectableObject
- the SelectableInterface to get the index of
getItemIndex(java.lang.Object)
int getItemIndex(java.lang.Object item)
selectableObject
- the SelectableInterface item property value to get the index of
getItem(int)
java.lang.Object getSelectedItem()
setSelectedItem(java.lang.Object)
int getSelectedIndex()
setSelectedIndex(int)
boolean isDeselectable()
setDeselectable(boolean)
void setDeselectable(boolean state)
deselect
- if true, all SelectableInterface objects can be deselected.isDeselectable()
void select(SelectableInterface selectableObject)
selectableObject
- the SelectableInterface object to set the selected state to true.void setDisplayTransform(com.sas.util.transforms.TransformInterface displayTransform)
displayTransform
- the new TransformInterface for the displayTransformgetDisplayTransform()
void setInputTransform(com.sas.util.transforms.TransformInterface inputTransform)
inputTransform
- the new TransformInterface for the inputTransformgetInputTransform()
void setOutputTransform(com.sas.util.transforms.TransformInterface outputTransform)
outputTransform
- the new TransformInterface for the outputTransformgetOutputTransform()
void setSelectedIndex(int index)
index
- the index of the SelectableInterface item to be selected.getSelectedIndex()
void setSelectedItem(java.lang.Object selectedItem)
selectedItem
- the SelectableInterface item to be selected.getSelectedItem()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |