String sheetId = column.getParent().getClientId(facesContext);
String action = "Tobago.Sheets.selectAll('" + sheetId + "')";
String label = ResourceManagerUtil.getPropertyNotNull(facesContext, "tobago",
"sheetMenuSelect");
UICommand menuItem = createMenuItem(application, label, action);
menuItem.setId("menuSelectAll");
menu.getChildren().add(menuItem);
action = "Tobago.Sheets.unSelectAll('" + sheetId + "')";
label = ResourceManagerUtil.getPropertyNotNull(facesContext, "tobago",
"sheetMenuUnselect");
menuItem = createMenuItem(application, label, action);
menuItem.setId("menuUnselectAll");
menu.getChildren().add(menuItem);
action = "Tobago.Sheets.toggleAllSelections('" + sheetId + "')";
label = ResourceManagerUtil.getPropertyNotNull(facesContext, "tobago",
"sheetMenuToggleselect");
menuItem = createMenuItem(application, label, action);
menuItem.setId("menuToggleSelections");
menu.getChildren().add(menuItem);
}
writer.startElement(HtmlConstants.DIV, null);
writer.writeIdAttribute(column.getClientId(facesContext));