Thanks!
I got so used to using qx.ui.list.List that I didn't think
about checking whether qx.ui.form.List supports
horizontal orientation.
I implemented the delegate and it works great!
I will open a bug for the manual request.
Best wishes,
Omri
On Wed, Jul 25, 2012 at 3:21 PM, thron7 <[email protected]>wrote:
> You might also want to look at this Demobrowser sample,
>
> http://demo.qooxdoo.org/2.0.x/demobrowser/index.html#data~Flickr.html
>
> which, btw, shows a horizontal list in action :).
>
> T.
>
> On 07/25/2012 03:10 PM, thron7 wrote:
> > On 07/25/2012 02:09 PM, omrihar wrote:
> >> Hi All,
> >>
> >> I'm working on a custom widget which should represent an item in a
> >> qx.data.Array. The items are all supposed to be added to a
> >> qx.ui.container.SlideBar. After having "seen the light" when it comes to
> >> data binding, I don't want to add the items myself but would rather use
> a
> >> list controller to do the job for me.
> >> The problem is that the list controller only supports SelectBox, List
> and
> >> ComboBox widgets, none of which have a horizontal orientation.
> >>
> >> My question is - which methods should the SlideBar implement so that I
> can
> >> use it with the List controller? My requirements are actually quite
> simple -
> >> I simply want for each item in the array to be bound to the "model"
> property
> >> of my widget, and for the controller to add/remove items when the model
> >> changes.
> > There are only a few features a list view widget has to implement, in
> > order to play with a list controller [1]. Basically, you have to tell
> > the controller [2] how to create a new list element if necessary, and
> > for a list element which properties to bind the label and/or icon
> > property to. You'd probably do all of that setting the list controller's
> > delegate [3]. That's all.
> >
> > [1] http://manual.qooxdoo.org/2.0.x/pages/data_binding/controller.html
> > [2] http://demo.qooxdoo.org/2.0.x/apiviewer/#qx.data.controller.List
> > [3]
> >
> http://demo.qooxdoo.org/2.0.x/apiviewer/#qx.data.controller.IControllerDelegate
> >
> >
> >> In general, I would very much appreciate if there was a manual page
> (perhaps
> >> there is and I didn't find it?) about writing data-aware custom widgets,
> >> especially those having to do with dynamic creation of widgets
> according to
> >> a model.
> > Please open a bug for it.
> >
> > T.
> >
> >
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > qooxdoo-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >
> >
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel