Beispiel #1
0
 protected String getText(ModelData model, String valueProperty) {
   String text = null;
   if (textProperty != null) {
     Object o = model.<Object>get(textProperty);
     text = o != null ? o.toString() : null;
   } else if (textProvider != null) {
     text = textProvider.getStringValue(model, valueProperty);
   }
   return text == null ? "" : text;
 }
Beispiel #2
0
 protected String getLabel(ModelData model, String valueProperty) {
   String label = null;
   if (labelProperty != null) {
     Object o = model.<Object>get(labelProperty);
     label = o != null ? o.toString() : null;
   } else if (labelProvider != null) {
     label = labelProvider.getStringValue(model, valueProperty);
   }
   return label == null ? "" : label;
 }