6#ifndef _ZFI_ZFUIListView_h_
7#define _ZFI_ZFUIListView_h_
16#define ZFSerializableKeyword_ZFUIListView_cellAdapter "cellAdapter"
279 _ZFP_ZFUIListViewPrivate *d;
#define ZF_OUT_OPT
dummy macro that shows the param used as optional output
Definition ZFCoreTypeDef_ClassType.h:192
#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
#define ZF_IN_OPT
dummy macro that shows the param used as optional input
Definition ZFCoreTypeDef_ClassType.h:184
#define ZF_IN_OUT
dummy macro that shows the param used as required input and output
Definition ZFCoreTypeDef_ClassType.h:196
#define zfclassFwd
forward declaration of a class type
Definition ZFCoreTypeDef_ClassType.h:31
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
_ZFT_t_zfindex zfindex
similar to size_t, used for index and size only
Definition ZFCoreTypeDef_CoreType.h:154
#define zftrue
bool true type
Definition ZFCoreTypeDef_CoreType.h:107
_zft_zffloat zffloat
same as float, see zfindex
Definition ZFCoreTypeDef_CoreType.h:183
#define zffalse
bool false type
Definition ZFCoreTypeDef_CoreType.h:111
#define zfnull
same as NULL, defined for future use
Definition ZFCoreTypeDef_CoreType.h:88
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZFMP_IN_OPT(ParamType, paramName, DefaultValue)
see ZFMP_IN
Definition ZFMethod.h:108
#define ZFMP_IN(ParamType, paramName)
macro to wrap param types for ZFMETHOD_INLINE_0 series
Definition ZFMethod.h:105
#define ZFMETHOD_DECLARE_0(ReturnType, MethodName)
see ZFMethod
Definition ZFMethodDeclare.h:693
#define ZFMETHOD_DECLARE_3(ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2)
see ZFMethod
Definition ZFMethodDeclare.h:1206
#define ZFMETHOD_DECLARE_1(ReturnType, MethodName, ZFMP_0)
see ZFMethod
Definition ZFMethodDeclare.h:854
#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 ZFEVENT(YourEvent)
see ZFObject::observerNotify
Definition ZFObjectObserver.h:328
#define ZFPROPERTY_ON_DETACH_DECLARE(Type, Name)
see ZFPROPERTY_ON_INIT_DECLARE
Definition ZFPropertyDeclare.h:258
#define ZFPROPERTY_ASSIGN(Type, Name,...)
see ZFPROPERTY_RETAIN
Definition ZFPropertyDeclare.h:128
#define ZFPROPERTY_RETAIN_READONLY(Type, Name, InitValueOrEmpty)
see ZFPROPERTY_RETAIN
Definition ZFPropertyDeclare.h:110
#define ZFPROPERTY_ON_ATTACH_DECLARE(Type, Name)
see ZFPROPERTY_ON_INIT_DECLARE
Definition ZFPropertyDeclare.h:248
ZFSerializablePropertyType
serializable property type, see ZFSerializable::serializableOnCheckPropertyType
Definition ZFSerializable.h:40
#define ZFSTYLE_DEFAULT_DECLARE(YourStyle)
used to declare a default style, see ZFStyleable
Definition ZFStyleable.h:262
abstract cell adpater to supply cells for container view
utility to update ZFUICell
v_ZFUIOrientation::ZFEnumType ZFUIOrientation
see v_ZFUIOrientation
Definition ZFUITypeDef.h:1145
v_ZFUIViewChildLayer::ZFEnumType ZFUIViewChildLayer
see v_ZFUIViewChildLayer
Definition ZFUIViewType.h:511
container of ZFObject, see ZFContainer
Definition ZFArray.h:17
light weight array
Definition ZFCoreArray.h:331
POD data to hold index range.
Definition ZFCoreTypeDef_OtherType.h:66
void observerNotify(zfidentity eventId, ZFObject *param0=zft_zfnull, ZFObject *param1=zft_zfnull)
notify the observer with eventId
info for a property for ZFObject, see ZFPROPERTY_RETAIN for more info
Definition ZFProperty.h:28
ZFSerializable's data container, see ZFSerializable.
Definition ZFSerializableData.h:74
base class of call serializable object
Definition ZFSerializable.h:163
abstract cell adpater to supply cells for container view
Definition ZFUICellAdapter.h:15
utility class to hold cell
Definition ZFUICell.h:21
virtual void scrollAreaOnUpdate(void)
see E_ScrollAreaOnUpdate
virtual zfbool reloadRequested()
true if list need reload
virtual void scrollCellToTail(zfindex cellIndex, zffloat offset=(0), zfbool animated=(_ZFT_t_zftrue))
scroll cell to bottom, see scrollCellToHead
virtual void viewChildOnRemove(ZFUIView *child, ZFUIViewChildLayer layer)
see E_ViewChildOnRemove
virtual void layoutOnLayoutPrepare(const ZFUIRect &bounds)
see E_ViewLayoutOnLayoutPrepare
virtual void scrollContentFrameOnUpdate(void)
see E_ScrollContentFrameOnUpdate
virtual const ZFIndexRange & visibleCellRange()
return first visible cell's index, valid only if reloadRequested is not true
virtual void visibleCellsOnUpdate(void)
see E_ListVisibleCellOnUpdate
virtual zfbool & bounceable()
whether auto update ZFUIScrollView::scrollBounceVertical series according to orientation,...
Definition ZFUIListView.h:124
virtual void layoutOnLayout(const ZFUIRect &bounds)
override ZFUIView to layout scroll view's internal view and content view
virtual void objectOnDealloc(void)
override this to destroy your object
virtual zfbool serializableOnSerializeToData(ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializable *refOwner=zft_zfnull)
corresponding to serializableOnSerializeFromData, return whether the task is success,...
virtual void cellOnAttach(ZFUICell *cell)
see E_CellOnAttach
Definition ZFUIListView.h:268
static zfidentity E_CellOnDetach(void)
see ZFObject::observerNotify
virtual void reload()
reload entire list cells
virtual void objectOnInit(void)
override this to init your object
virtual zfbool serializableOnSerializeFromData(const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
for serializable data that has "category" attribute, ZFSerializable would ignore it and leave it to s...
virtual zfanyT< ZFUICellAdapter > & cellAdapter()
list adapter
Definition ZFUIListView.h:88
virtual void objectOnDeallocPrepare(void)
called before objectOnDealloc, safe to call virtual functions here
virtual void cellAdapterAutoRetain(ZFUICellAdapter *cellAdapter)
set and retain the list adapter
virtual void scrollCellToHead(zfindex cellIndex, zffloat offset=(0), zfbool animated=(_ZFT_t_zftrue))
scroll cell to top, do nothing if invalid or no need to scroll
virtual ZFSerializablePropertyType serializableOnCheckPropertyType(const ZFProperty *property)
see ZFSerializable::serializableOnCheckPropertyType
static zfidentity E_CellOnAttach(void)
see ZFObject::observerNotify
virtual void cellOnDetach(ZFUICell *cell)
see E_CellOnDetach
Definition ZFUIListView.h:272
virtual void viewChildOnAdd(ZFUIView *child, ZFUIViewChildLayer layer)
see E_ViewChildOnAdd
virtual void scrollOnScrollEnd(void)
see E_ScrollOnScrollEnd
virtual zfbool serializableOnCheckNeedSerializeChildren(void)
all child views would be ignored from serializable
Definition ZFUIListView.h:154
virtual ZFUIOrientation & orientation()
direction to layout children, v_ZFUIOrientation::e_Top by default
Definition ZFUIListView.h:117
virtual void reloadCellAt(zfindex index)
reload cell at index immediately, do nothing if index not in visible range or reloadRequested
virtual void scrollOnScrolledByUser(void)
see E_ScrollOnScrolledByUser
virtual zfbool & cellAdapterSerializable()
whether the cellAdapter is serializable, false by default
Definition ZFUIListView.h:104
virtual ZFCoreArray< ZFUICell * > visibleCells()
return a list of current visible cells, valid only if reloadRequested is not true
virtual zfanyT< ZFArray > const & cellUpdater()
list updater to update list cells, holds ZFUICellUpdater
Definition ZFUIListView.h:109
2D rectangle
Definition ZFUITypeDef.h:636
zfanyT< ZFUILayoutParam > child(const zfany &view, zfindex atIndex=((zfindex) -1))
add child and return child's layoutParam, see childWithParam
orientation types for UI in ZFFramework
Definition ZFUITypeDef.h:1135
see zfany
Definition zfany.h:106
util class to alloc and hold ZFObject type
Definition ZFObjectAutoPtr.h:157