|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DualSelectorInterface
The DualSelectorInterface defines the methods that an adapter class must implement.
Method Summary | |
---|---|
void |
addItems(java.util.List newItems)
Adds the items to the component. |
void |
clearSelections()
Clears the selections made on the component. |
java.util.List |
getAllItems()
Returns all items. |
java.util.List |
getAllMoveableItems()
Returns all of the items that are moveable based on the status of the movement control options. |
javax.swing.JComponent |
getComponent()
Returns the actual component. |
javax.swing.JComponent |
getContainerComponent()
Returns the container holding a component. |
int |
getCount()
Returns the number of items in the component. |
int |
getLastSelectedIndex()
Returns the index of the last item selected. |
int |
getSelectedCount()
Returns the number of items selected. |
java.util.List |
getSelectedItems()
Returns the user selected items. |
boolean |
isInAdapter(java.lang.Object item)
Returns true if the item is a member of the adapter model. |
void |
removeItems(java.util.List removeItems)
Removes the items from the component. |
void |
setSelectedIndex(int index)
Selects the item at the specified index. |
Method Detail |
---|
int getCount()
java.util.List getSelectedItems()
java.util.List getAllItems()
java.util.List getAllMoveableItems()
int getSelectedCount()
javax.swing.JComponent getComponent()
javax.swing.JComponent getContainerComponent()
void addItems(java.util.List newItems)
newItems
- the items to be added.void removeItems(java.util.List removeItems)
removeItems
- items to be removed from the componentvoid clearSelections()
int getLastSelectedIndex()
void setSelectedIndex(int index)
index
- the index of the item to be selectedboolean isInAdapter(java.lang.Object item)
item
- the object to be checked
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |