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
New Developer
BB21
Posts: 11
Registered: ‎01-08-2009
My Device: Not Specified
Accepted Solution

How should I do to make the Manager class execute the drawFocus method?

Hi, everyone.

 

Please let me question. 

 

I want to have the Manager class do drawFocus. 

Focus is not gained though 'FOCUSABLE' is specified for the constructor of the Manager class. Do you know the method of executing the drawFocus method of the Manager class?

By the way, I want to express one data of the mail list in the Manager class. 

 

JDE  Component Package 4.6.0

 

BlackBerry Development Advisor
MSohm
Posts: 14,855
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: How should I do to make the Manager class execute the drawFocus method?

Focus behaviour is typically handled by fields within a manager.  Can you elaborate on what your end goal is?
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
BB21
Posts: 11
Registered: ‎01-08-2009
My Device: Not Specified

Re: How should I do to make the Manager class execute the drawFocus method?

Thank you for the reply, Mark.

 

My goal is as shown in the following description.

 

When the item is drawn in the custom field, it is necessary to correct the paint() method when the another item is added by the specification change. I thought that I only had to add the item by the insert(Field,index) method of the Manager class when the another item was added by the specification change.

The Manager class shows one data of the mail list, and the item that shows the presence of the reception date and the subject and the attached file is included in that.  Therefore, I want "Manager class" to express the focus existence when a Manager class acquires focus in the mail list.

 

This is my goal. 

(I feel sorry by my poor English. )

 

BlackBerry Development Advisor
MSohm
Posts: 14,855
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: How should I do to make the Manager class execute the drawFocus method?

Sorry, but I'm still not 100% sure what you are looking to do.  Can you provide some screen shots of the series of events you are looking to display?
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
BB21
Posts: 11
Registered: ‎01-08-2009
My Device: Not Specified

Re: How should I do to make the Manager class execute the drawFocus method?

[ Edited ]

I solved for oneself.

 

The following figure is a thing that I wanted to do.

 

<<http://picasaweb.google.co.jp/lh/photo/9wNNUNZam8MKyV9h1FTquw?feat=directlink>>

(Because the image had not been displayed by the preview, the link was presented. I'm sorry.)

 

First of all, I arranged it at the head of the Manager class of "FOCUSABLE"  NullField.(The Manager class can judge the event of the focus acquisition from this. )

The Manager class has one class variable that shows the state of the presence of focus.

And, the "focusChanged" method of FocusChangeListener is mounted.

The Manager class draws the rectangle in the paint() method referring to the value of the class variable ahead.

 

I was able to want to do by this.  

I want to close and this matter by this.

 

Thank you for sparing the expensive time, Mark.

 

Message Edited by BB21 on 01-26-2009 03:39 AM