Amit Rana schrieb:
> Hi,
>
> I am porting my application from v0.7.3 to v0.8 based on SDK available
> to Qooxdoo site.
>
> I have a few queries :
>
> 1. Do we always have to use the container
> (qx.ui.container.Composite) to add widgets and set their
> properties ?
>
There are a number of other widgets, which support child widgets, e.g.
Windows, Groupboxes, TabPanes, ... They all support the same children
handling interface. If you want to write your own custom widget, which
should have pre configured child widgets but should not expose the
children handling API, you can inherit from qx.ui.core.Widget. The core
widget has the full children handling API as protected methods. This is
why e.g. Button does not have a public "add" method".
> 1. How to use the setWidth() and setHeight() functions on widgets ?
>
setWidth and setHeight set the widget's preferred size in Pixel. The
default value of 'null' means the widget is auto sized. In addition
most layout manager support further hints of how a widgets size should
be calculated. These layout hints can be set as second parameter when
adding the widget to the parent "parent.add(child, {flex:1})" or by
using the setLayoutproperties
<http://demo.qooxdoo.org/current/apiviewer/#qx.ui.core.LayoutItem~setLayoutProperties>
method "child.setLayoutProperties({flex: 1})". In the layout properties
you can set percent, or flex values. You find more information about the
specific layout at the layout reference
<http://qooxdoo.org/documentation/0.8/layout>.
> 1. What is the equivalent of the setDisplay() function ?
>
setVisibility()
<http://demo.qooxdoo.org/current/apiviewer/#qx.ui.core.Widget~visibility>
> 1. The class qx.ui.layout.Grid doesn't have the setColumnCount(),
> setRowCount() nad resp. get() functions. So, how can I set the
> no. of cols. and rows ?
>
You don't have to set the row/column count manually. Just add a widget
to any empty cell.
> 1. How to show the close button in tabView as the
> setShowCloseButton() was in qx.ui.pageview.tabview.Button, and
> this class is not present in v0.8 ?
>
This is an open bug and currently not possible.
> 1. What is the equivalent of qx.ui.basic.HorizontalSpacer() in v0.8 ?
>
qx.ui.core.Spacer
>
> 1. Migration notes
> (http://qooxdoo.org/documentation/0.8/migration_notes_from_07)
> mention to use| qx.ui.core.RadioManager in place of
> ||qx.ui.selection.RadioManager but I guess the actual radio
> manager is |qx.ui.form.RadioGroup. Maybe this needs to be
> updated on the Notes page.
>
We'll check that, thanks.
> 1. What is the meaning of (This class in internal) as in
> qx.ui.splitpane.HLayout in the API page
> (http://demo.qooxdoo.org/current/apiviewer/#qx.ui.splitpane.HLayout)
> ?
>
This means that this class is meant to be used only be the framework.
You should use this class directly in your code. We may break the API
without warning.
>
I hope this helps,
Best Fabian
--
Fabian Jakobs
JavaScript Framework Developer
1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe
Amtsgericht Montabaur HRB 6484
Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas
Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss, Achim
Weiss
Aufsichtsratsvorsitzender: Michael Scheeren
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel