[overlord-commits] Overlord SVN: r954 - in bpm-console/trunk/gui/war: src/main/java/org/jboss/bpm/console/client and 1 other directories.
overlord-commits at lists.jboss.org
overlord-commits at lists.jboss.org
Fri Feb 5 10:49:33 EST 2010
Author: heiko.braun at jboss.com
Date: 2010-02-05 10:49:32 -0500 (Fri, 05 Feb 2010)
New Revision: 954
Removed:
bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/Header.java
Modified:
bpm-console/trunk/gui/war/pom.xml
bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/LoginView.java
bpm-console/trunk/gui/war/war/app.html
Log:
Disable login view animation
Modified: bpm-console/trunk/gui/war/pom.xml
===================================================================
--- bpm-console/trunk/gui/war/pom.xml 2010-02-05 14:31:54 UTC (rev 953)
+++ bpm-console/trunk/gui/war/pom.xml 2010-02-05 15:49:32 UTC (rev 954)
@@ -35,12 +35,14 @@
<artifactId>errai-widgets</artifactId>
<version>${errai.version}</version>
<classifier>sources</classifier>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.errai</groupId>
<artifactId>errai-workspaces</artifactId>
<version>${errai.version}</version>
+ <scope>provided</scope>
</dependency>
<dependency>
@@ -61,6 +63,7 @@
<groupId>org.jboss.bpm</groupId>
<artifactId>report-shared</artifactId>
<classifier>sources</classifier>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.bpm</groupId>
@@ -111,26 +114,31 @@
<dependency>
<groupId>com.googlecode.gwtmosaic</groupId>
<artifactId>gwt-mosaic</artifactId>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>com.googlecode.gwtmosaic</groupId>
<artifactId>gwt-beans-binding</artifactId>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>com.googlecode.gwtmosaic</groupId>
<artifactId>gwt-dnd</artifactId>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>com.googlecode.gwtmosaic</groupId>
<artifactId>gwt-incubator</artifactId>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>com.googlecode.gwtmosaic</groupId>
<artifactId>gwtx</artifactId>
+ <scope>provided</scope>
</dependency>
<dependency>
Deleted: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/Header.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/Header.java 2010-02-05 14:31:54 UTC (rev 953)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/Header.java 2010-02-05 15:49:32 UTC (rev 954)
@@ -1,154 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.bpm.console.client;
-
-import com.google.gwt.core.client.GWT;
-import com.google.gwt.user.client.Timer;
-import com.google.gwt.user.client.ui.*;
-import com.mvc4g.client.Controller;
-import com.mvc4g.client.ViewInterface;
-import org.gwt.mosaic.ui.client.LayoutPopupPanel;
-import org.gwt.mosaic.ui.client.layout.BoxLayout;
-import org.gwt.mosaic.ui.client.layout.BoxLayoutData;
-import org.gwt.mosaic.ui.client.layout.MosaicPanel;
-import org.jboss.bpm.console.client.icons.ConsoleIconBundle;
-
-import java.util.List;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
-public class Header extends MosaicPanel implements ViewInterface
-{
- public final static String ID = Header.class.getName();
-
- private ApplicationContext appContext;
- private Controller controller;
- private Image loadingImage;
-
- // avoid flickering image
- final Timer turnOffLoading = new Timer() {
- public void run() {
- loadingImage.setVisible(false);
- }
- };
-
- public Header(ApplicationContext appContext, String username, List<String> roles)
- {
- super(new BoxLayout(BoxLayout.Orientation.HORIZONTAL));
- this.setStyleName("bpm-header");
-
- this.appContext = appContext;
-
- createInfoPanel();
- }
-
- private void createInfoPanel()
- {
-
- // ----------- logo panel
- MosaicPanel logoPanel = new MosaicPanel(new BoxLayout());
- logoPanel.setStyleName("bpm-header-left");
-
- Image logo = new Image(appContext.getConfig().getLogo());
- logo.setHeight("50");
- logoPanel.add(logo);
-
- // ----------- info panel
- HorizontalPanel infoPanel = new HorizontalPanel();
- infoPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
- infoPanel.setSpacing(5);
- infoPanel.setStyleName("bpm-header-right");
-
- MosaicPanel loadingImageContainer = new MosaicPanel();
- loadingImageContainer.setStyleName("bpm-loading-image");
-
- ConsoleIconBundle icons = GWT.create(ConsoleIconBundle.class);
- loadingImage = new Image("images/ajax-loader.gif");
- loadingImageContainer.add(loadingImage);
-
- setLoading(false);
-
- // account info
- Image img = new Image(icons.userIcon());
- img.addClickListener(
- new ClickListener()
- {
-
- public void onClick(Widget widget)
- {
- StringBuffer sb = new StringBuffer("<h3>User information</h3>");
- sb.append("- User: ").append(appContext.getAuthentication().getUsername()).append("<br/>");
- sb.append("- Logged in since: ").append(appContext.getAuthentication().getLoggedInSince()).append("<br/>");
- sb.append("- SID: ").append(appContext.getAuthentication().getSid()).append("<br/>");
- sb.append("- Roles: ").append(appContext.getAuthentication().getRolesAssigned()).append("<br/>");
-
-
- final LayoutPopupPanel popup = new LayoutPopupPanel(true);
- popup.setPopupPosition(
- widget.getAbsoluteLeft()-120,
- widget.getAbsoluteTop()+20
- );
- popup.setAnimationEnabled(true);
- popup.setSize("240px", "130px");
- HTML html = new HTML(sb.toString());
- html.setStyleName("bpm-user-info-popup");
- popup.add(html);
- popup.show();
- }
- }
- );
- HTML html = new HTML(appContext.getAuthentication().getUsername());
-
- Button btn = new Button("Logout", new ClickListener()
- {
-
- public void onClick(Widget widget)
- {
- appContext.getAuthentication().logoutAndReload();
- }
- }
- );
-
- infoPanel.add(loadingImageContainer);
- infoPanel.add(img);
- infoPanel.add(html);
- infoPanel.add(btn);
-
- this.add(logoPanel, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
- this.add(infoPanel, new BoxLayoutData(177, 50));
- }
-
-
- public void setController(Controller controller)
- {
- this.controller = controller;
- }
-
- public void setLoading(boolean doDisplay)
- {
- if(doDisplay)
- loadingImage.setVisible(doDisplay);
- else
- turnOffLoading.schedule(1000);
- }
-}
Modified: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/LoginView.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/LoginView.java 2010-02-05 14:31:54 UTC (rev 953)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/LoginView.java 2010-02-05 15:49:32 UTC (rev 954)
@@ -233,7 +233,7 @@
*/
private void createLayoutWindowPanel() {
window = new WindowPanel(config.getProfileName(), false);
- window.setAnimationEnabled(true);
+ window.setAnimationEnabled(false);
MosaicPanel panel = new MosaicPanel();
Modified: bpm-console/trunk/gui/war/war/app.html
===================================================================
--- bpm-console/trunk/gui/war/war/app.html 2010-02-05 14:31:54 UTC (rev 953)
+++ bpm-console/trunk/gui/war/war/app.html 2010-02-05 15:49:32 UTC (rev 954)
@@ -56,5 +56,7 @@
</table>
</div>
+<iframe src="javascript:''" id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>
+
</body>
</html>
More information about the overlord-commits
mailing list