public class CollapsibleGroupsBehavior extends ListViewBehavior
Modifier and Type | Class and Description |
---|---|
static interface |
CollapsibleGroupsBehavior.CollapseGroupListener |
Constructor and Description |
---|
CollapsibleGroupsBehavior() |
CollapsibleGroupsBehavior(int resourceId) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(CollapsibleGroupsBehavior.CollapseGroupListener listener) |
void |
changeIsGroupCollapsed(Object groupHeader) |
void |
collapseAll() |
void |
expandAll() |
int |
getCollapseImageResource() |
int |
getExpandImageResource() |
boolean |
isGroupCollapsed(Object group) |
void |
onAttached(RadListView listView)
Called when the behavior is attached to
RadListView with
addBehavior(ListViewBehavior). |
void |
onDetached(RadListView listView)
Called when the behavior is detached to
RadListView with
removeBehavior(ListViewBehavior). |
boolean |
onTapUp(MotionEvent motionEvent)
Called when the tap up gesture is detected by
RadListView 's
ListViewGestureListener . |
void |
removeListener(CollapsibleGroupsBehavior.CollapseGroupListener listener) |
void |
setCollapseImageResource(int collapseImageResource) |
void |
setExpandImageResource(int expandImageResource) |
bindViewHolder, createViewHolder, getItemViewType, isInProgress, managesViewHolders, onActionUpOrCancel, onDispatchDraw, onFling, onInterceptTouchEvent, onLayout, onLongPress, onLongPressDrag, onLongPressDragEnded, onScrolled, onShortPressDrag
public CollapsibleGroupsBehavior()
public CollapsibleGroupsBehavior(int resourceId)
public int getCollapseImageResource()
public void setCollapseImageResource(int collapseImageResource)
public int getExpandImageResource()
public void setExpandImageResource(int expandImageResource)
public void onAttached(RadListView listView)
ListViewBehavior
RadListView
with
addBehavior(ListViewBehavior).onAttached
in class ListViewBehavior
listView
- The parent list viewpublic void onDetached(RadListView listView)
ListViewBehavior
RadListView
with
removeBehavior(ListViewBehavior).onDetached
in class ListViewBehavior
listView
- The parent list viewpublic boolean onTapUp(MotionEvent motionEvent)
ListViewBehavior
RadListView
's
ListViewGestureListener
.onTapUp
in class ListViewBehavior
motionEvent
- The motion eventpublic void expandAll()
public void collapseAll()
public void changeIsGroupCollapsed(Object groupHeader)
public boolean isGroupCollapsed(Object group)
public void addListener(CollapsibleGroupsBehavior.CollapseGroupListener listener)
public void removeListener(CollapsibleGroupsBehavior.CollapseGroupListener listener)