radbyx
15 Jan 2009, 1:37 AM
Hi,
My leaficons in my tree are to big and is being chopped, witch is a problem. Is there a way I can set the size of those icons to 20px? I think 16px is max af default.
I'm using the icon provider and can't change that.
binder.setIconProvider(new ModelStringProvider<TreeNode>() {
public String getStringValue(TreeNode model, String property) {
if (model instanceof TreeNodeTreeType) {
TreeNodeTreeType leaf = (TreeNodeTreeType) model;
if (leaf.getTreeTypeItem() != null && leaf.getTreeTypeItem().getPictogramName() != null) {
return_imagesPictogramsPath + leaf.getTreeTypeItem().getPictogramName();
}
}
returnnull;
}
});
My leaficons in my tree are to big and is being chopped, witch is a problem. Is there a way I can set the size of those icons to 20px? I think 16px is max af default.
I'm using the icon provider and can't change that.
binder.setIconProvider(new ModelStringProvider<TreeNode>() {
public String getStringValue(TreeNode model, String property) {
if (model instanceof TreeNodeTreeType) {
TreeNodeTreeType leaf = (TreeNodeTreeType) model;
if (leaf.getTreeTypeItem() != null && leaf.getTreeTypeItem().getPictogramName() != null) {
return_imagesPictogramsPath + leaf.getTreeTypeItem().getPictogramName();
}
}
returnnull;
}
});