I have a sectionStack where sections are added dynamically and I have added a handler to the section stack.
When a sectionStack section is clicked I want to get the id or the contents of the section clicked . How can I do this?
I have a sectionStack where sections are added dynamically and I have added a handler to the section stack.
When a sectionStack section is clicked I want to get the id or the contents of the section clicked . How can I do this?
SectionStackSection has the methods
String getID()
which will return a string.
please see JavaDoc
If you want to get the currently selected SectionStackSection then you should add a SectionHeaderClickHandler via
public HandlerRegistration addSectionHeaderClickHandler(SectionHeaderClickHandler handler)
to the SectionStack. The SectionHeaderClickEvent will give you the method getSection()
please see SectionHeaderClickEvent