{
r = pParent->RemoveChild(this, false);
}
+ else
+ {
+ _Control* pParent = GetCore().GetParent();
+ if (pParent)
+ {
+ ControlList& children = pParent->GetChildList();
+ r = children.Remove(&GetCore());
+ }
+ }
RemoveAllChildren(true);
Container* pContainer = &GetPublic();
delete pContainer;
}
else
{
+ _Control* pParent = GetCore().GetParent();
+ if (pParent)
+ {
+ ControlList& children = pParent->GetChildList();
+ r = children.Remove(&GetCore());
+ }
+
Control* pControl= &GetPublic();
delete pControl;
pControl = null;
"[E_INVALID_ARG] Invalid argument(s) is used. The content cannot be set.");
}
- if (__pContentControl != null)
- {
- _Control& contentControl = _ControlImpl::GetInstance(*__pContentControl)->GetCore();
-
- if (pContent != null)
- {
- const _Control& content = _ControlImpl::GetInstance(*pContent)->GetCore();
-
- if (contentControl.GetHandle() == content.GetHandle())
- {
- return r;
- }
- }
-
- _Control* pContainer = __pSearchBar->GetSearchBarContainer();
-
- if (pContainer)
- {
- pContainer->DetachChild(contentControl);
-
- if (_AppInfo::GetApiVersion() == _API_VERSION_2_0 && _AppInfo::IsOspCompat())
- {
- delete __pContentControl;
- }
- __pContentControl = null;
- }
- }
-
if (pContent != null && __pContentControl == null)
{
__pContentControl = const_cast <Control*>(pContent);
__pDividerVisualElement = null;
}
- if (__pFirstPaneParent)
- {
- DetachChild(*__pFirstPaneParent);
-
- delete __pFirstPaneParent;
- __pFirstPaneParent = null;
- }
-
- if (__pSecondPaneParent)
- {
- DetachChild(*__pSecondPaneParent);
-
- delete __pSecondPaneParent;
- __pSecondPaneParent = null;
- }
-
ClearLastResult();
}
_Control* GetChild(int index) const;
int GetChildCount(void) const;
+ const ControlList& GetChildList(void) const;
+ ControlList& GetChildList(void);
+
result AttachChild(_Control& child);
result InsertChildToBottom(_Control& child);
result InsertChildAfter(const _Control& targetChild, _Control& child);
result SetBoundsFinal(const Tizen::Graphics::FloatRectangle& newBounds, bool changeLayoutBaseRect, bool callBoundsChangeCallbacks);
result UpdateBoundsOfVisualElement(const Tizen::Graphics::FloatRectangle& controlBounds);
result AdjustAbsoluteBounds(void);
-
- const ControlList& GetChildList(void) const;
- ControlList& GetChildList(void);
result StartAttaching(_Control& child, _ControlArea area);
result EndAttaching(_Control& child);
void SetParent(_Control* pParent);
static result CheckConstruction(_Control* pCore, _ControlImpl* pImpl); // Use this in the Factory methods.
typedef Tizen::Base::Collection::LinkedListT <Tizen::Base::Runtime::IEventListener*> PublicEventListenerList;
+ typedef Tizen::Base::Collection::ArrayListT<_Control*> ControlList;
PublicEventListenerList* CreatePublicEventListenerListN(void) const;
void SetMovable(bool movable);