|
@@ -1,44 +1,44 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.client.iconservice; |
3 |
|
- |
|
4 |
|
- |
import org.litesoft.GWT.client.widgets.*; |
5 |
|
- |
|
6 |
|
- |
import com.google.gwt.user.client.ui.*; |
7 |
|
- |
|
8 |
|
- |
public abstract class TaskbarEntry { |
9 |
|
- |
private OurImage mImage = new OurImage(); |
10 |
|
- |
private IconService.DefinitionPlus mDefinition; |
11 |
|
- |
|
12 |
|
- |
protected final void set( IconService.DefinitionPlus pDefinition ) { |
13 |
|
- |
mDefinition = pDefinition; |
14 |
|
- |
mImage.setUrl( getSmallIconURL() ); |
15 |
|
- |
mImage.setHeight( 16 ); |
16 |
|
- |
mImage.setWidth( 16 ); |
17 |
|
- |
} |
18 |
|
- |
|
19 |
|
- |
public String getSmallIconURL() { |
20 |
|
- |
return mDefinition.getDefinition().getSmallIconURL(); |
21 |
|
- |
} |
22 |
|
- |
|
23 |
|
- |
public String getLargeIconURL() { |
24 |
|
- |
return mDefinition.getDefinition().getLargeIconURL(); |
25 |
|
- |
} |
26 |
|
- |
|
27 |
|
- |
public String getTooltip() { |
28 |
|
- |
return mDefinition.wasCurrentFloaterTitle() ? // |
29 |
|
- |
mDefinition.getCurrentFloaterTitle() : // |
30 |
|
- |
mDefinition.getDefinition().getTooltip(); |
31 |
|
- |
} |
32 |
|
- |
|
33 |
|
- |
public boolean wasFactoryRef() { |
34 |
|
- |
return mDefinition.wasFactoryRef(); |
35 |
|
- |
} |
36 |
|
- |
|
37 |
|
- |
public boolean wasCurrentFloaterTitle() { |
38 |
|
- |
return mDefinition.wasCurrentFloaterTitle(); |
39 |
|
- |
} |
40 |
|
- |
|
41 |
|
- |
public Image getSmallIconImage() { |
42 |
|
- |
return mImage; |
43 |
|
- |
} |
44 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.client.iconservice; |
|
3 |
+ |
|
|
4 |
+ |
import org.litesoft.GWT.client.widgets.*; |
|
5 |
+ |
|
|
6 |
+ |
import com.google.gwt.user.client.ui.*; |
|
7 |
+ |
|
|
8 |
+ |
public abstract class TaskbarEntry { |
|
9 |
+ |
private OurImage mImage = new OurImage(); |
|
10 |
+ |
private IconService.DefinitionPlus mDefinition; |
|
11 |
+ |
|
|
12 |
+ |
protected final void set( IconService.DefinitionPlus pDefinition ) { |
|
13 |
+ |
mDefinition = pDefinition; |
|
14 |
+ |
mImage.setUrl( getSmallIconURL() ); |
|
15 |
+ |
mImage.setHeight( 16 ); |
|
16 |
+ |
mImage.setWidth( 16 ); |
|
17 |
+ |
} |
|
18 |
+ |
|
|
19 |
+ |
public String getSmallIconURL() { |
|
20 |
+ |
return mDefinition.getDefinition().getSmallIconURL(); |
|
21 |
+ |
} |
|
22 |
+ |
|
|
23 |
+ |
public String getLargeIconURL() { |
|
24 |
+ |
return mDefinition.getDefinition().getLargeIconURL(); |
|
25 |
+ |
} |
|
26 |
+ |
|
|
27 |
+ |
public String getTooltip() { |
|
28 |
+ |
return mDefinition.wasCurrentFloaterTitle() ? // |
|
29 |
+ |
mDefinition.getCurrentFloaterTitle() : // |
|
30 |
+ |
mDefinition.getDefinition().getTooltip(); |
|
31 |
+ |
} |
|
32 |
+ |
|
|
33 |
+ |
public boolean wasFactoryRef() { |
|
34 |
+ |
return mDefinition.wasFactoryRef(); |
|
35 |
+ |
} |
|
36 |
+ |
|
|
37 |
+ |
public boolean wasCurrentFloaterTitle() { |
|
38 |
+ |
return mDefinition.wasCurrentFloaterTitle(); |
|
39 |
+ |
} |
|
40 |
+ |
|
|
41 |
+ |
public Image getSmallIconImage() { |
|
42 |
+ |
return mImage; |
|
43 |
+ |
} |
|
44 |
+ |
} |