|
@@ -1,52 +1,52 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.ebiconservice.client; |
3 |
|
- |
|
4 |
|
- |
import org.litesoft.GWT.client.iconservice.*; |
5 |
|
- |
import org.litesoft.commonfoundation.typeutils.*; |
6 |
|
- |
|
7 |
|
- |
import java.io.*; |
8 |
|
- |
|
9 |
|
- |
public class EBIconServiceDefinition implements IconService.Definition, |
10 |
|
- |
Serializable { |
11 |
|
- |
protected String mFloaterFactoryRefPattern; |
12 |
|
- |
protected String mFloaterTitlePattern; |
13 |
|
- |
private String mSmallIconURL; |
14 |
|
- |
private String mLargeIconURL; |
15 |
|
- |
private String mTooltip; |
16 |
|
- |
|
17 |
|
- |
/** |
18 |
|
- |
* @deprecated GWT ONLY |
19 |
|
- |
*/ |
20 |
|
- |
public EBIconServiceDefinition() { |
21 |
|
- |
} |
22 |
|
- |
|
23 |
|
- |
public EBIconServiceDefinition( String pFloaterFactoryRefPattern, String pFloaterTitlePattern, |
24 |
|
- |
String pSmallIconURL, String pLargeIconURL, String pTooltip ) { |
25 |
|
- |
mFloaterFactoryRefPattern = |
26 |
|
- |
Strings.assertNotNullNotEmpty( "FloaterFactoryRefPattern", pFloaterFactoryRefPattern ); |
27 |
|
- |
mFloaterTitlePattern = Strings.assertNotNullNotEmpty( "FloaterTitlePattern", pFloaterTitlePattern ); |
28 |
|
- |
mSmallIconURL = Strings.assertNotNullNotEmpty( "SmallIconURL", pSmallIconURL ); |
29 |
|
- |
mLargeIconURL = Strings.assertNotNullNotEmpty( "LargeIconURL", pLargeIconURL ); |
30 |
|
- |
mTooltip = Strings.assertNotNullNotEmpty( "Tooltip", pTooltip ); |
31 |
|
- |
} |
32 |
|
- |
|
33 |
|
- |
public String getFloaterFactoryRefPattern() { |
34 |
|
- |
return mFloaterFactoryRefPattern; |
35 |
|
- |
} |
36 |
|
- |
|
37 |
|
- |
public String getFloaterTitlePattern() { |
38 |
|
- |
return mFloaterTitlePattern; |
39 |
|
- |
} |
40 |
|
- |
|
41 |
|
- |
public String getSmallIconURL() { |
42 |
|
- |
return mSmallIconURL; |
43 |
|
- |
} |
44 |
|
- |
|
45 |
|
- |
public String getLargeIconURL() { |
46 |
|
- |
return mLargeIconURL; |
47 |
|
- |
} |
48 |
|
- |
|
49 |
|
- |
public String getTooltip() { |
50 |
|
- |
return mTooltip; |
51 |
|
- |
} |
52 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.ebiconservice.client; |
|
3 |
+ |
|
|
4 |
+ |
import org.litesoft.GWT.client.iconservice.*; |
|
5 |
+ |
import org.litesoft.commonfoundation.base.*; |
|
6 |
+ |
|
|
7 |
+ |
import java.io.*; |
|
8 |
+ |
|
|
9 |
+ |
public class EBIconServiceDefinition implements IconService.Definition, |
|
10 |
+ |
Serializable { |
|
11 |
+ |
protected String mFloaterFactoryRefPattern; |
|
12 |
+ |
protected String mFloaterTitlePattern; |
|
13 |
+ |
private String mSmallIconURL; |
|
14 |
+ |
private String mLargeIconURL; |
|
15 |
+ |
private String mTooltip; |
|
16 |
+ |
|
|
17 |
+ |
/** |
|
18 |
+ |
* @deprecated GWT ONLY |
|
19 |
+ |
*/ |
|
20 |
+ |
public EBIconServiceDefinition() { |
|
21 |
+ |
} |
|
22 |
+ |
|
|
23 |
+ |
public EBIconServiceDefinition( String pFloaterFactoryRefPattern, String pFloaterTitlePattern, |
|
24 |
+ |
String pSmallIconURL, String pLargeIconURL, String pTooltip ) { |
|
25 |
+ |
mFloaterFactoryRefPattern = |
|
26 |
+ |
Confirm.significant( "FloaterFactoryRefPattern", pFloaterFactoryRefPattern ); |
|
27 |
+ |
mFloaterTitlePattern = Confirm.significant( "FloaterTitlePattern", pFloaterTitlePattern ); |
|
28 |
+ |
mSmallIconURL = Confirm.significant( "SmallIconURL", pSmallIconURL ); |
|
29 |
+ |
mLargeIconURL = Confirm.significant( "LargeIconURL", pLargeIconURL ); |
|
30 |
+ |
mTooltip = Confirm.significant( "Tooltip", pTooltip ); |
|
31 |
+ |
} |
|
32 |
+ |
|
|
33 |
+ |
public String getFloaterFactoryRefPattern() { |
|
34 |
+ |
return mFloaterFactoryRefPattern; |
|
35 |
+ |
} |
|
36 |
+ |
|
|
37 |
+ |
public String getFloaterTitlePattern() { |
|
38 |
+ |
return mFloaterTitlePattern; |
|
39 |
+ |
} |
|
40 |
+ |
|
|
41 |
+ |
public String getSmallIconURL() { |
|
42 |
+ |
return mSmallIconURL; |
|
43 |
+ |
} |
|
44 |
+ |
|
|
45 |
+ |
public String getLargeIconURL() { |
|
46 |
+ |
return mLargeIconURL; |
|
47 |
+ |
} |
|
48 |
+ |
|
|
49 |
+ |
public String getTooltip() { |
|
50 |
+ |
return mTooltip; |
|
51 |
+ |
} |
|
52 |
+ |
} |