The name attribute set on a span button doesn't get propogated through the 
even handler...see this code:

        SpanButton btnLogin = new SpanButton("Test");
        btnLogin.setName("Test");
    System.out.println(btnLogin.getName() + ":" + btnLogin.toString());
        btnLogin.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
    Object o = evt.getSource();
    System.out.println(o.toString());
}
        });


results in the following output:
Test:SpanButton[x=0 y=0 width=0 height=0, layout = BorderLayout, 
scrollableX = false, scrollableY = false, components = [Button, TextArea]]
Button[x=12 y=7 width=0 height=687, text = , gap = 2]


Neither the actual button type nor the name label is propagated through the 
event.

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/4bf47469-f6f4-4b7d-9f03-c9a01ad0129e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to