Coder Social home page Coder Social logo

masktextfield's Introduction

masktextfield

Mask TextField for JavaFX

By David Augusto

[email protected]

www.david.blog.br

Class MaskTextField

Use:

  1. Create a instace of the class(Or put a , same as into the FXML)

  2. Use the function setMask(String mask) to create a mask

  3. With the characters above, set the mask [Ex: objectmask.setMask("XXXXXX")]

Characters of the mask:

* = Accept any character

A = Only Alphanumerics

N = Only Numbers

L = Only Letters

U = Only Uppercase Letters

l = Only Lowercase Letters

S = Any character, except Space

P = Only Letters and Points

M = Letters, Numbers and Points

Examples above

==================== EXAMPLES =====================

String mask = "N!.N!"

Accept only numbers separated by a point Ex: 1.1 , 111.111 , 123124.1 12312.00

String mask = "NN.NN"

Accept only two numbers before and after a point Ex: 11.11 , 33.33, 13.30

String mask = "U"

Accept any character and an Uppercase letter Ex: /L , L , [space]L

String mask = "Ul!"

Accept only an Uppercase letter, and one or a sequence of lowercase letters Ex: David, Augusto

String mask = "M!@M!.P!"

An email Ex: [email protected] , [email protected]

masktextfield's People

Contributors

davidaug avatar kasama avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.