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
|
@ -129,9 +129,15 @@ public class ColumnConfigGenerator {
|
|||
return null;
|
||||
}
|
||||
|
||||
|
||||
if (columnDefinition.getType() == ColumnType.MEASURE) {
|
||||
ssb.trustedBackgroundColor("#90CB8B");
|
||||
}
|
||||
|
||||
if (columnDefinition.getType() == ColumnType.VIEWCOLUMN) {
|
||||
ssb.trustedBackgroundColor("#c3e1fc");
|
||||
}
|
||||
|
||||
columnConfig.setColumnStyle(ssb.toSafeStyles());
|
||||
|
||||
columnConfig.setHidden(!columnDefinition.isVisible());
|
||||
|
|
|
@ -17,5 +17,6 @@ public enum ColumnType {
|
|||
DIMENSION,
|
||||
TIMEDIMENSION,
|
||||
VIEWCOLUMN,
|
||||
MEASURE,
|
||||
SYSTEM;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue