Package com.iizix.prop
Interface ICodeItemsOwnerSelectionSupport
- All Superinterfaces:
ICodeItemsOwner
- All Known Implementing Classes:
EUIComboBox
,EUISpinner
,UIAbstractListChoice
,UIComboBox
,UISpinner
public interface ICodeItemsOwnerSelectionSupport extends ICodeItemsOwner
Interface implemented by the owner of the code items.- Author:
- Christopher Mindus
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.String
clearSelection()
Clear the selection.int
getSelectedIndex()
Gets the first selected index.default ICodeItemsOwnerSelectionSupport
getSelectionSupport()
Returns the selection implementation if the owner supports it.java.lang.String
setSelection(int index)
Sets the selection as a single selected item at specified index.
Method Detail
getSelectionSupport
default ICodeItemsOwnerSelectionSupport 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
java.lang.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
java.lang.String setSelection(int index)
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.