3 // Copyright (c) 2012 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.
18 /*@file: DefaultCustomItem
19 *@brief: This class defines common behaviour of custom Item.
23 #ifndef _INT_DEFAULT_CUSTOM_ITEM_H_
24 #define _INT_DEFAULT_CUSTOM_ITEM_H_
29 #include <FGraphics.h>
33 class DefaultCustomItem
34 : public Tizen::Ui::Controls::CustomItem
39 * @brief The Default Constructor
41 DefaultCustomItem(void);
44 * @brief The Default Destructor
46 virtual ~DefaultCustomItem(void);
49 * @brief Initializes this instance of %DropDownCustomItem.
51 result Construct(int width, int height);
54 //getter and setter methods for Text
57 * @brief The method used to get the text of CustomItem
59 Tizen::Base::String GetText(void);
62 * @brief Add all the required elements and create the Custom Item.
67 * @brief The method used to set the text of CustomItem
69 void SetText(Tizen::Base::String& text);
71 static const int IDA_FORMAT_STRING;
74 int __height; ///Height of the SettingToggleCustomItem Instance
75 Tizen::Base::String __text; ///The Text for the Toggle Button
76 int __width; ///Width of the SettingToggleCustomItem Instance
79 #endif /* _INT_DEFAULT_CUSTOM_ITEM_H_ */