251: Support a different color for measure columns
Task-Url: https://support.d4science.org/issues/251 Added green color to measure columns git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widgetx@115372 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
6a2770b1b4
commit
e96c9637c9
|
@ -128,10 +128,16 @@ public class ColumnConfigGenerator {
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (columnDefinition.getType() == ColumnType.MEASURE) {
|
||||||
|
ssb.trustedBackgroundColor("#90CB8B");
|
||||||
|
}
|
||||||
|
|
||||||
if (columnDefinition.getType() == ColumnType.VIEWCOLUMN) {
|
if (columnDefinition.getType() == ColumnType.VIEWCOLUMN) {
|
||||||
ssb.trustedBackgroundColor("#c3e1fc");
|
ssb.trustedBackgroundColor("#c3e1fc");
|
||||||
}
|
}
|
||||||
|
|
||||||
columnConfig.setColumnStyle(ssb.toSafeStyles());
|
columnConfig.setColumnStyle(ssb.toSafeStyles());
|
||||||
|
|
||||||
columnConfig.setHidden(!columnDefinition.isVisible());
|
columnConfig.setHidden(!columnDefinition.isVisible());
|
||||||
|
|
|
@ -17,5 +17,6 @@ public enum ColumnType {
|
||||||
DIMENSION,
|
DIMENSION,
|
||||||
TIMEDIMENSION,
|
TIMEDIMENSION,
|
||||||
VIEWCOLUMN,
|
VIEWCOLUMN,
|
||||||
|
MEASURE,
|
||||||
SYSTEM;
|
SYSTEM;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue