1
votes

Please I am currently facing a challenges with layered ayout. I have a container with a layeredlayout and added many container on top of it like a stacked card I want each stack card to be clickable, so I decided set a Lead component on each card but the response I am getting when any of the container is clicked are the same. I have also try to setleadcomponet on the main Container (with layeredLayout) but the responese I am getting is for only the container that was added last.

1

1 Answers

0
votes

Lead component does the exact opposite of what it seems you are trying to do. It delegates all events to one component within the hierarchy.

Events in Codename One are sent to one Component in the hierarchy so regardless of that the layered layout has nothing to do with even delivery. The foremost focusable component will get the event. You can do various tricks to allow elaborate event delivery but you might need to rephrase the question explaining what you are trying to do and not how you expect something to work.