Public Member Functions

YSingleChildManager< T > Class Template Reference

#include <YChildrenManager.h>

Inheritance diagram for YSingleChildManager< T >:
YChildrenManager< T >

List of all members.

Public Member Functions

 YSingleChildManager (T *containerParent)
virtual void add (T *child)
void replace (T *newChild)

Detailed Description

template<class T>
class YSingleChildManager< T >

Children manager that can handle one single child (rejecting any more). Useful for YAlignment, YFrame etc.

Member Function Documentation

template<class T >
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 >.

template<class T >
void YSingleChildManager< T >::replace ( T *  newChild) [inline]

Replace the previous child (if any) with a new one.

The documentation for this class was generated from the following file:
 All Classes Functions Variables Enumerations Friends