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 --- In [email protected], "Corey Smaller" <[EMAIL PROTECTED]> 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], "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 > > > > --- In [email protected], "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?? > > > > > >

