Package com.iizix.prop.ui.mlist
Class MLContentProvider
java.lang.Object
com.iizix.prop.content.AbstractContentProvider<MLItemProp,MLItem>
com.iizix.prop.ui.mlist.MLContentProvider
- All Implemented Interfaces:
IContentProvider<MLItemProp,,MLItem> IContentProviderAPI<MLItemProp,,MLItem> IMListContentProvider,IMListContentProviderAPI
public class MLContentProvider extends AbstractContentProvider<MLItemProp,MLItem> implements IMListContentProviderAPI
The mobile list item content provider for the mobile list component. The content provider supports both VirtualSpace connection or API usage.
- Author:
- Christopher Mindus
Field Summary
Fields inherited from class com.iizix.prop.content.AbstractContentProvider
cnrConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionprotected MLItemcreateContentItem(VSRow row) Creates a new content item for a VS row.getIcon(VSRow row, MLItem listItem, IImageTarget iImageTarget) Gets the icon to use for the list item and the specified VS row.Returns the items container.Methods inherited from class com.iizix.prop.content.AbstractContentProvider
add, beginChanges, canModifyWithAPI, clearSelection, commitChanges, dispose, get, getAll, getColumns, getFirstSelectedIndex, getItemCount, getSelectedIndicies, getTable, indexOf, initialize, isEnabledStateSynchronized, isReadOnlyStateSynchronized, isVisibleStateSynchronized, onAdded, onRemoved, onSelectionChanged, onSelectionTypeChanged, refreshContent, refreshContentItemFromVS, reinitialize, remove, remove, removeAll, setSelection, setSelection, updateContents, updateContentsFromVS, useVSConnectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.iizix.prop.content.IContentProvider
beginChanges, canModifyWithAPI, commitChanges, dispose, getItemCount, initialize, onAdded, onRemoved, onSelectionTypeChanged, reinitialize, updateContentsMethods inherited from interface com.iizix.prop.content.IContentProviderAPI
add, add, clearSelection, get, getAll, getFirstSelectedIndex, getSelectedIndicies, indexOf, onSelectionChanged, remove, remove, removeAll, setSelection, setSelection
Constructor Details
MLContentProvider
public MLContentProvider(int selectionType) Constructor for the content provider.- Parameters:
selectionType- The selection type: 0=none, 1=single, 2=multiple.
Method Details
getItemsContainer
Returns the items container.- Specified by:
getItemsContainerin interfaceIContentProvider<MLItemProp,MLItem> - Specified by:
getItemsContainerin interfaceIMListContentProvider- Overrides:
getItemsContainerin classAbstractContentProvider<MLItemProp,MLItem> - Returns:
- The container that stores the item properties. This method will return null if not yet initialized.
createContentItem
Creates a new content item for a VS row.- Specified by:
createContentItemin classAbstractContentProvider<MLItemProp,MLItem> - Parameters:
row- The row.- Returns:
- The new content item associated with the row.
getIcon
Gets the icon to use for the list item and the specified VS row.- Specified by:
getIconin interfaceIMListContentProvider- Parameters:
row- The row.listItem- The list item in question.iImageTarget- The icon previously set using this method or by API, null for none.- Returns:
- The icon to use, null for none.