{"id":16061022,"url":"https://github.com/qqilihq/property-editor","last_synced_at":"2025-07-22T12:36:12.543Z","repository":{"id":46111219,"uuid":"88511407","full_name":"qqilihq/property-editor","owner":"qqilihq","description":"An editor for hierarchical properties as Java Swing component","archived":false,"fork":false,"pushed_at":"2021-11-13T21:44:00.000Z","size":1996,"stargazers_count":15,"open_issues_count":3,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-27T22:04:37.374Z","etag":null,"topics":["editor","gui","java","property","swing","tree"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qqilihq.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}},"created_at":"2017-04-17T13:37:48.000Z","updated_at":"2025-05-22T10:07:09.000Z","dependencies_parsed_at":"2022-09-26T22:01:38.680Z","dependency_job_id":null,"html_url":"https://github.com/qqilihq/property-editor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qqilihq/property-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qqilihq%2Fproperty-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qqilihq%2Fproperty-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qqilihq%2Fproperty-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qqilihq%2Fproperty-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qqilihq","download_url":"https://codeload.github.com/qqilihq/property-editor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qqilihq%2Fproperty-editor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266496639,"owners_count":23938715,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["editor","gui","java","property","swing","tree"],"created_at":"2024-10-09T04:07:36.733Z","updated_at":"2025-07-22T12:36:12.513Z","avatar_url":"https://github.com/qqilihq.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Hierarchical Property List Editor\n=================================\n\n[![Actions Status](https://github.com/qqilihq/property-editor/workflows/CI/badge.svg)](https://github.com/qqilihq/property-editor/actions)\n[![codecov](https://codecov.io/gh/qqilihq/property-editor/branch/master/graph/badge.svg)](https://codecov.io/gh/qqilihq/property-editor)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/de.philippkatz.swing.property/property-editor/badge.svg)](http://mvnrepository.com/artifact/de.philippkatz.swing.property/property-editor)\n\n![Demo](demo.gif)\n\nAn editor for hierarchical properties as Java Swing component. Shamelessly\ninspired by Apple's Property List Editor in Xcode. It allows building data\nstructures based on `Map`s and `List`s and primitive types such as `Long`,\n`Double`, and `Boolean`. It is originally created for the [KNIME Selenium\nNodes][1] but it could probably be of general interest.\n\nThe editor is built on top of SwingX from [SwingLabs][3].\n\nDownload\n--------\n\nVia Maven:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ede.philippkatz.swing.property\u003c/groupId\u003e\n  \u003cartifactId\u003eproperty-editor\u003c/artifactId\u003e\n  \u003cversion\u003e2.0.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nUsage\n-----\n\n```java\n// create a new component and pass the data\nObject input = …\nPropertiesTreeTableModel model = new PropertiesTreeTableModel(input);\nPropertiesEditor editor = new PropertiesEditor(model);\n\n// access to the data; this is either a Map\u003cString, Object\u003e or a List\u003cObject\u003e\nObject result = model.getData();\n```\n\nFull Working Example\n-----------------------\n\nHave a look at `PropertiesEditorDemo` for a more detailed version.\n\n```java\npublic class PropertiesEditorDemo {\n\n  private static Object createSampleData() {\n    Map\u003cString, Object\u003e root = new LinkedHashMap\u003c\u003e();\n    root.put(\"string\", \"The quick brown fox\");\n    root.put(\"boolean\", true);\n    root.put(\"numbers\", 42);\n    root.put(\"fruits\", Arrays.asList(\"apple\", \"orange\", \"grapefruit\"));\n    return root;\n  }\n\n  public static void main(String[] args) {\n    JFrame frame = new JFrame();\n    frame.setTitle(\"Properties Editor Demo\");\n    frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n    frame.setMinimumSize(new Dimension(600, 400));\n    frame.add(new PropertiesEditor(new PropertiesTreeTableModel(createSampleData())));\n    frame.setVisible(true);\n  }\n\n}\n```\n\nAdvanced\n--------\n\nThe types to use in the editor can be customized using the\n`PropertiesEditorConfig`. It also allows to change the type names in the user\ninterface. Example:\n\n```java\nPropertiesEditorConfigBuilder configBuilder = PropertiesEditorConfig.builder();\n\n// use \"Object\" and \"Array\" instead of \"Map\" and \"List\"\nconfigBuilder.addType(new PropertyTypes.MapType(\"Object\"));\nconfigBuilder.addType(new PropertyTypes.ListType(\"Array\"));\n\n// only allow String and Boolean\nconfigBuilder.addDefaultType(new PropertyTypes.StringType(\"String\", \"\"));\nconfigBuilder.addType(new PropertyTypes.BooleanType(\"Boolean\", true));\n\nPropertiesEditorConfig config = configBuilder.build();\nPropertiesTreeTableModel model = new PropertiesTreeTableModel(config, data);\n```\n\n\nContributing\n------------\n\nPull requests are very welcome. Feel free to discuss bugs or new features by\nopening a new [issue][2].\n\nLicense\n-------\n\n[GNU Lesser General Public License](https://www.gnu.org/licenses/lgpl.txt)\n\n- - -\n\nCopyright (c) 2017 – 2020, Philipp Katz\n\n[1]: http://seleniumnodes.com\n[2]: https://github.com/qqilihq/property-editor/issues\n[3]: https://en.wikipedia.org/wiki/SwingLabs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqqilihq%2Fproperty-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqqilihq%2Fproperty-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqqilihq%2Fproperty-editor/lists"}