Interface ClickNotifier.ClickFiltersJs

All Superinterfaces:
Serializable
Enclosing interface:
ClickNotifier<T extends Component>

@JsDefinition public static interface ClickNotifier.ClickFiltersJs extends Serializable
The click count filters of ClickNotifier, as JavaScript snippets for JsSnippets.of(Class), so that the browser does not compile them from a string.

For internal use only. May be renamed or removed in a future release.

  • Method Summary

    Modifier and Type
    Method
    Description
    isClickCountBetween(int min, int max)
    Accepts a click whose click count, the detail of the event, is within the given range.
  • Method Details

    • isClickCountBetween

      @JsExpression("return event.detail >= $0 && event.detail <= $1;") DomEventFilter isClickCountBetween(int min, int max)
      Accepts a click whose click count, the detail of the event, is within the given range.
      Parameters:
      min - the lowest click count to accept
      max - the highest click count to accept
      Returns:
      the filter, not null