Modified the creation time of a property.
authoryouseong.ji <youseong.ji@samsung.com>
Fri, 12 Apr 2013 12:00:55 +0000 (21:00 +0900)
committeryouseong.ji <youseong.ji@samsung.com>
Fri, 12 Apr 2013 12:45:57 +0000 (21:45 +0900)
Change-Id: I1be909157e338b717465e59092dea4f3da4efd70
Signed-off-by: youseong.ji <youseong.ji@samsung.com>
src/ui/controls/FUiCtrl_TableViewItem.cpp

index 14db095..d9b89b4 100644 (file)
@@ -411,9 +411,6 @@ _TableViewItem::Initialize(void)
 
        result r = E_SUCCESS;
 
-       CreateItemDivider();
-       CreateItemAnnexDivider();
-
        __pHighlightVisualElement = new (std::nothrow) _VisualElement();
        SysTryCatch(NID_UI_CTRL, __pHighlightVisualElement != null, r = E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
 
@@ -1929,8 +1926,16 @@ _TableViewItem::OnBoundsChanged(void)
 void
 _TableViewItem::SetDrawingProperty(_ItemDrawingProperty* pDrawingProperty)
 {
+
+       SysTryReturnVoidResult(NID_UI_CTRL, pDrawingProperty != null, E_INVALID_ARG, "[E_INAVLID_ARG] pDrawingProperty is null");
+
        __pDrawingProperty = pDrawingProperty;
 
+       if(__pDrawingProperty->itemDividerEnabled)
+       {
+               CreateItemDivider();
+       }
+
        CreateAnnexStyle();
 }
 
@@ -2257,6 +2262,7 @@ _TableViewItem::CreateAnnexStyle(void)
                CreateOnOffButton();
                break;
        case TABLE_VIEW_ANNEX_STYLE_ONOFF_SLIDING_WITH_DIVIDER:
+               CreateItemAnnexDivider();
                CreateOnOffButton();
                break;
        case TABLE_VIEW_ANNEX_STYLE_DETAILED: