How to determine the type of object in blackberry application?

Posted by SIA on Stack Overflow See other posts from Stack Overflow or by SIA
Published on 2010-03-16T14:34:37Z Indexed on 2010/03/16 14:36 UTC
Read the original article Hit count: 220

Hi Everybody

On my screen i have ButtonField and CustomButtonField. Both have been added to Listner of my screen.

myScreen.add(new ButtonField("click me")); myScreen.add(new CustomButtonField("click me Again"));

Now i want to know which button is clicked and type of object in fieldChanged function.

public void fieldChanged(Field field, int context) {

//Here- how to determine the type of object //which object has been clicked //ButtonField or CustomButtonField???? }

Kindly Help Thanks SIA

© Stack Overflow or respective owner

Related posts about blackberry-jde

Related posts about custom-application