|
| 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 | |
|---|---|
abstract 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. |
abstract com.sas.util.transforms.TransformInterface |
getDisplayTransform()
Get the transform used to change the item property for display on the SelectableInterface. |
abstract int |
getIndex(SelectableInterface selectableObject)
Get the index of the specified SelectableInterface object. |
abstract com.sas.util.transforms.TransformInterface |
getInputTransform()
Get the transform used to change the item property for input to the SelectionGroupInterface. |
abstract java.lang.Object |
getItem(int index)
Get the Item object of the SelectableInterface object at the specified index. |
abstract int |
getItemIndex(java.lang.Object item)
Get the index of the SelectableInterface object with the specified item property. |
abstract java.util.Enumeration |
getItemsData()
Get an enumeration of the objects used as item properties on the SelectableInterface objects. |
abstract com.sas.util.transforms.TransformInterface |
getOutputTransform()
Get the transform used to change the item property for output on the SelectableInterface. |
abstract int |
getSelectedIndex()
Get the index of the selected SelectableInterface. |
abstract java.lang.Object |
getSelectedItem()
Get the item property of the selected SelectableInterface. |
abstract boolean |
isDeselectable()
Get if the SelectionGroup can have no SelectableInterface objects selected. |
abstract void |
select(SelectableInterface selectableObject)
Select the specified SelectableInterface object. |
abstract void |
setDeselectable(boolean state)
Set the SelectionGroup to deselectable, so all of the SelectableInterface objects can be deselected at the same time. |
abstract void |
setDisplayTransform(com.sas.util.transforms.TransformInterface displayTransform)
Set the transform used to change the item property for display on the SelectableInterface. |
abstract void |
setInputTransform(com.sas.util.transforms.TransformInterface inputTransform)
Set the transform used to change the item property for input to the SelectionGroup. |
abstract void |
setOutputTransform(com.sas.util.transforms.TransformInterface outputTransform)
Set the transform used to change the item property for output from the SelectionGroup. |
abstract void |
setSelectedIndex(int index)
Set the selected SelectableInterface based on the specified index. |
abstract void |
setSelectedItem(java.lang.Object selectedItem)
Set the selected SelectableInterface object based on its item. |
| Methods inherited from interface com.sas.collection.OrderedCollectionInterface |
|---|
add, addItems, clone, removeAt, set, setSize |
| Methods inherited from interface com.sas.collection.CollectionInterface |
|---|
add, addItems, remove, removeAll, removeAll |
| Methods inherited from interface com.sas.collection.StaticOrderedCollectionInterface |
|---|
equals, getIndex, getItems, getLastIndex |
| Methods inherited from interface com.sas.collection.StaticCollectionInterface |
|---|
apply, contains |
| Methods inherited from interface com.sas.collection.ContentsChangedSource |
|---|
addContentsChangedListener, removeContentsChangedListener |
| Methods inherited from interface com.sas.beans.PropertyChangeSource |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| 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 |
| Methods inherited from interface com.sas.collection.Sortable |
|---|
sort, sort |
| Methods inherited from interface com.sas.beans.VetoableChangeSource |
|---|
addVetoableChangeListener, removeVetoableChangeListener |
| 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 | |||||||||||||