i have 2 DialogComponentStringSelection and if the user select a other String from the first DialogComponentStringSelection i want to update the second one. Is this possible?
I have read in the API something about a updateComponent() but in which function i have to to use this possibility to interact with the enduser?
i have solved the problem over a changelistener, but now i have a new problem.... :)
how can i get the selected String from my list?i only get the selected String if i execute my node. Is is possible to get the selcted String of the StringSelection Component to interact with the enduser?
Or it is possible to call the Apply Button function after a event and how can i use the standard Apply Button function?
Cool! Yes, the ChangeListener is the way to go. (You should always register the listener with the SettingsModel - but I guess you did that.)
Then, if you want to get the currently selected string, simply get it from the SettingsModel that is associated with the corresponding StringSelectionComponent. (Just keep that SettingsModel in a private member before you pass it to the component constructor).
You always get the same value, because you are pulling it from the SettingsModel of the NodeModel. You should get it from the SettingsModel of the Component (normlist).
I would create a member variable in the NodeDialog and store a reference to the SettingsModelString. You can pass this then to the Component constructor and you can access through this the SettingsModel in the ChangeListener.
Don't access NodeModel things in the NodeDialog (except constants maybe).