Revision 6e6e914e src/gr/ebs/gss/client/AboutDialog.java
b/src/gr/ebs/gss/client/AboutDialog.java | ||
---|---|---|
1 | 1 |
/* |
2 |
* Copyright 2007, 2008, 2009 Electronic Business Systems Ltd. This file is part |
|
3 |
* of GSS. GSS is free software: you can redistribute it and/or modify it under |
|
4 |
* the terms of the GNU General Public License as published by the Free Software |
|
5 |
* Foundation, either version 3 of the License, or (at your option) any later |
|
6 |
* version. GSS is distributed in the hope that it will be useful, but WITHOUT |
|
7 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
|
8 |
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
|
9 |
* details. You should have received a copy of the GNU General Public License |
|
10 |
* along with GSS. If not, see <http://www.gnu.org/licenses/>. |
|
2 |
* Copyright 2007, 2008, 2009 Electronic Business Systems Ltd. |
|
3 |
* |
|
4 |
* This file is part of GSS. |
|
5 |
* |
|
6 |
* GSS is free software: you can redistribute it and/or modify |
|
7 |
* it under the terms of the GNU General Public License as published by |
|
8 |
* the Free Software Foundation, either version 3 of the License, or |
|
9 |
* (at your option) any later version. |
|
10 |
* |
|
11 |
* GSS is distributed in the hope that it will be useful, |
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
14 |
* GNU General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with GSS. If not, see <http://www.gnu.org/licenses/>. |
|
11 | 18 |
*/ |
12 | 19 |
package gr.ebs.gss.client; |
13 | 20 |
|
... | ... | |
37 | 44 |
String service = conf.serviceName(); |
38 | 45 |
setText("About " + service); |
39 | 46 |
setAnimationEnabled(true); |
40 |
// Create a VerticalPanel to contain the 'about' label and the 'OK' |
|
41 |
// button. |
|
47 |
// A VerticalPanel that contains the 'about' label and the 'OK' button. |
|
42 | 48 |
final VerticalPanel outer = new VerticalPanel(); |
43 | 49 |
|
44 |
// Create the 'about' text and set a style name so we can style it with |
|
45 |
// CSS. |
|
46 |
final HTML text = new HTML("This is the Web client for the " + service + " service. You " + "can use it to store, retrieve and share files in the " + service + " server " + "grid. <p>Design and implementation: <a href='http://www.ebs.gr' target='about'>EBS</a></p>"); |
|
50 |
// Create the 'about' text and set the style. |
|
51 |
final HTML text = new HTML("This is the Web client for the " + service + |
|
52 |
" service. You can use it to store, retrieve and share " + |
|
53 |
"files in the " + service + " server grid. <p>Design and" + |
|
54 |
" implementation: <a href='http://www.ebs.gr' " + |
|
55 |
"target='about'>EBS</a></p>"); |
|
47 | 56 |
text.setStyleName("gss-AboutText"); |
48 | 57 |
outer.add(text); |
49 | 58 |
|
... | ... | |
65 | 74 |
@Override |
66 | 75 |
protected void onPreviewNativeEvent(NativePreviewEvent preview) { |
67 | 76 |
super.onPreviewNativeEvent(preview); |
68 |
|
|
69 | 77 |
NativeEvent evt = preview.getNativeEvent(); |
70 | 78 |
if (evt.getType().equals("keydown")) |
71 |
// Use the popup's key preview hooks to close the dialog when either
|
|
72 |
// enter or escape is pressed. |
|
79 |
// Use the popup's key preview hooks to close the dialog when |
|
80 |
// either enter or escape is pressed.
|
|
73 | 81 |
switch (evt.getKeyCode()) { |
74 | 82 |
case KeyCodes.KEY_ENTER: |
75 | 83 |
case KeyCodes.KEY_ESCAPE: |
Also available in: Unified diff