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: 52
Registered: ‎11-03-2008
My Device: Not Specified
Accepted Solution

Refresh Custom Manager's Children Fields

Hi all,

 

I have implemented my own Manager class and overridden its scrollChanged() method. And I have a mainscreen class that has this custom manager as its child field. The manager class has some bitmaps and label fields.

 

Now, upon scrollChanged, I wish that the manager updates itself along with all of its children fields. I am trying it by calling manager.invalidate() method but it only updates the scroll position, it does NOT redraw / updates the bitmaps and label fields contained by the manager class.

 

How can I achive this ?

 

Thanks !

- arun

Developer
Posts: 1,477
Registered: ‎12-30-2008
My Device: Torch 9810

Re: Refresh Custom Manager's Children Fields

I think subPaint will help... I'm not sure.. Just check..
--
Manimaran Selvan
Co-Founder, Tech Lead,
Equity Markets Research Group
Developer
Posts: 52
Registered: ‎11-03-2008
My Device: Not Specified

Re: Refresh Custom Manager's Children Fields

[ Edited ]
Message Edited by arunsingh on 05-29-2009 02:54 AM
Developer
Posts: 52
Registered: ‎11-03-2008
My Device: Not Specified

Re: Refresh Custom Manager's Children Fields

Hi, I tried that and called paintChild() for each of the children fields of the manager, but behaviour remained the same.
Highlighted
Developer
Posts: 52
Registered: ‎11-03-2008
My Device: Not Specified

Re: Refresh Custom Manager's Children Fields

Hi,

 

Just to let you guys know that my query is solved. I over-rode the invalidate() methods of my MainScreen and Manager Class. And whenever I wanted to refresh my screen, I used :

 

UiApplication.getUiApplication().getActiveScreen().invalidate();

 

This resulted in calling the invalidate method of the mainscreen class; which in turn called the invaildate() method of my manager class.

 

 

I am still thankful to all u people :-)