This method replaces component with another one is such way that the new component overtakes the position of the old component. If the old component is not in the container, the new component is added to the container. If the both component are already in the container, their positions are swapped. Component attach and detach events should be taken care as with add and remove.
@param oldComponent the old component that will be replaced. @param newComponent the new component to be replaced.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|