Class AbstractFieldTester<T>

java.lang.Object
com.vaadin.testbench.uiunittest.testers.Tester<com.vaadin.ui.AbstractField<T>>
com.vaadin.testbench.uiunittest.testers.AbstractFieldTester<T>
All Implemented Interfaces:
HasValue<T>
Direct Known Subclasses:
AbstractDateFieldTester

public class AbstractFieldTester<T> extends Tester<com.vaadin.ui.AbstractField<T>> implements HasValue<T>
  • Constructor Details

    • AbstractFieldTester

      public AbstractFieldTester(com.vaadin.ui.AbstractField<T> field)
  • Method Details

    • setValue

      public void setValue(T value)
      Description copied from interface: HasValue
      Set value as user. This will mean that accompanying event will have isUserOriginated = true. The field will gain focus and fire focus event as a side effect.
      Specified by:
      setValue in interface HasValue<T>
      Parameters:
      value - The value
    • isInteractable

      public boolean isInteractable()
      Checks if the component is interactable by user, i.e. it is enabled and it is visible and not in readonly state.
      Overrides:
      isInteractable in class Tester<com.vaadin.ui.AbstractField<T>>
      Returns:
      boolean value
    • getComponent

      protected com.vaadin.ui.AbstractField<T> getComponent()
      Overrides:
      getComponent in class Tester<com.vaadin.ui.AbstractField<T>>