{"id":15056169,"url":"https://github.com/ben12/infxnity","last_synced_at":"2026-01-30T19:32:44.603Z","repository":{"id":79994417,"uuid":"107803604","full_name":"ben12/infxnity","owner":"ben12","description":"JavaFX \"to infinity and beyond\"","archived":false,"fork":false,"pushed_at":"2023-09-30T19:09:38.000Z","size":592,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T00:50:12.663Z","etag":null,"topics":["binding","java","java-8","java8","javafx","javafx-8","javafx-library","mask","maskededittext","maskedinput","maskedtextfield","textfield-mask"],"latest_commit_sha":null,"homepage":"https://infxnity.ben12.eu","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ben12.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-10-21T18:02:23.000Z","updated_at":"2024-01-21T16:07:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"962dd650-be71-4632-880c-eaad56f508e1","html_url":"https://github.com/ben12/infxnity","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben12%2Finfxnity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben12%2Finfxnity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben12%2Finfxnity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ben12%2Finfxnity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ben12","download_url":"https://codeload.github.com/ben12/infxnity/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243532562,"owners_count":20306156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binding","java","java-8","java8","javafx","javafx-8","javafx-library","mask","maskededittext","maskedinput","maskedtextfield","textfield-mask"],"created_at":"2024-09-24T21:48:38.617Z","updated_at":"2026-01-30T19:32:44.595Z","avatar_url":"https://github.com/ben12.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# infxnity\nJavaFX \"to infinity and beyond\"\n\n[![GitHub license](https://img.shields.io/github/license/ben12/infxnity.svg)](https://github.com/ben12/infxnity/blob/master/LICENSE)\n[![Build Status](https://travis-ci.org/ben12/infxnity.svg?branch=master)](https://travis-ci.org/ben12/infxnity)\n[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=ben12_infxnity\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=ben12_infxnity)\n\n[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=ben12_infxnity\u0026metric=ncloc)](https://sonarcloud.io/dashboard?id=ben12_infxnity)\n[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=ben12_infxnity\u0026metric=code_smells)](https://sonarcloud.io/dashboard?id=ben12_infxnity)\n[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=ben12_infxnity\u0026metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=ben12_infxnity)\n\n\n## Features\n\n### [MaskTextFilter](http://infxnity.ben12.eu/apidocs/com/ben12/infxnity/control/text/MaskTextFilter.html)\n\nExample to create a [`TextField`](https://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/TextField.html) allowing only french phone numbers: \n\n```java\nfinal TextField textField = new TextField();\nfinal MaskCharacter[] mask = MaskBuilder.newBuilder()\n\t.appendLiteral(\"+33 \")\n\t.appendDigit('6')\n\t.appendLiteral(\" \")\n\t.appendDigit(2)\n\t.appendLiteral(\" \")\n\t.appendDigit(2)\n\t.appendLiteral(\" \")\n\t.appendDigit(2)\n\t.appendLiteral(\" \")\n\t.appendDigit(2)\n\t.build();\ntextField.setTextFormatter(new TextFormatter\u003c\u003e(new MaskTextFilter(textField, false, mask)));\n```\n\nDefault text will be \"+33 6 00 00 00 00\".  \nCaret will be placed in 4th position : \"+33 |6 00 00 00 00\".  \nNavigate to the right will do that:  \n\"+33 6 |00 00 00 00\"  \n\"+33 6 0|0 00 00 00\"  \n\"+33 6 00 |00 00 00\"  \n\"+33 6 00 0|0 00 00\"  \n\"+33 6 00 00 |00 00\"  \n\"+33 6 00 00 0|0 00\"  \n\"+33 6 00 00 00 |00\"  \n\"+33 6 00 00 00 0|0\"  \n\"+33 6 00 00 00 00|\"\n\n### [ObservableListAggregation](http://infxnity.ben12.eu/apidocs/com/ben12/infxnity/collections/ObservableListAggregation.html)\n\nAn [`ObservableList`](https://docs.oracle.com/javase/8/javafx/api/javafx/collections/ObservableList.html)(s) aggregation.  \nAll events of aggregated [`ObservableList`](https://docs.oracle.com/javase/8/javafx/api/javafx/collections/ObservableList.html)(s) are forwarded.  \nThe list of aggregated [`ObservableList`](https://docs.oracle.com/javase/8/javafx/api/javafx/collections/ObservableList.html)(s) can be modified to add, remove or replace one or more of the aggregated [`ObservableList`](https://docs.oracle.com/javase/8/javafx/api/javafx/collections/ObservableList.html)(s). An appropriate event will be fired.  \nAn instance of [`ObservableListAggregation`](http://infxnity.ben12.eu/apidocs/com/ben12/infxnity/collections/ObservableListAggregation.html) is a read only list. Any attempt to modify the list will throw an [`UnsupportedOperationException`](https://docs.oracle.com/javase/8/docs/api/java/lang/UnsupportedOperationException.html).  \n\nExample:\n\n```java\nfinal ObservableList\u003cInteger\u003e list1 = FXCollections.observableArrayList(0, 1, 2);\nfinal ObservableList\u003cInteger\u003e list2 = FXCollections.observableArrayList(3, 4);\nfinal ObservableList\u003cInteger\u003e list3 = FXCollections.observableArrayList(5, 6);\n\nfinal ObservableListAggregation\u003cInteger\u003e aggregation = new ObservableListAggregation\u003c\u003e(list1, list2);\nSystem.out.println(aggregation); // [0, 1, 2, 3, 4]\n\naggregation.getLists().add(list3);\nSystem.out.println(aggregation); // [0, 1, 2, 3, 4, 5, 6]\n\nlist1.add(0, -1);\nSystem.out.println(aggregation); // [-1, 0, 1, 2, 3, 4, 5, 6]\n\nlist3.remove(Integer.valueOf(6));\nSystem.out.println(aggregation); // [-1, 0, 1, 2, 3, 4, 5]\n\naggregation.getLists().remove(list1);\nSystem.out.println(aggregation); // [3, 4, 5]\n```\n\n### [IFXContentBinding](http://infxnity.ben12.eu/apidocs/com/ben12/infxnity/binding/IFXContentBinding.html)\n\nUsed to bind a list to an [`ObservableList`](https://docs.oracle.com/javase/8/javafx/api/javafx/collections/ObservableList.html) with a type conversion.\n\nExample:\n\n```java\nObservableList\u003cPerson\u003e personList = FXCollections.observableArrayList(person -\u003e new Observable[] { person.nameProperty() });\nObservableList\u003cString\u003e personNameList = FXCollections.observableArrayList();\n\nIFXContentBinding.bind(personNameList, personList, Person::getName);\n\nSystem.out.println(personNameList); // []\n\npersonList.add(new Person(\"Bob\"));\nSystem.out.println(personNameList); // [Bob]\n\npersonList.addAll(new Person(\"Fred\"), new Person(\"John\"));\nSystem.out.println(personNameList); // [Bob, Fred, John]\n\npersonList.get(0).setName(\"George\");\nSystem.out.println(personNameList); // [George, Fred, John]\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fben12%2Finfxnity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fben12%2Finfxnity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fben12%2Finfxnity/lists"}