01: /*
02: * ChainBuilder ESB
03: * Visual Enterprise Integration
04: *
05: * Copyright (C) 2008 Bostech Corporation
06: *
07: * This program is free software; you can redistribute it and/or modify
08: * it under the terms of the GNU General Public License as published by
09: * the Free Software Foundation; either version 2 of the License, or
10: * (at your option) any later version.
11: *
12: * This program is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * General Public License for more details.
16: *
17: * You should have received a copy of the GNU General Public License
18: * along with this program; if not, write to the Free Software
19: * Foundation, Inc.,59 Temple Place, Suite 330, Boston, MA 02111-1307
20: * USA
21: *
22: *
23: * $Id$
24: */
25:
26: package com.bostechcorp.cbesb.console.client.about;
27:
28: import com.bostechcorp.cbesb.console.client.Admin;
29: import com.bostechcorp.cbesb.console.i18n.ConsoleMessages;
30: import com.google.gwt.core.client.GWT;
31: import com.google.gwt.user.client.ui.HasHorizontalAlignment;
32: import com.google.gwt.user.client.ui.HasVerticalAlignment;
33: import com.google.gwt.user.client.ui.Label;
34: import com.google.gwt.user.client.ui.VerticalPanel;
35:
36: /**
37: * @author rui.hou
38: *
39: */
40: public class AboutHelp extends Admin {
41:
42: public AboutHelp() {
43: createWidget();
44: }
45:
46: public void onHide() {
47: }
48:
49: public void onShow() {
50: }
51:
52: public void refresh() {
53: }
54:
55: protected void createWidget() {
56: final VerticalPanel verticalPanel = new VerticalPanel();
57: initWidget(verticalPanel);
58: verticalPanel.setSize("100%", "100%");
59:
60: final Label welcomeToChainbuilderLabel = new Label(
61: ((ConsoleMessages) GWT.create(ConsoleMessages.class))
62: .welcomeESBAbout1());
63: verticalPanel.add(welcomeToChainbuilderLabel);
64: verticalPanel.setCellWidth(welcomeToChainbuilderLabel, "100%");
65: verticalPanel.setCellHorizontalAlignment(
66: welcomeToChainbuilderLabel,
67: HasHorizontalAlignment.ALIGN_CENTER);
68: verticalPanel.setCellVerticalAlignment(
69: welcomeToChainbuilderLabel,
70: HasVerticalAlignment.ALIGN_TOP);
71: verticalPanel.setCellHeight(welcomeToChainbuilderLabel, "3 em");
72: welcomeToChainbuilderLabel
73: .setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
74:
75: final Label fellFreeToLabel = new Label(((ConsoleMessages) GWT
76: .create(ConsoleMessages.class)).welcomeESBAbout2());
77: verticalPanel.add(fellFreeToLabel);
78: verticalPanel.setCellHorizontalAlignment(fellFreeToLabel,
79: HasHorizontalAlignment.ALIGN_CENTER);
80: verticalPanel.setCellWidth(fellFreeToLabel, "100%");
81: verticalPanel.setCellVerticalAlignment(fellFreeToLabel,
82: HasVerticalAlignment.ALIGN_TOP);
83:
84: final Label label = new Label(((ConsoleMessages) GWT
85: .create(ConsoleMessages.class)).welcomeESBAbout3());
86: verticalPanel.add(label);
87: verticalPanel.setCellWidth(label, "100%");
88: verticalPanel.setCellVerticalAlignment(label,
89: HasVerticalAlignment.ALIGN_TOP);
90: }
91:
92: }
|