IDEMPIERE-1318 Casting problem on BOM Viewer window. Base on patch from Richard Morales Herrera.
This commit is contained in:
parent
97663971b5
commit
a26f603e75
|
@ -159,11 +159,14 @@ public class SimpleTreeModel extends org.zkoss.zul.DefaultTreeModel<Object> impl
|
|||
}
|
||||
|
||||
// Color
|
||||
final MTreeNode mNode = (MTreeNode) ((DefaultTreeNode<?>) node).getData();
|
||||
Color color = mNode.getColor();
|
||||
if (color != null){
|
||||
String hex = ZkCssHelper.createHexColorString(color);
|
||||
ZkCssHelper.appendStyle(tc, "color: #" + hex);
|
||||
Object data = ((DefaultTreeNode<?>) node).getData();
|
||||
if (data instanceof MTreeNode) {
|
||||
final MTreeNode mNode = (MTreeNode) data;
|
||||
Color color = mNode.getColor();
|
||||
if (color != null){
|
||||
String hex = ZkCssHelper.createHexColorString(color);
|
||||
ZkCssHelper.appendStyle(tc, "color: #" + hex);
|
||||
}
|
||||
}
|
||||
// End color
|
||||
}else{
|
||||
|
|
Loading…
Reference in New Issue