public String getColumnText(Object element, int columnIndex) {
   ResourceProperty rp = (ResourceProperty) element;
   switch (columnIndex) {
     case 0:
       return Misc.nvl(rp.getName());
     case 1:
       return Misc.nvl(rp.getValue());
   }
   return ""; //$NON-NLS-1$
 }
 private void fillValue(StandardItemProperty value) {
   isRefresh = true;
   if (isMandatory) cprop.setEnabled(false);
   evalue.setExpressionContext(expContext);
   cprop.setText(Misc.nvl(value.getName()));
   if (value.getValueExpression() != null) {
     buseexpr.setSelection(true);
     evalue.setExpression((JRDesignExpression) value.getValueExpression());
   } else {
     buseexpr.setSelection(false);
     tvalue.setText(Misc.nvl(value.getValue()));
   }
   changeValueOrExpression();
   isRefresh = false;
 }
 @Override
 public String toSQLString() {
   if (value != null) {
     if (Number.class.isAssignableFrom(value.getClass()))
       return NumberFormat.getInstance().format((Number) value);
     if (Date.class.isAssignableFrom(value.getClass()))
       return SimpleDateFormat.getInstance().format((Date) value);
     return "'" + value + "'";
   }
   return Misc.nvl(value, "");
 }