* Helper method to creat menu items for the list
*/
protected void addContextMenuItem(ContextMenu menu, String name, String label, String iconName, String methodName,
String isActiveMethodName)
{
final ContextMenuItem showInTree = new ContextMenuItem(name);
showInTree.setLabel(getMsgs().get(label));
showInTree.setIcon(MgnlContext.getContextPath() + "/.resources/icons/16/" + iconName);
showInTree.setOnclick(this.getList().getName() + "." + methodName + "();");
showInTree.addJavascriptCondition("function(){return "
+ this.getList().getName()
+ "."
+ isActiveMethodName
+ "()}");
menu.addMenuItem(showInTree);