Interface IsKeyboardKey

    • Method Summary

      All Methods Static Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      static Div getElement​(String key)
      Returns the Div element which describes the modifier key.
      It can be used in UI if needed.
      static Div getElement​(IsKeyboardKey key)
      Returns the Div element which describes the modifier key.
      It can be used in UI if needed.
      default boolean is​(String key)
      Returns true if the key is the same of the event.
      default boolean is​(NativeBaseEvent event)
      Returns true if the key is the same of the event.
      default boolean is​(HasNativeEvent event)
      Returns true if the key is the same of the event.
      • Methods inherited from interface org.pepstock.charba.client.commons.Key

        value
    • Method Detail

      • getElement

        static Div getElement​(IsKeyboardKey key)
        Returns the Div element which describes the modifier key.
        It can be used in UI if needed.
        Parameters:
        key - the keyboard key to use in kbd tag.
        Returns:
        the Div element which describes the modifier key
      • getElement

        static Div getElement​(String key)
        Returns the Div element which describes the modifier key.
        It can be used in UI if needed.
        Parameters:
        key - the keyboard key to use in kbd tag.
        Returns:
        the Div element which describes the modifier key
      • is

        default boolean is​(HasNativeEvent event)
        Returns true if the key is the same of the event.
        Parameters:
        event - instance of event container to be checked
        Returns:
        true if the key is the same of the event
      • is

        default boolean is​(NativeBaseEvent event)
        Returns true if the key is the same of the event.
        Parameters:
        event - instance of native event to be checked
        Returns:
        true if the key is the same of the event
      • is

        default boolean is​(String key)
        Returns true if the key is the same of the event.
        Parameters:
        key - key as string to compare
        Returns:
        true if the key is the same of the event