In theory, if you properly implement IFocusManagerComponent it should
work.  The errors indicate you have not implemented the required
methods.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Corey Smaller
Sent: Tuesday, December 18, 2007 12:02 PM
To: [email protected]
Subject: [flexcoders] Re: implementing IFocusManager

 

i just hit the proverbial brick wall then.

I did notice that the Schedule itself can be tab enabled and i figured
tabChildren="true" would do the trick in the component call, which it
did not of course because, as you say, all these objects are not UI
components. I guess the next step would be either to decide whether
to scrap it and start over (OH NO!) or figure out a way to convert
each object to a UI component. 

Venkat thanks for your help, I really appreciate it

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "rueter007" <[EMAIL PROTECTED]> wrote:
>
> I looked at the source code. SimpleScheduleEntry is not a ui component
> and hence cannot have focus. It is just an object that holds some data
> about a schedule entry. any ui classes that are using this object will
> have focus implementation already implemented in the base class as
> they extend UIComponent.
> 
> - venkat
> http://www.venkatj.com <http://www.venkatj.com> 
> 
> --- In [email protected]
<mailto:flexcoders%40yahoogroups.com> , "Corey Smaller" <corey_smaller@>
> wrote:
> >
> > ah so what you are saying is because its not a UI component I have
to
> > declare the get and set methods myself? Do I have to override the
> > IFocusManagerComponent class altogether??
> > thanks for the help
> > 
> > 
> > 
> > 
> > --- In [email protected]
<mailto:flexcoders%40yahoogroups.com> , "rueter007" <rueter007@> wrote:
> > >
> > > I do not know what SimpleScheduleEntry extends but it is most
likely
> > > that it does not extend UIComponent. The example says that
'implements
> > > IFocusManagerComponent' should be added to a UIComponent-derived
> > > component to set focus. Otherwise, you will have to implement
> > > drawFocus() and setFocus() yourself.
> > > 
> > > - venkat
> > > http://www.venkatj.com <http://www.venkatj.com> 
> > > 
> > > --- In [email protected]
<mailto:flexcoders%40yahoogroups.com> , "Corey Smaller" <corey_smaller@>
> > > wrote:
> > > >
> > > > i imported mx.managers.IFocusManagerComponent and implemented it
> > > > like so:
> > > > 
> > > > 
> > > > public class ColoredScheduleEntry extends SimpleScheduleEntry
> > > implements 
> > > > IFocusManagerComponent
> > > > {
> > > > 
> > > > public var backgroundColor : int = 0xcccccc;
> > > > 
> > > > 
> > > > override public function toString() : String
> > > > {
> > > > return "[object SimpleScheduleEntry id: " +id + " 
> > 
> > > > startDate:" +startDate + " endDate:" + endDate +
> "]";
> > > > }
> > > > 
> > > > }
> > > > 
> > > > 
> > > > 
> > > > Now, even though i implemented the component like the example
tells
> > > > you (and that should be it to make it focusable)
> > > > I get 7 errors all related to the interface methods Getters and
> > > > Setters in the IFocusManagerComponent (one example below)
> > > > 
> > > > 1044: Interface method drawFocus in namespace
> > > > mx.managers:IFocusManagerComponent not implemented by class
> > > > flexlib.scheduling.scheduleClasses:ColoredScheduleEntry. 
> > > > 
> > > > 
> > > > anyone know why this is??
> > > >
> > >
> >
>

 

Reply via email to