Table data font, and making table header disappear

View: New views
5 Messages — Rating Filter:   Alert me  

Table data font, and making table header disappear

by Stefan Volbers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there,

for a recent project I need to display lab data in huge letters. My
first version used few hundreds of labels in a grid to arrange all well,
but the performance in IE (once again) is too sluggish to satisfy my
customer.
Now I used table, and performance is great, but I can't make it display
the way I need it (did use table often before, but rather in a trivial way).

My problem is that I can't set the table data to render with a big font;
if I set one (applied to table.Table with setFont), it is only displayed
in the header.
Guess I somehow have to use table.pane.Pane's setFont(), but if so, how
to address the pane?

Furthermore I'd even prefer to not display the table headers at all, but
table.Table's headerCellHeight property ignores a height of 0 (quote
from the apidoc: "Allowed values: any Integer"). Sadly no thorough table
documentation seems to exist on the qooxdoo site (regarding 0.8 there is
even less docu than to 0.7 and 0.6...).

I'd appreciate if anyone could help me with my newbie-ish table problems.

TIA
Greetings,
Stefan

------------------------------------------------------------------------------
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
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: Table data font, and making table header disappear

by Jonathan Weiß-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello Stefan,


it is possible to change the size of the font inside the table cells, but it
is a bit complicated.

You have to write an own cell renderer and overwrite the constructor of
qx.ui.table.cellrenderer.Abstract. Just copy the constructor code and add a
font-size entry to the map inside the compile() call.

      var stylesheet =
        ".qooxdoo-table-cell {" +
        qx.bom.element.Style.compile(
        {
          position : "absolute",
          top: "0px",
          overflow: "hidden",
          whiteSpace : "nowrap",
          borderRight : "1px solid " + colorMgr.resolve("table-row-line"),
          padding : "0px 6px",
          cursor : "default",
          fontSize : "20pt", // <-------------- here ;-)
          textOverflow : "ellipsis",
          userSelect : "none"
        })

Than you will have to modify the rowHeight property of the Table widget.

I am not sure if it is possible to hide the header of a table. Perhaps some
else know if and how this is possible?

Kind regards
Jonathan

-----
Jonathan Weiß
Framework Engineer

http://mysterycity.de/blog Blog  -  http://www.linkedin.com/in/jonathanrass
LinkedIn  -  http://www.xing.com/profile/Jonathan_Weiss5 XING
--
View this message in context: http://n2.nabble.com/Table-data-font-and-making-table-header-disappear-tp3936690p3946230.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: Table data font, and making table header disappear

by panyasan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message




Jonathan Weiß wrote:
>
>
> I am not sure if it is possible to hide the header of a table. Perhaps
> some else know if and how this is possible?
>
>

see http://n2.nabble.com/Hide-header-row-in-TreeVirtual-td2662225.html
--
View this message in context: http://n2.nabble.com/Table-data-font-and-making-table-header-disappear-tp3936690p3946600.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: Table data font, and making table header disappear

by Stefan Volbers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jonathan, Christian,

thanks so far for your help!
Maybe heading for treevirtual is indeed a better idea, I will look into
that.

Greetings,
Stefan

panyasan wrote:

>
>
> Jonathan Weiß wrote:
>>
>> I am not sure if it is possible to hide the header of a table. Perhaps
>> some else know if and how this is possible?
>>
>>
>
> see http://n2.nabble.com/Hide-header-row-in-TreeVirtual-td2662225.html

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Re: Table data font, and making table header disappear

by Derrell Lipman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Nov 4, 2009 at 12:29, Stefan Volbers <volbers@...> wrote:
Hi Jonathan, Christian,

thanks so far for your help!
Maybe heading for treevirtual is indeed a better idea, I will look into
that.

The concept that wasn't mentioned is that treevirtual is a subclass of table. You can do exactly that same "appear" event on a table.

Derrell
 

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@...
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel