litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/logging/BrowserAsLogSyncImageButton.java
|
@@ -1,23 +1,23 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.client.logging; |
3 |
|
- |
|
4 |
|
- |
import org.litesoft.GWT.client.*; |
5 |
|
- |
import org.litesoft.GWT.client.widgets.*; |
6 |
|
- |
|
7 |
|
- |
import com.google.gwt.user.client.ui.*; |
8 |
|
- |
|
9 |
|
- |
public class BrowserAsLogSyncImageButton extends OurImage { |
10 |
|
- |
public BrowserAsLogSyncImageButton( String pURL ) { |
11 |
|
- |
super( pURL ); |
12 |
|
- |
addClickListener( new MyClickListener() ); |
13 |
|
- |
} |
14 |
|
- |
|
15 |
|
- |
private static class MyClickListener implements ClickListener { |
16 |
|
- |
@Override |
17 |
|
- |
public void onClick( Widget sender ) { |
18 |
|
- |
if ( UtilsGwt.wasAltKeyDownOnCurrentEvent() ) { |
19 |
|
- |
BrowserAsLogSyncFactory.open(); |
20 |
|
- |
} |
21 |
|
- |
} |
22 |
|
- |
} |
23 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.client.logging; |
|
3 |
+ |
|
|
4 |
+ |
import org.litesoft.GWT.client.*; |
|
5 |
+ |
import org.litesoft.GWT.client.widgets.*; |
|
6 |
+ |
|
|
7 |
+ |
import com.google.gwt.user.client.ui.*; |
|
8 |
+ |
|
|
9 |
+ |
public class BrowserAsLogSyncImageButton extends OurImage { |
|
10 |
+ |
public BrowserAsLogSyncImageButton( String pURL ) { |
|
11 |
+ |
super( pURL ); |
|
12 |
+ |
addClickListener( new MyClickListener() ); |
|
13 |
+ |
} |
|
14 |
+ |
|
|
15 |
+ |
private static class MyClickListener implements ClickListener { |
|
16 |
+ |
@Override |
|
17 |
+ |
public void onClick( Widget sender ) { |
|
18 |
+ |
if ( UtilsGwt.wasAltKeyDownOnCurrentEvent() ) { |
|
19 |
+ |
BrowserAsLogSyncFactory.open(); |
|
20 |
+ |
} |
|
21 |
+ |
} |
|
22 |
+ |
} |
|
23 |
+ |
} |