/** * Registers an external style sheet. If the style sheet has not already been registered, * creates a style component and adds it to the current page. * * @param url URL of style sheet. */ public void registerStyleSheet(String url) { if (findStyleSheet(url) == null) { Style ss = new Style(); ss.setSrc(url); registeredStyles.addChild(ss); } }