01: /**
02: * ChainBuilder ESB
03: * Visual Enterprise Integration
04: *
05: * Copyright (C) 2006 Bostech Corporation
06: *
07: * This program is free software; you can redistribute it and/or modify it
08: * under the terms of the GNU General Public License as published by the
09: * Free Software Foundation; either version 2 of the License, or (at your option)
10: * 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 MERCHANTABILITY
14: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15: * for more details.
16: *
17: * You should have received a copy of the GNU General Public License along with
18: * this program; if not, write to the Free Software Foundation, Inc.,
19: * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20: *
21: * SetupPanel
22: * LPS
23: * Nov 3, 2007
24: */package com.bostechcorp.cbesb.console.client.endpoint;
25:
26: import com.bostechcorp.cbesb.console.client.Admin;
27: import com.bostechcorp.cbesb.console.i18n.ConsoleMessages;
28: import com.google.gwt.core.client.GWT;
29: import com.google.gwt.user.client.ui.HasHorizontalAlignment;
30: import com.google.gwt.user.client.ui.HasVerticalAlignment;
31: import com.google.gwt.user.client.ui.Label;
32: import com.google.gwt.user.client.ui.VerticalPanel;
33:
34: public class EndpointHelp extends Admin {
35:
36: /**
37: *
38: */
39: public EndpointHelp() {
40: createWidget();
41: }
42:
43: /* (non-Javadoc)
44: * @see com.bostechcorp.cbesb.console.client.Admin#onHide()
45: */
46: public void onHide() {
47: }
48:
49: /* (non-Javadoc)
50: * @see com.bostechcorp.cbesb.console.client.Admin#onShow()
51: */
52: public void onShow() {
53: }
54:
55: /* (non-Javadoc)
56: * @see com.bostechcorp.cbesb.console.client.Admin#refresh()
57: */
58: public void refresh() {
59: }
60:
61: protected void createWidget() {
62: final VerticalPanel verticalPanel = new VerticalPanel();
63: initWidget(verticalPanel);
64: verticalPanel.setSize("100%", "100%");
65:
66: final Label welcomeToChainbulderLabel = new Label(
67: ((ConsoleMessages) GWT.create(ConsoleMessages.class))
68: .welcomeESBEndpoints1());
69: verticalPanel.add(welcomeToChainbulderLabel);
70: verticalPanel.setCellWidth(welcomeToChainbulderLabel, "100%");
71: verticalPanel.setCellHorizontalAlignment(
72: welcomeToChainbulderLabel,
73: HasHorizontalAlignment.ALIGN_CENTER);
74: verticalPanel.setCellVerticalAlignment(
75: welcomeToChainbulderLabel,
76: HasVerticalAlignment.ALIGN_TOP);
77: verticalPanel.setCellHeight(welcomeToChainbulderLabel, "3 em");
78: welcomeToChainbulderLabel
79: .setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
80:
81: final Label fellFreeToLabel = new Label(((ConsoleMessages) GWT
82: .create(ConsoleMessages.class)).welcomeESBEndpoints2());
83: verticalPanel.add(fellFreeToLabel);
84: verticalPanel.setCellHorizontalAlignment(fellFreeToLabel,
85: HasHorizontalAlignment.ALIGN_CENTER);
86: verticalPanel.setCellWidth(fellFreeToLabel, "100%");
87: verticalPanel.setCellVerticalAlignment(fellFreeToLabel,
88: HasVerticalAlignment.ALIGN_TOP);
89:
90: final Label label = new Label(((ConsoleMessages) GWT
91: .create(ConsoleMessages.class)).welcomeESBEndpoints3());
92: verticalPanel.add(label);
93: verticalPanel.setCellWidth(label, "100%");
94: verticalPanel.setCellVerticalAlignment(label,
95: HasVerticalAlignment.ALIGN_TOP);
96: }
97: }
|