designElemen.setStyle(jrstyle);
if (designElemen instanceof JRDesignTextElement ) {
JRDesignTextElement textField = (JRDesignTextElement) designElemen;
if (style.getStreching() != null)
textField.setStretchType(style.getStreching().getValue());
textField.setPositionType(JRTextField.POSITION_TYPE_FLOAT);
}
if (designElemen instanceof JRDesignTextField ) {
JRDesignTextField textField = (JRDesignTextField) designElemen;
textField.setStretchWithOverflow(style.isStretchWithOverflow());
if (textField.isBlankWhenNull() == false && style.isBlankWhenNull()) //TODO Re check if this condition is ok
textField.setBlankWhenNull(true);
}
// return jrstyle;
return;
}