private void writeTopTabLastSpacer(ResponseWriter w, UIComponent comp) throws IOException { AbstractTabPanel tabPanel = (AbstractTabPanel) comp; if (tabPanel.isHeaderAlignedLeft()) { writeTopTabSpacer(w, comp, "padding-right: 5px; width: 100%;", "rf-tab-hdr-spcr"); } else { writeTopTabSpacer(w, comp, "padding-right: 5px;", "rf-tab-hdr-spcr"); } }