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
Posts: 404
Registered: ‎05-31-2011
My Device: curve
My Carrier: devel

get container of component

hi, i have multi component and multi container in the same mainscreen , if i know a component how to know this compenent in wich container, in programming way?

Developer
Posts: 246
Registered: ‎12-13-2010
My Device: Not Specified

Re: get container of component

if(getManager().equals(container))

Developer
Posts: 16,679
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: get container of component

better add a null check
----------------------------------------------------------
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
Developer
Posts: 246
Registered: ‎12-13-2010
My Device: Not Specified

Re: get container of component

[ Edited ]

Your right, forgot about that.

 

Manager m = Field.getManager();

if(m!=null && m.equals(container))

{

 

}