|
From: Luis S. (JIRA) <no...@at...> - 2007-11-23 17:18:16
|
[ http://opensource.atlassian.com/projects/spring/browse/RCP-498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Luis Santos updated RCP-498:
----------------------------
Attachment: attributesPatch.txt
A proposed patch to the issue
> The label does not get the correct attrbites
> --------------------------------------------
>
> Key: RCP-498
> URL: http://opensource.atlassian.com/projects/spring/browse/RCP-498
> Project: Spring Framework Rich Client Project
> Issue Type: Bug
> Reporter: Luis Santos
> Priority: Critical
> Attachments: attributesPatch.txt
>
>
> when you add a property to a form in the form of
> formBuilder.add( propertyName, attributes)
> the jLabel is not afected by the attutes defined.
> More precisely, if an valign or rowspan attribute is specified it should also be applied to the label.
> _Proposal_ of a fix:
> replace the method in the class org.springframework.richclient.form.builder.TableFormBuilder
> public String getLabelAttributes() {
> return labelAttributes;
> }
> for an alternate implementation
> public String getLabelAttributes(String fieldProperties) {
> String theLabelAttributes = labelAttributes;
>
> int valignStartIndex = fieldProperties.indexOf(TableLayoutBuilder.VALIGN);
> if( valignStartIndex!=-1){
> int valignEndIndex = fieldProperties.indexOf(" ",valignStartIndex);
> theLabelAttributes += (" "+theLabelAttributes.substring(valignStartIndex, valignEndIndex));
> }
>
> int rowStartIndex = fieldProperties.indexOf(TableLayoutBuilder.ROWSPAN);
> if( rowStartIndex!=-1){
> int rowEndIndex = fieldProperties.indexOf(" ",valignStartIndex);
> theLabelAttributes += (" "+theLabelAttributes.substring(rowStartIndex, rowEndIndex));
> }
>
> return theLabelAttributes;
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/spring/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|