Yes, and the idear was that setStyle() should do a class="",
so maybe setCSSClass() is better...
Martijn Dashorst wrote:
>
> Yep,
>
> Styling should be done in the css, not on the markup tags. Though
> sometimes convenient and I often violate this myself, I cringe
> everytime I add a style=""
The setStyle() on a column, puts the style a tag!
I belive that is the only way you can set style to a complete column on a
single tag.
Niels
igor.vaynberg wrote:
>
> nothing in the works yet, still trying to figure out the nicest way to do
> this
>
> niel's idea might be more straightforwar
Yep,
Styling should be done in the css, not on the markup tags. Though
sometimes convenient and I often violate this myself, I cringe
everytime I add a style="" attribute to a tag instead of a class="".
Martijn
On 10/31/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> nothing in the works yet, sti
nothing in the works yet, still trying to figure out the nicest way to do thisniel's idea might be more straightforward but from framework's point of view it is too limited and you can further generalize it to
setStyle("rightadjusted width200") and remove setWidth() completely.then the question bec
I have run into the same requirement and would also like a more elegant
solution.
Is something in the works or is there more important stuff to do :) ?
Personally I prefer Niels' approach because it is very straightforward.
Thanks,
/Jan
Igor Vaynberg wrote:
> i think what would be even better i
i think what would be even better is if icolumn had add(IBehavior) that would get attached to the headerright now what you have to do is something like thisnew MyColumn() { Component getHeader() { Component c=
super.getHeader(); c.add(new MyAttributeModifier()); }}which is tricky for newbie
Hi
I have this suggestion for an extension to the DataTable component that will make it easier to set width and ccs styles individually on each column.
It involves these files (attached):
IColumn.java - new getWidth() and getStyleName()
AbstractColumn.java - implement default get/set Width