litesoft
@ 950
litesoft / trunk / GWT_Sandbox / FormEngine / src / com / temp / client / foundation / widget / WrappingLabel.java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
package com.temp.client.foundation.widget; import com.temp.client.foundation.widget.input.support.*; import com.temp.shared.utils.*; /** * This Widget is a wrapper around a GWT HTML (Label). * <p/> * Its key features are: * <ul> * <li>Leading and trailing whitespace is removed</li> * <li>Text can wrap because embedded spaces are left as spaces (ig the next character is not a space)</li> * </ul> */ public class WrappingLabel extends TextLabel { public WrappingLabel() { initWidget( htmlWidget ); } /** * @param text can be null and can have white space */ public WrappingLabel( String text ) { this(); setText( text ); } /** * @param text will NOT be null or have any leading/trailing whitespace? */ @Override protected String normalizeHTML( String text ) { return SafeHtmlizer.getInstance().noEmptyLeaveSomeSpaces( text ); } } |
Commits for litesoft/trunk/GWT_Sandbox/FormEngine/src/com/temp/client/foundation/widget/WrappingLabel.java
Revision | Author | Commited | Message |
---|---|---|---|
950 Diff | GeorgeS | Thu 19 Jun, 2014 17:57:04 +0000 | New Lines |
948 Diff | GeorgeS | Sat 07 Jun, 2014 23:42:39 +0000 | Jusefuls Formatter Updated to New Code Format |
630 Diff | GeorgeS | Tue 17 Apr, 2012 20:22:17 +0000 | |
628 Diff | GeorgeS | Fri 13 Apr, 2012 03:53:33 +0000 | |
626 | GeorgeS | Wed 11 Apr, 2012 19:39:41 +0000 |