2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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 FUiCtrlTableViewSimpleGroupItem.cpp
20 * @brief This is the implementation file for TableViewSimpleGroupItem class.
22 * This header file contains the implementation of TableViewSimpleGroupItem class.
25 #include <FUiCtrlTableViewSimpleGroupItem.h>
26 #include "FUiCtrl_TableViewItemImpl.h"
28 using namespace Tizen::Base;
29 using namespace Tizen::Graphics;
31 namespace Tizen { namespace Ui { namespace Controls
34 TableViewSimpleGroupItem::TableViewSimpleGroupItem(void)
38 TableViewSimpleGroupItem::~TableViewSimpleGroupItem(void)
43 TableViewSimpleGroupItem::Construct(const Dimension& itemSize)
45 return TableViewGroupItem::Construct(itemSize);
49 TableViewSimpleGroupItem::SetItemContents(const Tizen::Base::String& text, const Tizen::Graphics::Bitmap* pBitmap)
51 _TableViewItemImpl* pImpl = _TableViewItemImpl::GetInstance(*this);
52 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
54 return pImpl->SetSimpleItemContents(text, pBitmap, true);
58 TableViewSimpleGroupItem::SetTextColor(const Tizen::Graphics::Color& color, TableViewItemDrawingStatus status)
60 _TableViewItemImpl* pImpl = _TableViewItemImpl::GetInstance(*this);
61 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
63 return pImpl->SetSimpleItemTextColor(color, status);
66 Tizen::Graphics::Color
67 TableViewSimpleGroupItem::GetTextColor(TableViewItemDrawingStatus status) const
69 const _TableViewItemImpl* pImpl = _TableViewItemImpl::GetInstance(*this);
70 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
72 return pImpl->GetSimpleItemTextColor(status);
76 TableViewSimpleGroupItem::SetTextSize(int size)
78 _TableViewItemImpl* pImpl = _TableViewItemImpl::GetInstance(*this);
79 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
81 return pImpl->SetSimpleItemTextSize(size);
85 TableViewSimpleGroupItem::GetTextSize(void) const
87 const _TableViewItemImpl* pImpl = _TableViewItemImpl::GetInstance(*this);
88 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
90 return pImpl->GetSimpleItemTextSize();
93 }}} //Tizen::Ui::Controls