Interface HasValueFilter

  • All Implemented Interfaces:

    
    public interface HasValueFilter<C extends Component, HasValue<out Object, V>, V, SELF extends Locator<C, SELF>>
    
                        

    Mixin for Locators whose target component implements HasValue. Exposes the withValue filter that would otherwise be meaningless on components without a value, turning an inapplicable call into a compile error rather than a silent no-op.

    The value type V is threaded through the mixin header so the compiler enforces it against the component's actual value type: e.g. findTextField().withValue(42) fails to compile because TextField is HasValue<?, String>, not HasValue<?, Integer>.

    Since:

    1.1

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      SELF withValue(V expectedValue) Requires the matched component to implement HasValue and to have the given value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • withValue

         SELF withValue(V expectedValue)

        Requires the matched component to implement HasValue and to have the given value. Has no effect when expectedValue is null.