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
cnr
Constructor Summary
Constructors Constructor Description MLContentProvider(int selectionType)
Constructor for the content provider.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MLItem
createContentItem(VSRow row)
Creates a new content item for a VS row.IImageTarget
getIcon(VSRow row, MLItem listItem, IImageTarget iImageTarget)
Gets the icon to use for the list item and the specified VS row.MLGroup
getItemsContainer()
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, useVSConnection
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.iizix.prop.content.IContentProvider
beginChanges, canModifyWithAPI, commitChanges, dispose, getItemCount, initialize, onAdded, onRemoved, onSelectionTypeChanged, reinitialize, updateContents
Methods inherited from interface com.iizix.prop.content.IContentProviderAPI
add, add, clearSelection, get, getAll, getFirstSelectedIndex, getSelectedIndicies, indexOf, onSelectionChanged, remove, remove, removeAll, setSelection, setSelection
Method Detail
getItemsContainer
public MLGroup getItemsContainer()
Returns the items container.- Specified by:
getItemsContainer
in interfaceIContentProvider<MLItemProp,MLItem>
- Specified by:
getItemsContainer
in interfaceIMListContentProvider
- Overrides:
getItemsContainer
in classAbstractContentProvider<MLItemProp,MLItem>
- Returns:
- The container that stores the item properties. This method will return null if not yet initialized.
createContentItem
protected MLItem createContentItem(VSRow row)
Creates a new content item for a VS row.- Specified by:
createContentItem
in classAbstractContentProvider<MLItemProp,MLItem>
- Parameters:
row
- The row.- Returns:
- The new content item associated with the row.
getIcon
public IImageTarget getIcon(VSRow row, MLItem listItem, IImageTarget iImageTarget)
Gets the icon to use for the list item and the specified VS row.- Specified by:
getIcon
in 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.