Re: [FlexJS]HierarchicalData

2016-05-31 Thread Alex Harui
The base class UIBase will load IBeadController (the mouse controller) for you. I don't know if the base class should load IkeyboardController or maybe just ListBase should do that. -Alex On 5/31/16, 3:04 PM, "Harbs" wrote: >Great, but how do I specify both behaviors? > >On Jun 1, 2016, at 1:03

Re: [FlexJS]HierarchicalData

2016-05-31 Thread Alex Harui
I'm not sure I understood from this thread as to why you want two of the same type of controller. I don't think we have the notion of sub-controllers right now either. What would it be used for? It is ok to have more than one type of controller on the strand, but they would have different interf

Re: [FlexJS]HierarchicalData

2016-05-31 Thread Harbs
Great, but how do I specify both behaviors? On Jun 1, 2016, at 1:03 AM, Alex Harui wrote: > > > On 5/31/16, 2:52 PM, "Harbs" wrote: > >> My train of thought is that I want to add keyboard navigation to lists in >> addition to mouse navigation that already exists. >> >> It made sense to me t

Re: [FlexJS]HierarchicalData

2016-05-31 Thread Alex Harui
On 5/31/16, 2:52 PM, "Harbs" wrote: >My train of thought is that I want to add keyboard navigation to lists in >addition to mouse navigation that already exists. > >It made sense to me that this should be another bead. The mouse >navigation currently is handled by an IBeadController which is sp

Re: [FlexJS]HierarchicalData

2016-05-31 Thread Harbs
My train of thought is that I want to add keyboard navigation to lists in addition to mouse navigation that already exists. It made sense to me that this should be another bead. The mouse navigation currently is handled by an IBeadController which is specific to mouse navigation. What’s the bes

Re: [FlexJS]HierarchicalData

2016-05-31 Thread Harbs
So basically, there’s a wrapper controller which brings in the sub-controllers? Is there any examples which does this already? On Jun 1, 2016, at 12:16 AM, Peter Ent wrote: > My official reply is "Hmm, I don't think you can". I think you'd want to > use something like IMouseController and IKeyb

Re: [FlexJS]HierarchicalData

2016-05-31 Thread Peter Ent
My official reply is "Hmm, I don't think you can". I think you'd want to use something like IMouseController and IKeyboardController for the items in the style. IBeadController, if present, is automatically detected and loaded as the controller for the strand (same for the IBeadView and IBeadModel)

Re: [FlexJS]HierarchicalData

2016-05-31 Thread Harbs
So, is it possible to have two IBeadControllers? On Jun 1, 2016, at 12:04 AM, Peter Ent wrote: > The key to the CSS and the beads is the ValuesManager > (org.apache.flex.core.ValuesManager) the implementation used > (org.apache.flex.core.SimpleCSSValuesImpl). This searches through the CSS > for

Re: [FlexJS]HierarchicalData

2016-05-31 Thread Peter Ent
The key to the CSS and the beads is the ValuesManager (org.apache.flex.core.ValuesManager) the implementation used (org.apache.flex.core.SimpleCSSValuesImpl). This searches through the CSS for the class and matches the name (eg, IBeadController) and instantiates and instance of the class referenced

Re: [FlexJS]HierarchicalData

2016-05-31 Thread Harbs
Yeah. If I’m going to jump in, it might as well be with both feet into the deep water… ;-) How does the css setting of beads work under the hood? I’d like to understand the mechanics. I’ll figure out the HierarchicalData as soon as I fix the XML issue with the compiler. I’ll look at EditableT

Re: [FlexJS]HierarchicalData

2016-05-31 Thread Peter Ent
Hi, Picked Tree as the first component, huh? The basic idea behind Tree in FlexJS is that it is a List with itemRenderers that indent. The reason CSS is used to set beads, such as model, view, controller, and others, is to make it very easy to swap them out just by giving your app a different CSS

Re: [FlexJS]HierarchicalData

2016-05-30 Thread Harbs
On second thought… This is the first time I’m diving into a FlexJS component. I understand strands and beads conceptually, but I have not really looked into the practice until now. It looks like the behavior of the Tree is handled by the TreeSingleSelectionMouseController which extends ListSi

[FlexJS]HierarchicalData

2016-05-30 Thread Harbs
I’d like to add XML support for Trees. Any preference on whether I should create a new IHierarchicalData class for XML (i.e. XMLHierarchicalData) or put conditional logic in the existing HierarchicalData class? I’m leaning towards the former. Harbs