|
@@ -1,35 +1,34 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.client.taskbar; |
3 |
|
- |
|
4 |
|
- |
import org.litesoft.GWT.client.widgets.*; |
5 |
|
- |
|
6 |
|
- |
import com.google.gwt.user.client.*; |
7 |
|
- |
import com.google.gwt.user.client.ui.*; |
8 |
|
- |
|
9 |
|
- |
public class BackgroundCellForTaskbarItem extends TightGrid { |
10 |
|
- |
private Image mImage; |
11 |
|
- |
|
12 |
|
- |
public BackgroundCellForTaskbarItem( Image pImage ) { |
13 |
|
- |
super( 1, 1 ); |
14 |
|
- |
mImage = pImage; |
15 |
|
- |
setWidget( 0, 0, pImage ); |
16 |
|
- |
DOM.setElementAttribute( getElement(), "width", "22" ); |
17 |
|
- |
DOM.setElementAttribute( getElement(), "height", "22" ); |
18 |
|
- |
addStyleName( "TaskbarItemBgCell" ); |
19 |
|
- |
} |
20 |
|
- |
|
21 |
|
- |
public void setActiveStyle() { |
22 |
|
- |
removeStyleName( "TaskbarItemBgCell-Regular" ); |
23 |
|
- |
addStyleName( "TaskbarItemBgCell-Active" ); |
24 |
|
- |
} |
25 |
|
- |
|
26 |
|
- |
public void setRegularStyle() { |
27 |
|
- |
removeStyleName( "TaskbarItemBgCell-Active" ); |
28 |
|
- |
addStyleName( "TaskbarItemBgCell-Regular" ); |
29 |
|
- |
} |
30 |
|
- |
|
31 |
|
- |
public Image getImage() { |
32 |
|
- |
return mImage; |
33 |
|
- |
} |
34 |
|
- |
} |
35 |
|
- |
|
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.client.taskbar; |
|
3 |
+ |
|
|
4 |
+ |
import org.litesoft.GWT.client.widgets.*; |
|
5 |
+ |
|
|
6 |
+ |
import com.google.gwt.user.client.*; |
|
7 |
+ |
import com.google.gwt.user.client.ui.*; |
|
8 |
+ |
|
|
9 |
+ |
public class BackgroundCellForTaskbarItem extends TightGrid { |
|
10 |
+ |
private Image mImage; |
|
11 |
+ |
|
|
12 |
+ |
public BackgroundCellForTaskbarItem( Image pImage ) { |
|
13 |
+ |
super( 1, 1 ); |
|
14 |
+ |
mImage = pImage; |
|
15 |
+ |
setWidget( 0, 0, pImage ); |
|
16 |
+ |
DOM.setElementAttribute( getElement(), "width", "22" ); |
|
17 |
+ |
DOM.setElementAttribute( getElement(), "height", "22" ); |
|
18 |
+ |
addStyleName( "TaskbarItemBgCell" ); |
|
19 |
+ |
} |
|
20 |
+ |
|
|
21 |
+ |
public void setActiveStyle() { |
|
22 |
+ |
removeStyleName( "TaskbarItemBgCell-Regular" ); |
|
23 |
+ |
addStyleName( "TaskbarItemBgCell-Active" ); |
|
24 |
+ |
} |
|
25 |
+ |
|
|
26 |
+ |
public void setRegularStyle() { |
|
27 |
+ |
removeStyleName( "TaskbarItemBgCell-Active" ); |
|
28 |
+ |
addStyleName( "TaskbarItemBgCell-Regular" ); |
|
29 |
+ |
} |
|
30 |
+ |
|
|
31 |
+ |
public Image getImage() { |
|
32 |
+ |
return mImage; |
|
33 |
+ |
} |
|
34 |
+ |
} |