Make component show in front

Is it possible with the API to change which component shows in front? I would like for example to make a specific component show in front of others when the user clicks on a custom component command.