/** * Set the heading for the field layout. * * @param heading the text for the heading * @deprecated use {@link #setTitle(String)} instead */ @Deprecated public void setHeading(final String heading) { setTitle(heading); }
@Test public void testXssEscaping() throws IOException, SAXException, XpathException { WFieldLayout layout = new WFieldLayout(); layout.setTitle(getMaliciousAttribute("ui:fieldlayout")); assertSafeContent(layout); }
targetFieldLayout.setTitle("Targetable WFieldLayout");
setFlag(layout, ComponentModel.HIDE_FLAG, true); layout.setLabelWidth(10); layout.setTitle("title1");
layout.setTitle("\'Flat\' WFieldLayout"); layout.addField("WTextField 1", new WTextField()).setInputWidth(100); layout.addField("WTextField 2", new WTextField()); layout.setTitle("\'Stacked\' WFieldLayout"); layout.addField("WTextField 1", new WTextField()).setInputWidth(100); layout.addField("WTextField 2", new WTextField());