6#ifndef _ZFI_ZFUICellAdapterBasic_h_
7#define _ZFI_ZFUICellAdapterBasic_h_
104 param->cellIndex(index);
106 return param->cell();
115 param->cellIndex(index);
118 return param->cellSize();
130 param->cellIndex(index);
132 return param->cell();
#define zfextend
dummy macro shows class inherit from another
Definition ZFCoreTypeDef_ClassType.h:53
#define zfoverride
dummy macro shows that method override parent's method
Definition ZFCoreTypeDef_ClassType.h:58
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:180
_ZFT_t_zfindex zfindex
similar to size_t, used for index and size only
Definition ZFCoreTypeDef_CoreType.h:154
_zft_zffloat zffloat
same as float, see zfindex
Definition ZFCoreTypeDef_CoreType.h:183
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
#define zfclass
same as class, shows that this class is a ZFObject type
Definition ZFObjectClassTypeFwd.h:38
#define ZFOBJECT_DECLARE(ChildClass, SuperClass,...)
necessary for every class inherit from ZFObject
Definition ZFObjectDeclare.h:126
#define zfsuperI(T_SuperType)
class ref to proper super type, see ZFObject for more info
Definition ZFObjectDeclare.h:26
#define ZFIMPLEMENT_DECLARE(ImplementedInterfaces,...)
see ZFINTERFACE_DECLARE
Definition ZFObjectInterface.h:169
#define zfimplement
shows class implement from interface, see ZFInterface
Definition ZFObjectInterface.h:24
#define ZFEVENT(YourEvent)
see ZFObject::observerNotify
Definition ZFObjectObserver.h:328
#define ZFPROPERTY_RETAIN(Type, Name,...)
declare a retain property
Definition ZFPropertyDeclare.h:104
#define ZFPROPERTY_ASSIGN(Type, Name,...)
see ZFPROPERTY_RETAIN
Definition ZFPropertyDeclare.h:128
abstract cell adpater to supply cells for container view
zfbool observerHasAdd(void)
true if any observer has been added
void observerNotify(zfidentity eventId, ZFObject *param0=zft_zfnull, ZFObject *param1=zft_zfnull)
notify the observer with eventId
virtual zfindex cellCount(void)
cell count
Definition ZFUICellAdapterBasic.h:96
virtual zffloat cellSizeAt(zfindex index, ZFUICell *cell)
check cell size at index
Definition ZFUICellAdapterBasic.h:109
virtual zfauto cellCacheOnAccess(zfindex index)
try access cached cell, return null means no cache available, by default, no cache logic support
Definition ZFUICellAdapterBasic.h:127
static zfidentity E_CellCount(void)
see ZFObject::observerNotify
static zfidentity E_CellAt(void)
see ZFObject::observerNotify
virtual zfautoT< ZFUICell > cellAt(zfindex index)
access cell at index, assert fail if return null object
Definition ZFUICellAdapterBasic.h:102
static zfidentity E_CellSizeAt(void)
see ZFObject::observerNotify
static zfidentity E_CellCacheOnAccess(void)
see ZFObject::observerNotify
virtual zfindex & cellIndex()
see ZFUICellAdapterBasic::E_CellAt
Definition ZFUICellAdapterBasic.h:20
virtual zfanyT< ZFUICell > const & cell()
see ZFUICellAdapterBasic::E_CellAt
Definition ZFUICellAdapterBasic.h:18
virtual zffloat & cellSize()
see ZFUICellAdapterBasic::E_CellAt
Definition ZFUICellAdapterBasic.h:22
utility class to hold cell
Definition ZFUICell.h:21
see zfany
Definition zfany.h:106
a ZFObject holder which would release content object automatically when destroyed
Definition zfautoFwd.h:34
type restrict version of zfauto
Definition zfautoFwd.h:110
util class to alloc and hold ZFObject type
Definition ZFObjectAutoPtr.h:157