pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill van Melle <bill.van.me...@gmail.com>
Subject Re: Does ButtonDataRenderer#setFillIcon not work?
Date Thu, 24 Mar 2011 22:09:03 GMT
And to follow up on your LinkButton suggestion, it works fine, once I
implement a suitable renderer.  LinkButtonDataRenderer uses a TablePane
instead of a BoxPane (not obvious why), but has the same issue of not
providing size constraints to the ImageView, so my renderer looks like this:

public class LinkButtonDataRendererWithFill extends LinkButtonDataRenderer {
public LinkButtonDataRendererWithFill() {
imageView.getStyles().put("fill", true);
 getColumns().get(0).setWidth(1, true);
getColumns().get(1).setWidth(-1);
 getRows().get(0).setHeight(1, true);
}
}

Mime
View raw message