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 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::Construct(const FloatDimension& itemSize)
51 return TableViewGroupItem::Construct(itemSize);
55 TableViewSimpleGroupItem::Construct(const Tizen::Ui::Layout& layout, const Tizen::Graphics::Dimension& itemSize)
57 return TableViewGroupItem::Construct(layout, itemSize);
61 TableViewSimpleGroupItem::Construct(const Tizen::Ui::Layout& layout, const Tizen::Graphics::FloatDimension& itemSize)
63 return TableViewGroupItem::Construct(layout, itemSize);
67 TableViewSimpleGroupItem::SetItemContents(const Tizen::Base::String& text, const Tizen::Graphics::Bitmap* pBitmap)
69 _TableViewItemImpl* pImpl = _TableViewItemImpl::GetInstance(*this);
70 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
72 return pImpl->SetSimpleItemContents(text, pBitmap, true);
76 TableViewSimpleGroupItem::SetTextColor(const Tizen::Graphics::Color& color, TableViewItemDrawingStatus status)
78 _TableViewItemImpl* pImpl = _TableViewItemImpl::GetInstance(*this);
79 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
81 return pImpl->SetSimpleGroupItemTextColor(color, status);
84 Tizen::Graphics::Color
85 TableViewSimpleGroupItem::GetTextColor(TableViewItemDrawingStatus status) const
87 const _TableViewItemImpl* pImpl = _TableViewItemImpl::GetInstance(*this);
88 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
90 return pImpl->GetSimpleGroupItemTextColor(status);
94 TableViewSimpleGroupItem::SetTextSize(int size)
96 _TableViewItemImpl* pImpl = _TableViewItemImpl::GetInstance(*this);
97 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
99 return pImpl->SetSimpleItemTextSize(size);
103 TableViewSimpleGroupItem::GetTextSize(void) const
105 const _TableViewItemImpl* pImpl = _TableViewItemImpl::GetInstance(*this);
106 SysAssertf(pImpl != null, "Not yet constructed. Construct() should be called before use.");
108 return pImpl->GetSimpleItemTextSize();
111 }}} //Tizen::Ui::Controls