add some buttons to the rolloutfloater controlling the open and close of the rollouts thankyou

I'd like to write an rollouterfloater.But I donnot know how to add some buttons to the rolloutfloater controlling the open and close of the rollouts.

for example:

floater=newrolloutfloater

addrollout first  floater

addrollout second  floater

Thank you very much!