Search in sources :

Example 76 with WLabel

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

the class LessThan method toString.

/**
 * {@inheritDoc}
 */
@Override
public String toString() {
    String triggerName = getTrigger().getClass().getSimpleName();
    WLabel label = getTrigger().getLabel();
    if (label != null) {
        triggerName = label.getText();
    }
    return triggerName + "<\"" + getValue() + "\"";
}
Also used : WLabel(com.github.bordertech.wcomponents.WLabel)

Example 77 with WLabel

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

the class Mandatory method toString.

/**
 * {@inheritDoc}
 */
@Override
public String toString() {
    String targetName = getTarget().getClass().getSimpleName();
    WLabel label = getTarget().getLabel();
    if (label != null) {
        targetName = label.getText();
    }
    return "set " + targetName + " mandatory";
}
Also used : WLabel(com.github.bordertech.wcomponents.WLabel)

Example 78 with WLabel

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

the class Match method toString.

/**
 * {@inheritDoc}
 */
@Override
public String toString() {
    String triggerName = getTrigger().getClass().getSimpleName();
    WLabel label = getTrigger().getLabel();
    if (label != null) {
        triggerName = label.getText();
    }
    return triggerName + " matches \"" + getValue() + "\"";
}
Also used : WLabel(com.github.bordertech.wcomponents.WLabel)

Example 79 with WLabel

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

the class Optional method toString.

/**
 * {@inheritDoc}
 */
@Override
public String toString() {
    String targetName = getTarget().getClass().getSimpleName();
    WLabel label = getTarget().getLabel();
    if (label != null) {
        targetName = label.getText();
    }
    return "set " + targetName + " optional";
}
Also used : WLabel(com.github.bordertech.wcomponents.WLabel)

Example 80 with WLabel

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

the class ShowInGroup method toString.

/**
 * {@inheritDoc}
 */
@Override
public String toString() {
    String targetInName = getTargetInGroup().getClass().getSimpleName();
    WLabel label = getTargetInGroup().getLabel();
    if (label != null) {
        targetInName = label.getText();
    }
    return "show " + targetInName + " in " + getTarget();
}
Also used : WLabel(com.github.bordertech.wcomponents.WLabel)

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