Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/WindowCloseButton.java

Diff revisions: vs.
  @@ -1,22 +1,22 @@
1 - // This Source Code is in the Public Domain per: http://unlicense.org
2 - package org.litesoft.GWT.client.widgets;
3 -
4 - import org.litesoft.GWT.client.widgets.nonpublic.*;
5 -
6 - import com.google.gwt.user.client.*;
7 - import com.google.gwt.user.client.ui.*;
8 -
9 - public class WindowCloseButton extends BGImage16x16Button {
10 - private static final String URL_IMAGE_BASE = "common/images/imageButtons/close/closeX";
11 -
12 - public static void prefetchImages() {
13 - for ( int i = 0; i < CssBackgroundImageButtonHelper.ALL_STATES.length; i++ ) {
14 - CssBackgroundImageButtonHelper.State zState = CssBackgroundImageButtonHelper.ALL_STATES[i];
15 - Image.prefetch( zState.getURL( URL_IMAGE_BASE ) );
16 - }
17 - }
18 -
19 - public WindowCloseButton( Command pListener ) {
20 - super( "CloseX", "Close", "", new ClickHandlerCommandAdaptor( pListener ) );
21 - }
22 - }
1 + // This Source Code is in the Public Domain per: http://unlicense.org
2 + package org.litesoft.GWT.client.widgets;
3 +
4 + import org.litesoft.GWT.client.widgets.nonpublic.*;
5 +
6 + import com.google.gwt.user.client.*;
7 + import com.google.gwt.user.client.ui.*;
8 +
9 + public class WindowCloseButton extends BGImage16x16Button {
10 + private static final String URL_IMAGE_BASE = "common/images/imageButtons/close/closeX";
11 +
12 + public static void prefetchImages() {
13 + for ( int i = 0; i < CssBackgroundImageButtonHelper.ALL_STATES.length; i++ ) {
14 + CssBackgroundImageButtonHelper.State zState = CssBackgroundImageButtonHelper.ALL_STATES[i];
15 + Image.prefetch( zState.getURL( URL_IMAGE_BASE ) );
16 + }
17 + }
18 +
19 + public WindowCloseButton( Command pListener ) {
20 + super( "CloseX", "Close", "", new ClickHandlerCommandAdaptor( pListener ) );
21 + }
22 + }