litesoft
Diff Revisions
125
vs
142
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/TextCellButton.java
|
@@ -4,15 +4,16 @@ |
4 |
4 |
|
import org.litesoft.GWT.client.widgets.nonpublic.*; |
5 |
5 |
|
import org.litesoft.core.util.*; |
6 |
6 |
|
|
7 |
|
- |
import com.google.gwt.event.dom.client.*; |
8 |
7 |
|
import com.google.gwt.user.client.*; |
9 |
8 |
|
|
10 |
9 |
|
public class TextCellButton extends AbstractCellButton |
11 |
10 |
|
{ |
12 |
|
- |
public TextCellButton( int pPreImageWidth, String pButtonType, String pTbodyClass2, String pSize, int pMinimumCellSize, String pText, boolean pWrapText, int pPostImageWidth, String pEnabledToolTip, String pDisabledToolTip, ClickHandler pHandler ) |
|
11 |
+ |
public TextCellButton( DefButtonNamedTypedFactoryText pTextButtonFactory ) |
13 |
12 |
|
{ |
14 |
|
- |
super( pPreImageWidth, pText, pSize + "Text", pMinimumCellSize, pButtonType, pTbodyClass2, // |
15 |
|
- |
pPostImageWidth, createElement( makeHTML( pText, pWrapText ) ), pEnabledToolTip, pDisabledToolTip, pHandler ); |
|
13 |
+ |
super( pTextButtonFactory.getPreImageWidth(), pTextButtonFactory.getText(), pTextButtonFactory.getSize() + "Text", pTextButtonFactory.minimumCellSize(), // |
|
14 |
+ |
pTextButtonFactory.getType(), pTextButtonFactory.getCustomStyle(), // |
|
15 |
+ |
pTextButtonFactory.getPostImageWidth(), createElement( makeHTML( pTextButtonFactory.getText(), pTextButtonFactory.wrapText() ) ), // |
|
16 |
+ |
pTextButtonFactory.getEnabledToolTip(), pTextButtonFactory.getDisabledToolTip(), null ); |
16 |
17 |
|
} |
17 |
18 |
|
|
18 |
19 |
|
private static String makeHTML( String pText, boolean pWrapText ) |