2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0/
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FUiCtrlGroupedListView.cpp
20 * @brief This is the implementation file for GroupedListView class.
22 * This header file contains the implementation of GroupedListView class.
25 #include <FBaseSysLog.h>
26 #include <FUiCtrlGroupedListView.h>
27 #include "FUiCtrl_GroupedListViewImpl.h"
28 #include "FUi_CoordinateSystemUtils.h"
30 using namespace Tizen::Base;
31 using namespace Tizen::Graphics;
33 namespace Tizen { namespace Ui { namespace Controls
36 GroupedListView::GroupedListView(void)
40 GroupedListView::~GroupedListView(void)
45 GroupedListView::Construct(const Rectangle& rect, GroupedListViewStyle style, bool itemDivider, bool fastScroll)
49 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
50 SysAssertf(pImpl == null,
51 "Already constructed. Calling Construct() twice or more on a same instance is not allowed for this class.");
53 if (fastScroll == true)
55 pImpl = _GroupedListViewImpl::CreateGroupedListViewImplN(this, style, itemDivider, SCROLL_STYLE_FAST_SCROLL);
59 pImpl = _GroupedListViewImpl::CreateGroupedListViewImplN(this, style, itemDivider, SCROLL_STYLE_FADE_OUT);
61 SysTryReturn(NID_UI_CTRL, pImpl != null, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] The memory is insufficient.");
63 _pControlImpl = pImpl;
65 r = Control::SetBounds(_CoordinateSystemUtils::ConvertToFloat(rect));
66 SysTryCatch(NID_UI_CTRL, (r == E_SUCCESS), , r, "[%s] Propagating.", GetErrorMessage(r));
76 GroupedListView::Construct(const Rectangle& rect, GroupedListViewStyle style, bool itemDivider, ListScrollStyle scrollStyle)
80 SysAssertf((_GroupedListViewImpl::GetInstance(*this) == null),
81 "Already constructed. Calling Construct() twice or more on a same instance is not allowed for this class.");
83 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::CreateGroupedListViewImplN(this, style, itemDivider, scrollStyle);
84 SysTryReturn(NID_UI_CTRL, (pImpl != null), GetLastResult(), GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
86 _pControlImpl = pImpl;
88 r = Control::SetBounds(_CoordinateSystemUtils::ConvertToFloat(rect));
89 SysTryCatch(NID_UI_CTRL, (r == E_SUCCESS), , r, "[%s] Propagating.", GetErrorMessage(r));
99 GroupedListView::Construct(const FloatRectangle& rect, GroupedListViewStyle style, bool itemDivider, ListScrollStyle scrollStyle)
101 result r = E_SUCCESS;
103 SysAssertf((_GroupedListViewImpl::GetInstance(*this) == null),
104 "Already constructed. Calling Construct() twice or more on a same instance is not allowed for this class.");
106 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::CreateGroupedListViewImplN(this, style, itemDivider, scrollStyle);
107 SysTryReturn(NID_UI_CTRL, (pImpl != null), GetLastResult(), GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
109 _pControlImpl = pImpl;
111 r = Control::SetBounds(rect);
112 SysTryCatch(NID_UI_CTRL, (r == E_SUCCESS), , r, "[%s] Propagating.", GetErrorMessage(r));
122 GroupedListView::SetItemProvider(IGroupedListViewItemProvider& provider)
124 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
125 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
127 return pImpl->SetItemProvider(provider);
131 GroupedListView::SetItemProvider(IGroupedListViewItemProviderF& provider)
133 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
134 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
136 return pImpl->SetItemProvider(provider);
140 GroupedListView::AddGroupedListViewItemEventListener(IGroupedListViewItemEventListener& listener)
142 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
143 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
145 pImpl->AddGroupedListViewItemEventListener(listener);
146 SysTryReturnVoidResult(NID_UI_CTRL, GetLastResult() == E_SUCCESS, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
150 GroupedListView::RemoveGroupedListViewItemEventListener(IGroupedListViewItemEventListener& listener)
152 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
153 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
155 pImpl->RemoveGroupedListViewItemEventListener(listener);
156 SysTryReturnVoidResult(NID_UI_CTRL, GetLastResult() == E_SUCCESS, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
160 GroupedListView::AddFastScrollListener(IFastScrollListener& listener)
162 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
163 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
165 pImpl->AddFastScrollListener(listener);
166 SysTryReturnVoidResult(NID_UI_CTRL, GetLastResult() == E_SUCCESS, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
170 GroupedListView::RemoveFastScrollListener(IFastScrollListener& listener)
172 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
173 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
175 pImpl->RemoveFastScrollListener(listener);
176 SysTryReturnVoidResult(NID_UI_CTRL, GetLastResult() == E_SUCCESS, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
180 GroupedListView::AddScrollEventListener(IScrollEventListener& listener)
182 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
183 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
185 pImpl->AddScrollEventListener(listener);
186 SysTryReturnVoidResult(NID_UI_CTRL, GetLastResult() == E_SUCCESS, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
190 GroupedListView::AddScrollEventListener(IScrollEventListenerF& listener)
192 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
193 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
195 pImpl->AddScrollEventListener(listener);
196 SysTryReturnVoidResult(NID_UI_CTRL, GetLastResult() == E_SUCCESS, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
200 GroupedListView::RemoveScrollEventListener(IScrollEventListener& listener)
202 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
203 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
205 pImpl->RemoveScrollEventListener(listener);
206 SysTryReturnVoidResult(NID_UI_CTRL, GetLastResult() == E_SUCCESS, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
210 GroupedListView::RemoveScrollEventListener(IScrollEventListenerF& listener)
212 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
213 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
215 pImpl->RemoveScrollEventListener(listener);
216 SysTryReturnVoidResult(NID_UI_CTRL, GetLastResult() == E_SUCCESS, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
220 GroupedListView::AddUiLinkEventListener(IUiLinkEventListener& listener)
222 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
223 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
225 pImpl->AddUiLinkEventListener(listener);
226 SysTryReturnVoidResult(NID_UI_CTRL, GetLastResult() == E_SUCCESS, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
230 GroupedListView::RemoveUiLinkEventListener(IUiLinkEventListener& listener)
232 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
233 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
235 pImpl->RemoveUiLinkEventListener(listener);
236 SysTryReturnVoidResult(NID_UI_CTRL, GetLastResult() == E_SUCCESS, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
240 GroupedListView::SetSweepEnabled(bool enable)
242 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
243 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
245 return pImpl->SetSweepEnabled(enable);
249 GroupedListView::SetFastScrollIndex(const String& text, bool useSearchIcon)
251 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
252 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
254 return pImpl->SetFastScrollIndex(text, useSearchIcon);
258 GroupedListView::GetTopDrawnItemIndex(int& groupIndex, int& itemIndex) const
260 const _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
261 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
263 return pImpl->GetTopDrawnItemIndex(groupIndex, itemIndex);
267 GroupedListView::GetBottomDrawnItemIndex(int& groupIndex, int& itemIndex) const
269 const _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
270 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
272 return pImpl->GetBottomDrawnItemIndex(groupIndex, itemIndex);
276 GroupedListView::ScrollToItem(int groupIndex, int itemIndex)
278 return ScrollToItem(groupIndex, itemIndex, LIST_SCROLL_ITEM_ALIGNMENT_TOP);
282 GroupedListView::ScrollToItem(int groupIndex, int itemIndex, ListScrollItemAlignment itemAlignment)
284 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
285 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
287 return pImpl->ScrollToItem(groupIndex, itemIndex, itemAlignment);
291 GroupedListView::SetItemChecked(int groupIndex, int itemIndex, bool check)
293 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
294 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
296 return pImpl->SetItemChecked(groupIndex, itemIndex, check);
300 GroupedListView::IsItemChecked(int groupIndex, int itemIndex) const
302 const _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
303 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
305 return pImpl->IsItemChecked(groupIndex, itemIndex);
309 GroupedListView::SetItemEnabled(int groupIndex, int itemIndex, bool enable)
311 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
312 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
314 return pImpl->SetItemEnabled(groupIndex, itemIndex, enable);
318 GroupedListView::IsItemEnabled(int groupIndex, int itemIndex) const
320 const _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
321 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
323 return pImpl->IsItemEnabled(groupIndex, itemIndex);
327 GroupedListView::GetGroupCount(void) const
329 const _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
330 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
332 return pImpl->GetGroupCount();
336 GroupedListView::GetItemCountAt(int groupIndex) const
338 const _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
339 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
341 return pImpl->GetItemCountAt(groupIndex);
345 GroupedListView::ShowItemDescriptionText(int groupIndex, int itemIndex)
347 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
348 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
350 return pImpl->ShowItemDescriptionText(groupIndex, itemIndex);
354 GroupedListView::HideItemDescriptionText(int groupIndex, int itemIndex)
356 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
357 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
359 return pImpl->HideItemDescriptionText(groupIndex, itemIndex);
363 GroupedListView::RefreshList(int groupIndex, int itemIndex, ListRefreshType type)
365 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
366 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
368 return pImpl->RefreshList(groupIndex, itemIndex, type);
372 GroupedListView::RefreshList(int groupIndex, int itemIndex, int elementId)
374 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
375 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
377 return pImpl->RefreshList(groupIndex, itemIndex, elementId);
381 GroupedListView::UpdateList(void)
383 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
384 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
386 return pImpl->UpdateList();
390 GroupedListView::GetItemIndexFromPosition(int x, int y, int& groupIndex, int& itemIndex) const
392 return GetItemIndexFromPosition(Point(x, y), groupIndex, itemIndex);
396 GroupedListView::GetItemIndexFromPosition(float x, float y, int& groupIndex, int& itemIndex) const
398 return GetItemIndexFromPosition(FloatPoint(x, y), groupIndex, itemIndex);
402 GroupedListView::GetItemIndexFromPosition(const Point& position, int& groupIndex, int& itemIndex) const
404 const _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
405 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
407 return pImpl->GetItemIndexFromPosition(_CoordinateSystemUtils::ConvertToFloat(position), groupIndex, itemIndex);
411 GroupedListView::GetItemIndexFromPosition(const FloatPoint& position, int& groupIndex, int& itemIndex) const
413 const _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
414 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
416 return pImpl->GetItemIndexFromPosition(position, groupIndex, itemIndex);
420 GroupedListView::GetItemIndexFromPosition(int x, int y, int& groupIndex, int& itemIndex, int& elementId) const
422 return GetItemIndexFromPosition(Point(x, y), groupIndex, itemIndex, elementId);
426 GroupedListView::GetItemIndexFromPosition(float x, float y, int& groupIndex, int& itemIndex, int& elementId) const
428 return GetItemIndexFromPosition(FloatPoint(x, y), groupIndex, itemIndex, elementId);
432 GroupedListView::GetItemIndexFromPosition(const Point& position, int& groupIndex, int& itemIndex, int& elementId) const
434 const _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
435 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
437 return pImpl->GetItemIndexFromPosition(_CoordinateSystemUtils::ConvertToFloat(position), groupIndex, itemIndex, elementId);
441 GroupedListView::GetItemIndexFromPosition(const FloatPoint& position, int& groupIndex, int& itemIndex, int& elementId) const
443 const _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
444 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
446 return pImpl->GetItemIndexFromPosition(position, groupIndex, itemIndex, elementId);
450 GroupedListView::SetSectionColor(const Color& color)
452 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
453 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
455 return pImpl->SetSectionColor(color);
459 GroupedListView::GetSectionColor(void) const
461 const _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
462 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
464 return pImpl->GetSectionColor();
468 GroupedListView::SetItemDividerColor(const Color& color)
470 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
471 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
473 return pImpl->SetItemDividerColor(color);
477 GroupedListView::GetItemDividerColor(void) const
479 const _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
480 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
482 return pImpl->GetItemDividerColor();
486 GroupedListView::SetBackgroundColor(const Color& color)
488 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
489 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
491 pImpl->SetListBackgroundColor(color);
497 GroupedListView::GetBackgroundColor(void) const
499 const _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
500 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
502 return pImpl->GetBackgroundColor();
506 GroupedListView::SetBackgroundBitmap(const Bitmap* pBitmap)
508 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
509 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
511 return pImpl->SetBackgroundBitmap(pBitmap);
515 GroupedListView::SetBitmapOfEmptyList(const Bitmap* pBitmap)
517 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
518 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
520 return pImpl->SetBitmapOfEmptyList(pBitmap);
524 GroupedListView::SetTextOfEmptyList(const String& text)
526 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
527 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
529 return pImpl->SetTextOfEmptyList(text);
533 GroupedListView::GetTextOfEmptyList(void) const
535 const _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
536 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
538 return pImpl->GetTextOfEmptyList();
542 GroupedListView::SetTextColorOfEmptyList(const Color& color)
544 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
545 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
547 return pImpl->SetTextColorOfEmptyList(color);
551 GroupedListView::GetTextColorOfEmptyList(void) const
553 const _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
554 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
556 return pImpl->GetTextColorOfEmptyList();
560 GroupedListView::ExpandGroup(int groupIndex)
562 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
563 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
565 return pImpl->ExpandGroup(groupIndex);
569 GroupedListView::CollapseGroup(int groupIndex)
571 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
572 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
574 return pImpl->CollapseGroup(groupIndex);
578 GroupedListView::IsGroupExpanded(int groupIndex) const
580 const _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
581 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
583 return pImpl->IsGroupExpanded(groupIndex);
587 GroupedListView::ExpandAllGroups(void)
589 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
590 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
592 return pImpl->ExpandAllGroups();
596 GroupedListView::CollapseAllGroups(void)
598 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
599 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
601 return pImpl->CollapseAllGroups();
605 GroupedListView::BeginReorderingMode(void)
607 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
608 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
610 return pImpl->BeginReorderingMode();
614 GroupedListView::EndReorderingMode(void)
616 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
617 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
619 return pImpl->EndReorderingMode();
623 GroupedListView::IsInReorderingMode(void) const
625 const _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
626 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
628 return pImpl->IsInReorderingMode();
632 GroupedListView::SetScrollInputMode(ScrollInputMode mode)
634 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
635 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
637 pImpl->SetScrollInputMode(mode);
641 GroupedListView::GetScrollInputMode(void) const
643 const _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
644 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
646 return pImpl->GetScrollInputMode();
650 GroupedListView::OpenContextItem(int groupIndex, int itemIndex)
652 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
653 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
655 return pImpl->OpenContextItem(groupIndex, itemIndex);
659 GroupedListView::CloseContextItem(int groupIndex, int itemIndex)
661 _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
662 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
664 return pImpl->CloseContextItem(groupIndex, itemIndex);
668 GroupedListView::IsContextItemOpened(int groupIndex, int itemIndex) const
670 const _GroupedListViewImpl* pImpl = _GroupedListViewImpl::GetInstance(*this);
671 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
673 return pImpl->IsContextItemOpened(groupIndex, itemIndex);
676 }}} //Tizen::Ui::Controls