Search in sources :

Example 86 with WLabel

use of com.github.bordertech.wcomponents.WLabel in project wcomponents by BorderTech.

the class WLabelRenderer_Test method testWhatForGroup4.

@Test
public void testWhatForGroup4() throws IOException, SAXException, XpathException {
    WMultiSelectPair comp = new WMultiSelectPair();
    WLabel label = new WLabel("label", comp);
    assertSchemaMatch(label);
    assertXpathEvaluatesTo("group", "//ui:label/@what", label);
}
Also used : WMultiSelectPair(com.github.bordertech.wcomponents.WMultiSelectPair) WLabel(com.github.bordertech.wcomponents.WLabel) Test(org.junit.Test)

Example 87 with WLabel

use of com.github.bordertech.wcomponents.WLabel in project wcomponents by BorderTech.

the class WLabelRenderer_Test method testDoPaintBasic.

@Test
public void testDoPaintBasic() throws IOException, SAXException, XpathException {
    WLabel label = new WLabel();
    // Validate Schema
    assertSchemaMatch(label);
    // Check Attributes
    assertXpathEvaluatesTo(label.getId(), "//ui:label/@id", label);
    assertXpathEvaluatesTo("", "//ui:label/@for", label);
    assertXpathEvaluatesTo("", "//ui:label/@hint", label);
    assertXpathEvaluatesTo("", "//ui:label/@required", label);
    assertXpathEvaluatesTo("", "//ui:label/@accessKey", label);
    assertXpathEvaluatesTo("", "//ui:label/@what", label);
    assertXpathEvaluatesTo("", "//ui:label/@readonly", label);
    assertXpathEvaluatesTo("", "//ui:label/@required", label);
    assertXpathEvaluatesTo("", "//ui:label/@hiddencomponent", label);
    // Check Label
    assertXpathEvaluatesTo("", "//ui:label", label);
}
Also used : WLabel(com.github.bordertech.wcomponents.WLabel) Test(org.junit.Test)

Example 88 with WLabel

use of com.github.bordertech.wcomponents.WLabel in project wcomponents by BorderTech.

the class WLabelRenderer_Test method testWhatForGroup7.

@Test
public void testWhatForGroup7() throws IOException, SAXException, XpathException {
    WMultiFileWidget comp = new WMultiFileWidget();
    WLabel label = new WLabel("label", comp);
    assertSchemaMatch(label);
    assertXpathEvaluatesTo("group", "//ui:label/@what", label);
}
Also used : WMultiFileWidget(com.github.bordertech.wcomponents.WMultiFileWidget) WLabel(com.github.bordertech.wcomponents.WLabel) Test(org.junit.Test)

Example 89 with WLabel

use of com.github.bordertech.wcomponents.WLabel in project wcomponents by BorderTech.

the class WLabelRenderer_Test method testWhatForGroup6.

@Test
public void testWhatForGroup6() throws IOException, SAXException, XpathException {
    RadioButtonGroup comp = new RadioButtonGroup();
    WLabel label = new WLabel("label", comp);
    assertSchemaMatch(label);
    assertXpathEvaluatesTo("group", "//ui:label/@what", label);
}
Also used : RadioButtonGroup(com.github.bordertech.wcomponents.RadioButtonGroup) WLabel(com.github.bordertech.wcomponents.WLabel) Test(org.junit.Test)

Example 90 with WLabel

use of com.github.bordertech.wcomponents.WLabel in project wcomponents by BorderTech.

the class WLabelRenderer_Test method testWhatForGroupWFieldSet.

@Test
public void testWhatForGroupWFieldSet() throws IOException, SAXException, XpathException {
    WFieldSet comp = new WFieldSet("legend");
    WLabel label = new WLabel("label", comp);
    assertXpathEvaluatesTo("group", "//ui:label/@what", label);
}
Also used : WFieldSet(com.github.bordertech.wcomponents.WFieldSet) WLabel(com.github.bordertech.wcomponents.WLabel) Test(org.junit.Test)

Aggregations

WLabel (com.github.bordertech.wcomponents.WLabel)99 Test (org.junit.Test)57 WHeading (com.github.bordertech.wcomponents.WHeading)13 WTextField (com.github.bordertech.wcomponents.WTextField)10 WButton (com.github.bordertech.wcomponents.WButton)9 ExplanatoryText (com.github.bordertech.wcomponents.examples.common.ExplanatoryText)9 WComponent (com.github.bordertech.wcomponents.WComponent)8 WRadioButtonSelect (com.github.bordertech.wcomponents.WRadioButtonSelect)8 WPanel (com.github.bordertech.wcomponents.WPanel)7 UIContext (com.github.bordertech.wcomponents.UIContext)6 WCheckBoxSelect (com.github.bordertech.wcomponents.WCheckBoxSelect)6 SubordinateTarget (com.github.bordertech.wcomponents.SubordinateTarget)5 UIContextImpl (com.github.bordertech.wcomponents.UIContextImpl)5 WAjaxControl (com.github.bordertech.wcomponents.WAjaxControl)5 WComponentGroup (com.github.bordertech.wcomponents.WComponentGroup)5 WFieldLayout (com.github.bordertech.wcomponents.WFieldLayout)5 Action (com.github.bordertech.wcomponents.Action)4 ActionEvent (com.github.bordertech.wcomponents.ActionEvent)4 WApplication (com.github.bordertech.wcomponents.WApplication)4 WContainer (com.github.bordertech.wcomponents.WContainer)4