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