{"id":15056141,"url":"https://github.com/interacto/interacto-javafx","last_synced_at":"2025-09-04T10:45:21.920Z","repository":{"id":57733523,"uuid":"193859095","full_name":"interacto/interacto-javafx","owner":"interacto","description":"Front-end framework for processing user interface events in JavaFX","archived":false,"fork":false,"pushed_at":"2020-12-06T14:33:47.000Z","size":16975,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T04:07:02.621Z","etag":null,"topics":["event-processing","framework","front-end","java","javafx","javafx-frameworks","javafx-library","user-interaction","user-interface"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/interacto.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-26T08:06:41.000Z","updated_at":"2024-08-08T16:53:40.000Z","dependencies_parsed_at":"2022-09-26T22:11:26.836Z","dependency_job_id":null,"html_url":"https://github.com/interacto/interacto-javafx","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/interacto/interacto-javafx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interacto%2Finteracto-javafx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interacto%2Finteracto-javafx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interacto%2Finteracto-javafx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interacto%2Finteracto-javafx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/interacto","download_url":"https://codeload.github.com/interacto/interacto-javafx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interacto%2Finteracto-javafx/sbom","scorecard":{"id":491220,"data":{"date":"2025-08-11","repo":{"name":"github.com/interacto/interacto-javafx","commit":"8aa8b536e25a3ab735bcc8af0a0ee8b2dbd9c199"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T19:12:37.877Z","repository_id":57733523,"created_at":"2025-08-19T19:12:37.878Z","updated_at":"2025-08-19T19:12:37.878Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273595684,"owners_count":25134258,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["event-processing","framework","front-end","java","javafx","javafx-frameworks","javafx-library","user-interaction","user-interface"],"created_at":"2024-09-24T21:48:20.105Z","updated_at":"2025-09-04T10:45:21.885Z","avatar_url":"https://github.com/interacto.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n![Jenkins](https://img.shields.io/jenkins/build?jobUrl=https%3A%2F%2Fci.inria.fr%2Fmalai%2Fjob%2Finteracto-javafx\u0026style=for-the-badge)\n![Jenkins Coverage](https://img.shields.io/jenkins/coverage/jacoco?jobUrl=https%3A%2F%2Fci.inria.fr%2Fmalai%2Fjob%2Finteracto-javafx\u0026style=for-the-badge) \n![GitHub](https://img.shields.io/github/license/interacto/interacto-javafx?style=for-the-badge)\n![Maven Central](https://img.shields.io/maven-central/v/io.github.interacto/interacto-javafx?style=for-the-badge)\n![java](https://img.shields.io/badge/java-11-green?style=for-the-badge)\n\n\n\n# Interacto JavaFX\n\nThe JavaFX binding of the Interacto library.\n\nInteracto is a UI library that eases the processing of user interface events.\nA developer uses the Interacto fluent API to configure how a selected user interaction is transformed into a (undoable) command.\n\n## Examples\n\nFollowing a serie of examples. For each example, the first code chunk is the JavaFX code that uses standard UI events.\nThe second is the equivalent Interacto code.\n \n\n- A very basic example. I want to undo the latest command by clicking on the undo button.\n\n```java\nundoButton.setOnAction(evt -\u003e {\n    // do the undo job here\n});\n```\n\n\n```java\nbuttonBinder()\n    .toProduce(Undo::new)\n    .on(undoButton)\n    .bind();\n```\n\nWhat differences?\n\nYou do not use UI event and listeners but pre-defined user interactions (provided by `buttonBinder` here).\nIn this case, the benefits is not direct as a button interaction is quite simple (it involves a single UI event).\n\nYou define commands (the `Undo` class here): classes that will do the job, and you can also add undo/redo features in your commands. \nDefining commands as classes have several benefits here:\nyour UI processing code is less complex as the command bahevior is defined in a specific class;\nyou can easily make your commands undoable;\nyou can access and manage the history of executed commands;\nyou factorise your code as commands may be executed in several places in your code. \n\n\n\n\n- I want to delete a selected object by pressing on the key `DELETE`.\n\n```java\ncanvas.addEventHandler(KeyEvent.KEY_TYPED, evt -\u003e {\n    if(evt.getCode() == KeyCode.DELETE) {\n        // do the deletion job here\n    }\n});\n```\n\n\n```java\nshortcutBinder()\n    .toProduce(() -\u003e new DeleteShapes(canvas.getSelection()))\n    .on(canvas)\n    .with(KeyCode.DELETE)\n    .bind();\n```\n\nInstead of having an `if` statement checking the key, you can use the routine `with` that will do the job for you.\nSo it reduces the cyclomatic complexity.\n\n\n\n- I want to drag-and-drop (DnD) the selected color of a color picker onto an object to change its color.\n\nA much more complex example in vanilla JavaFX.\n\n```java\nlineCol.addEventHandler(MouseEvent.MOUSE_DRAGGED, evt -\u003e {\n    lineCol.getScene().setCursor(new ColorCursor(lineCol.getValue()));\n});\n\nlineCol.addEventHandler(MouseEvent.MOUSE_RELEASED, evt -\u003e {\n    if(evt.getPickResult().getIntersectedNode() instanceof Shape) {\n        // do the command here\n    }\n    lineCol.getScene().setCursor(Cursor.DEFAULT);\n});\n```\n\nWith this example, the Interacto code is not less verbose but much more direct and avoids the use of spaghetti of callbacks.\n\n```java\nnodeBinder()\n    .usingInteraction(DnD::new)\n    .toProduce(i -\u003e new ChangeColour(lineCol.getValue(), null))\n    .on(colorPicker)\n    .first(i -\u003e lineCol.getScene().setCursor(new ColorCursor(lineCol.getValue())))\n    .then((i, c) -\u003e i.getTgtObject().map(view -\u003e (MyShape) view.getUserData()).ifPresent(sh -\u003e c.setShape(sh)))\n    .when(i -\u003e i.getTgtObject().orElse(null) instanceof Shape)\n    .endOrCancel(i -\u003e colorPicker.getScene().setCursor(Cursor.DEFAULT))\n    .bind();\n```\n\nwith explanations:\n\n```java\nnodeBinder()\n    // I want to use a built-in DnD interaction\n    .usingInteraction(DnD::new)\n    // to produce as output a command that will change the color of the targeted object\n    .toProduce(i -\u003e new ChangeColour(lineCol.getValue(), null))\n    // the DnD operates on the color picker\n    .on(colorPicker)\n    // at the beginning of the DnD I change the cursor of the app\n    .first(i -\u003e lineCol.getScene().setCursor(new ColorCursor(lineCol.getValue())))\n    // on each update of the ongoing DnD I look at the current targeted object\n    .then((i, c) -\u003e i.getTgtObject().map(view -\u003e (MyShape) view.getUserData()).ifPresent(sh -\u003e c.setShape(sh)))\n    // 'When' is a predicate that constraints the execution of the command.\n    // I want to change the color of a Shape object only\n    .when(i -\u003e i.getTgtObject().orElse(null) instanceof Shape)\n    // when the DnD ends or is cancelled, I set the default cursor\n    .endOrCancel(i -\u003e colorPicker.getScene().setCursor(Cursor.DEFAULT))\n    // I build the widget binding\n    .bind();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finteracto%2Finteracto-javafx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finteracto%2Finteracto-javafx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finteracto%2Finteracto-javafx/lists"}