Hi Chris,
I have own form handling/databinding API and I'd like to be able to
add form item to the form using very generic approach, just
addItem().I'm usually using Grid layout in form groups (column
0=label, column 1=widget). All this is ok, but currently I need to
track current row and it's quite ugly.
For example I solved this problem extending layout by this:
// Layout convenience. There is no way in qooxdoo to get rows in grid layout,
// so I decided to write my own wrapper that adds current row property to it.
//
// Note this is basic implementation and this kind of functionality should be
// solved by qooxdoo. I hope that this class will be removed in future.
qx.Class.define("jfly.lib.ui.layout.Grid",
{
extend: qx.ui.layout.Grid,
construct: function(spacingX, spacingY)
{
this.base(arguments, spacingX, spacingY);
this._currentRow = 0;
},
members:
{
getCurrentRow: function()
{
return this._currentRow;
},
incCurrentRow: function()
{
return this._currentRow++;
}
}
});
But I'm duplicating code that is somewhere in qooxdoo so I'd like to
see public methods to retrieve total count of layout rows and columns.
My solution is bad because I need to use my layout class instead of
common qooxdoo one.
Should I fill bug report (enhancement) to add this functionality?
--
Best regards
- Petr Kobalicek <http://kobalicek.com>
2009/10/9 Christian Schmidt <[email protected]>:
> Hi Petr,
>
> sorry, if I saw it correctly, then there is no public API for that.
>
> Why do you need the count? Perhaps there is an other solution.
>
> Cheers,
> Chris
>
> Petr Kobalíček schrieb:
>> Hi,
>>
>> is there a way how to get count of rows in the grid layout?
>>
>>
>
>
> --
> Christian Schmidt
> Software Entwickler
>
> 1&1 Internet AG - Web Technologies
> Ernst-Frey-Straße 9 · DE-76135 Karlsruhe
> [email protected]
>
> Amtsgericht Montabaur / HRB 6484
> Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas
> Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver
> Mauss, Jan Oetjen
> Aufsichtsratsvorsitzender: Michael Scheeren
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel