001: /**
002: * ChainBuilder ESB
003: * Visual Enterprise Integration
004: *
005: * Copyright (C) 2006 Bostech Corporation
006: *
007: * This program is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU General Public License as published by the
009: * Free Software Foundation; either version 2 of the License, or (at your option)
010: * any later version.
011: *
012: * This program is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
014: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
015: * for more details.
016: *
017: * You should have received a copy of the GNU General Public License along with
018: * this program; if not, write to the Free Software Foundation, Inc.,
019: * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
020: *
021: * UserLoginStartupPanel
022: * LPS
023: * Oct 31, 2007
024: */package com.bostechcorp.cbesb.console.client.userlogin;
025:
026: import com.bostechcorp.cbesb.console.client.Admin;
027: import com.bostechcorp.cbesb.console.client.Console;
028: import com.bostechcorp.cbesb.console.i18n.ConsoleMessages;
029: import com.google.gwt.core.client.GWT;
030: import com.google.gwt.user.client.ui.HasHorizontalAlignment;
031: import com.google.gwt.user.client.ui.HasVerticalAlignment;
032: import com.google.gwt.user.client.ui.Label;
033: import com.google.gwt.user.client.ui.VerticalPanel;
034:
035: public class UserLoginStartupPanel extends Admin {
036:
037: public UserLoginStartupPanel() {
038: initUi();
039: }
040:
041: private void initUi() {
042: final VerticalPanel verticalPanel = new VerticalPanel();
043: initWidget(verticalPanel);
044: verticalPanel.setSize("100%", "100%");
045:
046: Label welcomeToChainbuilderLabel = null;
047:
048: if (Console.getInstance().isAlertMonitor())
049: welcomeToChainbuilderLabel = new Label(
050: ((ConsoleMessages) GWT
051: .create(ConsoleMessages.class))
052: .welcomeESBMain1_comm());
053: else
054: welcomeToChainbuilderLabel = new Label(
055: ((ConsoleMessages) GWT
056: .create(ConsoleMessages.class))
057: .welcomeESBMain1());
058:
059: verticalPanel.add(welcomeToChainbuilderLabel);
060: verticalPanel.setCellWidth(welcomeToChainbuilderLabel, "100%");
061: verticalPanel.setCellHorizontalAlignment(
062: welcomeToChainbuilderLabel,
063: HasHorizontalAlignment.ALIGN_CENTER);
064: verticalPanel.setCellVerticalAlignment(
065: welcomeToChainbuilderLabel,
066: HasVerticalAlignment.ALIGN_TOP);
067: verticalPanel.setCellHeight(welcomeToChainbuilderLabel, "3 em");
068: welcomeToChainbuilderLabel
069: .setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
070:
071: Label fellFreeToLabel = null;
072:
073: if (Console.getInstance().isAlertMonitor())
074: fellFreeToLabel = new Label(((ConsoleMessages) GWT
075: .create(ConsoleMessages.class))
076: .welcomeESBMain2_comm());
077: else
078: fellFreeToLabel = new Label(((ConsoleMessages) GWT
079: .create(ConsoleMessages.class)).welcomeESBMain2());
080:
081: verticalPanel.add(fellFreeToLabel);
082: verticalPanel.setCellHorizontalAlignment(fellFreeToLabel,
083: HasHorizontalAlignment.ALIGN_CENTER);
084: verticalPanel.setCellWidth(fellFreeToLabel, "100%");
085: verticalPanel.setCellVerticalAlignment(fellFreeToLabel,
086: HasVerticalAlignment.ALIGN_TOP);
087:
088: Label label = null;
089:
090: if (Console.getInstance().isAlertMonitor())
091: label = new Label(((ConsoleMessages) GWT
092: .create(ConsoleMessages.class))
093: .welcomeESBMain3_comm());
094: else
095: label = new Label(((ConsoleMessages) GWT
096: .create(ConsoleMessages.class)).welcomeESBMain3());
097:
098: verticalPanel.add(label);
099: verticalPanel.setCellWidth(label, "100%");
100: verticalPanel.setCellVerticalAlignment(label,
101: HasVerticalAlignment.ALIGN_TOP);
102: }
103:
104: public void onHide() {
105: }
106:
107: public void onShow() {
108: }
109:
110: public void refresh() {
111: }
112: }
|