javafx - Implement Path Navigation bar (Breadcrumb bar) control -
i want generate ui can navigate through path of tree structure. here example of want, taken javafx scene builder.
depending on actual position in treeview, ui updated. clicking on individual items tree updated.
my question: nodes/controls best used approach? (no full code required. mention name of controls).
my first idea generate row of buttons closely each other, maybe there better ideas.
thanks.
you can use controlsfx's breadcrumbbar
breadcrumbbar<string> samplebreadcrumbbar = new breadcrumbbar<>(); treeitem<string> model = breadcrumbbar.buildtreemodel("hello", "world", "this", "is", "cool"); samplebreadcrumbbar.setselectedcrumb(model); samplebreadcrumbbar.setoncrumbaction(new eventhandler<breadcrumbbar.breadcrumbactionevent<string>>() { @override public void handle(breadcrumbactionevent<string> bae) { selectedcrumblbl.settext("you clicked on '" + bae.getselectedcrumb() + "'!"); } });
Comments
Post a Comment