I have a list of GWT three FlowPanels which contains two buttons each in ui binder:
<g:FlowPanel>
<g:FlowPanel>
<g:FocusPanel ui:field="buttonA1">...</g:FocusPanel>
<g:FocusPanel ui:field="buttonB1">...</g:FocusPanel>
</g:FlowPanel>
<g:FlowPanel>
<g:FocusPanel ui:field="buttonA2">...</g:FocusPanel>
<g:FocusPanel ui:field="buttonB2">...</g:FocusPanel>
</g:FlowPanel>
<g:FlowPanel>
<g:FocusPanel ui:field="buttonA3">...</g:FocusPanel>
<g:FocusPanel ui:field="buttonB3">...</g:FocusPanel>
</g:FlowPanel>
</g:FlowPanel>
ButtonA1,ButtonA2,ButtonA3 share a ClickHandler. ButtonB1,ButtonB2,ButtonB3 share a ClickHandler.
Here the ClickHandler for the A buttons:
ClickHandler clickA = new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
}
});
If one of the Buttons A or B is clicked, how do I know inside the click handler which one of the three FlowPanel groups is affected?