Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add context menu for node specific functions #36

Open
feldoh opened this issue Oct 1, 2016 · 2 comments
Open

Add context menu for node specific functions #36

feldoh opened this issue Oct 1, 2016 · 2 comments

Comments

@feldoh
Copy link
Owner

feldoh commented Oct 1, 2016

There are a number of buttons on the interface. Add sibling, add child, delete, filter and delete with filter that could be added as right click options on the tree items directly. Mostly this is about adding that context menu which shouldn't be too hard. Then this should just be a matter of delegating to existing functions.

@padfoot27
Copy link

Hey I would like to help. How to get started?

@feldoh
Copy link
Owner Author

feldoh commented Oct 1, 2016

Hey, thanks @padfoot27 for the interest. I'm not sure how much detail you want so sorry if this is a bit verbose. First off I'd suggest getting yourself a little Zookeeper setup locally. If you're on linux or mac it's basically just apt-get or yum or brew install zookeeper. There are also plenty of docker or vagrant boxes around the internet. Clone the repo and run the app (mvn jfx:run will do it or just from your IDE). Click "add" bottom left and just click next through defaults should work and you'll have a zookeeper browser. Play around with adding a few nodes and some data to build up a tree.

If you open up the fxml file in SceneBuilder you should be able to add a context menu to stuff. I think though it may need to be added programmatically to the tree nodes maybe as part of the cell factory.

Context menu items just need to be the same as the buttons in the top left and bottom right. Just see what you can do. If you need some help or pointers or whatever I've setup a gitter room now or just ask here. Up to you :)

Making the context menu should be easy enough; working out how to actually have it display and let you act on the node selected may be slightly harder but it should be a relatively easy intro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants