Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: InputPredicates

[14:14] static extends: object

Helper for FXGL's InputPredicates utility (com.almasb.fxgl.core.util.InputPredicates), providing reusable Predicate instances for text-input validation. Pair with DialogService.showInputBoxFiltered to constrain user input to alphabetic-only or alphanumeric-only entries.

Methods

  • ALPHANUM ()

    Returns the ALPHANUM predicate (matches any string of Unicode letters and digits).

    • @r An AussomJavaObject around a Predicate.
  • ALPHA ()

    Returns the ALPHA predicate (matches any string of Unicode letters only).

    • @r An AussomJavaObject around a Predicate.