Created
December 18, 2013 12:01
-
-
Save codenameone/8021169 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x.addActionListener(new ActionListener() { | |
public void actionPerformed(ActionEvent ev) { | |
// notice we do nothing, this is an event on a stateless component of the renderer | |
xWasClicked = true; | |
} | |
}); | |
list.addActionListener(new ActionListener() { | |
public void actionPerformed(ActionEvent ev) { | |
if(xWasClicked) { | |
xWasClicked = false; | |
// handle the button click event and return | |
return; | |
} | |
// handle standard list action event | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment