251: Support a different color for measure columns
Task-Url: https://support.d4science.org/issues/251 Added yellow color to Time Dimension columns git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widgetx@115432 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
e96c9637c9
commit
37a3d60bb4
|
@ -130,14 +130,40 @@ public class ColumnConfigGenerator {
|
|||
}
|
||||
|
||||
|
||||
if (columnDefinition.getType() == ColumnType.MEASURE) {
|
||||
ssb.trustedBackgroundColor("#90CB8B");
|
||||
}
|
||||
|
||||
if (columnDefinition.getType() == ColumnType.VIEWCOLUMN) {
|
||||
ssb.trustedBackgroundColor("#c3e1fc");
|
||||
if(columnDefinition.getType()==null){
|
||||
|
||||
} else {
|
||||
switch(columnDefinition.getType()){
|
||||
case COLUMNID:
|
||||
break;
|
||||
case DIMENSION:
|
||||
break;
|
||||
case CODE:
|
||||
break;
|
||||
case MEASURE:
|
||||
ssb.trustedBackgroundColor("#90CB8B");
|
||||
break;
|
||||
case SYSTEM:
|
||||
break;
|
||||
case TIMEDIMENSION:
|
||||
break;
|
||||
case USER:
|
||||
break;
|
||||
case VALIDATION:
|
||||
break;
|
||||
case VIEWCOLUMN_OF_DIMENSION:
|
||||
ssb.trustedBackgroundColor("#c3e1fc");
|
||||
break;
|
||||
case VIEWCOLUMN_OF_TIMEDIMENSION:
|
||||
ssb.trustedBackgroundColor("#f6e681");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
columnConfig.setColumnStyle(ssb.toSafeStyles());
|
||||
|
||||
columnConfig.setHidden(!columnDefinition.isVisible());
|
||||
|
|
|
@ -16,7 +16,9 @@ public enum ColumnType {
|
|||
COLUMNID,
|
||||
DIMENSION,
|
||||
TIMEDIMENSION,
|
||||
VIEWCOLUMN,
|
||||
VIEWCOLUMN_OF_DIMENSION,
|
||||
VIEWCOLUMN_OF_TIMEDIMENSION,
|
||||
CODE,
|
||||
MEASURE,
|
||||
SYSTEM;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue