Example #1
0
 private String getBackgroundClass(AssignmentEditorDtoType type) {
   if (AssignmentEditorDtoType.ROLE.equals(type)) {
     return GuiStyleConstants.CLASS_OBJECT_ROLE_BG;
   } else if (AssignmentEditorDtoType.SERVICE.equals(type)) {
     return GuiStyleConstants.CLASS_OBJECT_SERVICE_BG;
   } else if (AssignmentEditorDtoType.ORG_UNIT.equals(type)) {
     return GuiStyleConstants.CLASS_OBJECT_ORG_BG;
   } else {
     return "";
   }
 }
Example #2
0
 private String getIconClass(AssignmentEditorDtoType type) {
   // TODO: switch to icon constants
   if (AssignmentEditorDtoType.ROLE.equals(type)) {
     return GuiStyleConstants.CLASS_OBJECT_ROLE_ICON;
   } else if (AssignmentEditorDtoType.SERVICE.equals(type)) {
     return GuiStyleConstants.CLASS_OBJECT_SERVICE_ICON;
   } else if (AssignmentEditorDtoType.ORG_UNIT.equals(type)) {
     return GuiStyleConstants.CLASS_OBJECT_ORG_ICON;
   } else {
     return "";
   }
 }