Subversion Repository Public Repository

litesoft

Diff Revisions 243 vs 712 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/datatables/AccordionTable.java

Diff revisions: vs.
  @@ -22,6 +22,7 @@
22 22 import com.google.gwt.user.client.ui.HasHorizontalAlignment.*;
23 23 import com.google.gwt.user.client.ui.HasVerticalAlignment.*;
24 24 import com.google.gwt.widgetideas.client.*;
25 + import org.litesoft.core.util.HTMLConstants;
25 26
26 27 public class AccordionTable<RowType> extends Composite implements HasTableDefinition<RowType>,
27 28 HasShowRangeHandlers<Integer>
  @@ -117,7 +118,7 @@
117 118 }
118 119
119 120 // setup w/ some fake data so we can calculate row heights
120 - mTable.setFooter( 0, "&nbsp;", null, 0 );
121 + mTable.setFooter( 0, HTMLConstants.NBSP, null, 0 );
121 122 mTable.resizeRows( 2 );
122 123 final Element detailTr = mTable.getRowElement( 0 );
123 124 final Element normalTr = mTable.getRowElement( 1 );
  @@ -518,7 +519,7 @@
518 519 innerTd.setPropertyString( "align", pAlign.getTextAlignString() );
519 520 }
520 521 String stringValue = UtilsCommon.noEmpty( (String) pValue );
521 - innerTd.setInnerHTML( (stringValue != null) ? stringValue : "&nbsp;" );
522 + innerTd.setInnerHTML( (stringValue != null) ? stringValue : HTMLConstants.NBSP );
522 523 return innerTd;
523 524 }
524 525
  @@ -537,7 +538,7 @@
537 538 style.setPropertyPx( "paddingRight", pPaddingRight );
538 539 }
539 540 String stringValue = UtilsCommon.noEmpty( (String) pValue );
540 - td.setInnerHTML( (stringValue != null) ? stringValue : "&nbsp;" );
541 + td.setInnerHTML( (stringValue != null) ? stringValue : HTMLConstants.NBSP );
541 542 }
542 543
543 544 public void setFooterAlignment( int pCol, HorizontalAlignmentConstant pAlign )