Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Hithredin
Posts: 404
Registered: ‎06-03-2010
My Device: Z10 Red
My Carrier: Free
Accepted Solution

FieldChangeListener context values

Hi

 

I use a lot FieldChangeListener in my code, but in fact,... without knowing the exact behaviour. Do you know where we can found a detailed reference of the value that the context parameter may take? There is no clue in the Blackberry reference and I haven't found answers in the forum.

 

 

public void fieldChanged(Field field, int context)

 

 

 

 

 Thank you!

 

 

Please use plain text.
Developer
simon_hain
Posts: 16,089
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: FieldChangeListener context values

http://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/ui/FieldChangeListener.html

 

context - Information specifying the origin of the change. The context value is used to provide detail information about how the field was changed. For example, see ChoiceField#CONTEXT_CHANGE_OPTION to find out the context information in ChoiceField. Please check individual fields for more details.

 

FieldChangeListener has one flag

http://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/ui/FieldChangeListener.html#PR...

 

other flags are listed with the fields, like

http://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/ui/component/ChoiceField.html#...

or

http://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/ui/component/SpinBoxField.html...

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
Hithredin
Posts: 404
Registered: ‎06-03-2010
My Device: Z10 Red
My Carrier: Free

Re: FieldChangeListener context values

Seems the 5.0 has more inputs than the 4.6 reference :smileyhappy:

Please use plain text.