Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/DefButtonNamedTypedFactoryText.java

Diff revisions: vs.
  @@ -2,46 +2,38 @@
2 2
3 3 import org.litesoft.commonfoundation.typeutils.*;
4 4
5 - public class DefButtonNamedTypedFactoryText extends DefButtonNamedTypedFactory
6 - {
5 + public class DefButtonNamedTypedFactoryText extends DefButtonNamedTypedFactory {
7 6 private String mText;
8 7 private DefButtonNamedTypedAbstractTextable mTextType;
9 8
10 - public DefButtonNamedTypedFactoryText( DefButtonNamedTypedAbstractTextable pTyped, String pText )
11 - {
9 + public DefButtonNamedTypedFactoryText( DefButtonNamedTypedAbstractTextable pTyped, String pText ) {
12 10 super( pTyped, Form.Text );
13 11 mText = Strings.noEmpty( pText );
14 12 mTextType = pTyped;
15 13 }
16 14
17 15 @Override
18 - protected String getFormDescription()
19 - {
16 + protected String getFormDescription() {
20 17 return (mText == null) ? "" : "(" + mText + ")";
21 18 }
22 19
23 - public String getText()
24 - {
20 + public String getText() {
25 21 return (mText != null) ? mText : getName();
26 22 }
27 23
28 - public boolean wrapText()
29 - {
24 + public boolean wrapText() {
30 25 return mTextType.wrapText();
31 26 }
32 27
33 - public String getSize()
34 - {
28 + public String getSize() {
35 29 return mTextType.getSize();
36 30 }
37 31
38 - public int getPreImageWidth()
39 - {
32 + public int getPreImageWidth() {
40 33 return mTextType.getPreImageWidth();
41 34 }
42 35
43 - public int getPostImageWidth()
44 - {
36 + public int getPostImageWidth() {
45 37 return mTextType.getPostImageWidth();
46 38 }
47 39 }