com.vaadin.testbench.unit.

Class MetaKeys

java.lang.Object
com.vaadin.testbench.unit.MetaKeys
public class MetaKeys extends Object

Class for setting any down meta keys for events supporting meta keys.

  • Constructor Details

    • MetaKeys

      public MetaKeys()

      Construct metaKeys with all set to false.

    • MetaKeys

      public MetaKeys(boolean ctrl, boolean shift, boolean alt, boolean meta)

      Construct MetaKeys with given values for the keys.

      Parameters:

      ctrl - true for ctrl pressed

      shift - true for shift pressed

      alt - true for alt pressed

      meta - true for meta pressed

  • Method Details

    • ctrl

      public MetaKeys ctrl()

      Set ctrl key down to true.

      Returns:

      this instance

    • shift

      public MetaKeys shift()

      Set shift key down to true.

      Returns:

      this instance

    • alt

      public MetaKeys alt()

      Set alt key down to true.

      Returns:

      this instance

    • meta

      public MetaKeys meta()

      Set meta key down to true.

      Returns:

      this instance

    • setCtrl

      public MetaKeys setCtrl(boolean ctrl)

      Set ctrl key down state to given value.

      Parameters:

      ctrl - key down state

      Returns:

      this instance

    • setShift

      public MetaKeys setShift(boolean shift)

      Set shift key down state to given value.

      Parameters:

      shift - key down state

      Returns:

      this instance

    • setAlt

      public MetaKeys setAlt(boolean alt)

      Set alt key down state to given value.

      Parameters:

      alt - key down state

      Returns:

      this instance

    • setMeta

      public MetaKeys setMeta(boolean meta)

      Set meta key down state to given value.

      Parameters:

      meta - key down state

      Returns:

      this instance

    • isCtrl

      public boolean isCtrl()

      Get ctrl key isPressed state.

      Returns:

      ture is pressed

    • isShift

      public boolean isShift()

      Get shift key isPressed state.

      Returns:

      ture is pressed

    • isAlt

      public boolean isAlt()

      Get alt key isPressed state.

      Returns:

      ture is pressed

    • isMeta

      public boolean isMeta()

      Get meta key isPressed state.

      Returns:

      ture is pressed