litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/ISizeableTabPanel.java
|
@@ -3,8 +3,7 @@ |
3 |
3 |
|
|
4 |
4 |
|
import com.google.gwt.user.client.ui.*; |
5 |
5 |
|
|
6 |
|
- |
public interface ISizeableTabPanel |
7 |
|
- |
{ |
|
6 |
+ |
public interface ISizeableTabPanel { |
8 |
7 |
|
public void addStyleName( String pStyle ); |
9 |
8 |
|
|
10 |
9 |
|
public void insertTab( int pBeforeIndex, String pLabelText, Widget pWidget ); |
|
@@ -25,10 +24,8 @@ |
25 |
24 |
|
|
26 |
25 |
|
public void setError( int pIndex, boolean pError ); |
27 |
26 |
|
|
28 |
|
- |
class Helper |
29 |
|
- |
{ |
30 |
|
- |
public static int normalizeBeforeIndex( int pIndex, ISizeableTabPanel pSource ) |
31 |
|
- |
{ |
|
27 |
+ |
class Helper { |
|
28 |
+ |
public static int normalizeBeforeIndex( int pIndex, ISizeableTabPanel pSource ) { |
32 |
29 |
|
if ( pIndex <= 0 ) // == 0 is always safe |
33 |
30 |
|
{ |
34 |
31 |
|
return 0; |
|
@@ -37,23 +34,19 @@ |
37 |
34 |
|
return (pIndex <= zTabCount) ? pIndex : zTabCount; |
38 |
35 |
|
} |
39 |
36 |
|
|
40 |
|
- |
public static boolean indexOK( int pIndex, ISizeableTabPanel pSource ) |
41 |
|
- |
{ |
|
37 |
+ |
public static boolean indexOK( int pIndex, ISizeableTabPanel pSource ) { |
42 |
38 |
|
return ((0 <= pIndex) && (pIndex < pSource.getTabCount())); |
43 |
39 |
|
} |
44 |
40 |
|
|
45 |
|
- |
public static String augment( String pLabelText, boolean pErrorable ) |
46 |
|
- |
{ |
|
41 |
+ |
public static String augment( String pLabelText, boolean pErrorable ) { |
47 |
42 |
|
return pErrorable ? augmentWithErrorIndicator( pLabelText ) : augmentWithSpacer( pLabelText ); |
48 |
43 |
|
} |
49 |
44 |
|
|
50 |
|
- |
public static String augmentWithErrorIndicator( String pLabelText ) |
51 |
|
- |
{ |
|
45 |
+ |
public static String augmentWithErrorIndicator( String pLabelText ) { |
52 |
46 |
|
return "<img src='" + TransparentImage.URL + "' width='13' height='12' class='tabErrorIndicator' border='0'>" + pLabelText; |
53 |
47 |
|
} |
54 |
48 |
|
|
55 |
|
- |
public static String augmentWithSpacer( String pLabelText ) |
56 |
|
- |
{ |
|
49 |
+ |
public static String augmentWithSpacer( String pLabelText ) { |
57 |
50 |
|
return "<img src='" + TransparentImage.URL + "' width='13' height='12' border='0'>" + pLabelText; |
58 |
51 |
|
} |
59 |
52 |
|
} |