Package com.iizix.prop
Interface ICodeItemsOwnerSelectionSupport
- All Superinterfaces:
ICodeItemsOwner
- All Known Implementing Classes:
EUIComboBox
,EUISpinner
,UIAbstractListChoice
,UIComboBox
,UISpinner
Interface implemented by the owner of the code items.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionClear the selection.int
Gets the first selected index.default ICodeItemsOwnerSelectionSupport
Returns the selection implementation if the owner supports it.setSelection
(int index) Sets the selection as a single selected item at specified index.
Method Details
getSelectionSupport
Returns the selection implementation if the owner supports it.- Specified by:
getSelectionSupport
in interfaceICodeItemsOwner
- Returns:
- The selection instance for the owner, or null for no selection support.
clearSelection
String clearSelection()Clear the selection.- Returns:
- null for success, otherwise the error message with the reason why it failed.
getSelectedIndex
int getSelectedIndex()Gets the first selected index.- Returns:
- The first index in the current selection, or -1 for none.
setSelection
Sets the selection as a single selected item at specified index.- Parameters:
index
- The single item to select at index, -1 to clear the selection.- Returns:
- null for success, otherwise an error message why the selection failed.