set_parent


Description:

public void set_parent (Container parent)

This function is useful only when implementing subclasses of Container.

Sets the container as the parent of this, and takes care of some details such as updating the state and style of the child to reflect its new location. The opposite function is unparent .

Parameters:

this

a Widget

parent

parent container