Name This Plant

This plant, which is one of my favorite houseplants, just surprised me by blooming! The flowers are slightly sticky, and once the seedheads have dried on the plants, you can remove and collect the seeds. Can you tell me the name of this plant?