constructor popup menu event construct popupmenu given paramet role determin purpos event creat popupmenu paramet compli role defin action event param role role param target target popup menu event role object target build menu role target 