libyui
|
#include <YChildrenManager.h>
Public Member Functions | |
YSingleChildManager (T *containerParent) | |
virtual void | add (T *child) |
void | replace (T *newChild) |
Children manager that can handle one single child (rejecting any more). Useful for YAlignment, YFrame etc.
virtual void YSingleChildManager< T >::add | ( | T * | child | ) | [inline, virtual] |
Add a new child.
Reimplemented from YChildrenManager.
This will throw a YUITooManyChildrenException if there already is a child.
Reimplemented from YChildrenManager< T >.
void YSingleChildManager< T >::replace | ( | T * | newChild | ) | [inline] |
Replace the previous child (if any) with a new one.