[jbpm-commits] JBoss JBPM SVN: r1934 - in jbpm3/trunk/modules/gwt-console/war/src/main: java/org/jboss/bpm/console/client/model and 4 other directories.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Aug 19 11:56:55 EDT 2008
Author: heiko.braun at jboss.com
Date: 2008-08-19 11:56:55 -0400 (Tue, 19 Aug 2008)
New Revision: 1934
Added:
jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/HelpDAO.java
jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/MockHelpDAO.java
jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/images/Jbpm_logo.png
jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/images/Jbpm_logo_small.png
jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/images/icons/13.png
Modified:
jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/HeaderPanel.java
jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/DAOFactory.java
jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessDefinitionListEditor.java
jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/console.css
Log:
Added Help system callback. Some more eyecandy
Modified: jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/HeaderPanel.java
===================================================================
--- jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/HeaderPanel.java 2008-08-19 15:25:17 UTC (rev 1933)
+++ jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/HeaderPanel.java 2008-08-19 15:56:55 UTC (rev 1934)
@@ -21,9 +21,12 @@
*/
package org.jboss.bpm.console.client;
-import com.google.gwt.user.client.ui.Label;
+import com.google.gwt.user.client.ui.Image;
import com.gwtext.client.widgets.Panel;
-import com.gwtext.client.widgets.layout.VerticalLayout;
+import com.gwtext.client.widgets.layout.*;
+import com.gwtext.client.widgets.form.TextField;
+import com.gwtext.client.widgets.form.FormPanel;
+import com.gwtext.client.core.Position;
/**
* @author Heiko.Braun <heiko.braun at jboss.com>
@@ -41,14 +44,54 @@
this.setId(ID);
- VerticalLayout verticalLayout = new VerticalLayout();
- this.setLayout(verticalLayout);
+ HorizontalLayout layout = new HorizontalLayout(20);
+ this.setLayout(layout);
this.setHeight(50);
- this.setBodyStyle("background-color:FFFFFF");
+ this.setBaseCls("bpm-header");
- this.add( new Label("GWT Console"));
- //this.add(new MainMenu(view));
+ // --
+ /* FormPanel formPanel = new FormPanel();
+ formPanel.setUrl("");
+ formPanel.setLabelAlign(Position.TOP);
+ formPanel.setWidth(100);
+
+ // ---
+
+ Panel topPanel = new Panel();
+ topPanel.setLayout(new ColumnLayout());
+
+ Panel columnOnePanel = new Panel();
+ columnOnePanel.setLayout(new FormLayout());
+
+ TextField name = new TextField("Username", "username", 230);
+ name.setAllowBlank(false);
+
+ columnOnePanel.add(name, new AnchorLayoutData("95%"));
+
+ // ---
+
+ Panel columnTwoPanel = new Panel();
+ columnTwoPanel.setLayout(new FormLayout());
+
+ TextField pass = new TextField("Password", "password", 230);
+ pass.setAllowBlank(false);
+ pass.setPassword(true);
+
+ columnTwoPanel.add(pass, new AnchorLayoutData("95%"));
+
+ // ---
+
+ topPanel.add(name, new ColumnLayoutData(.5));
+ topPanel.add(pass, new ColumnLayoutData(.5));
+
+ formPanel.add(topPanel);
+
+ // ---
+
+ final Image image = new Image("images/Jbpm_logo_small.png");
+ this.add(formPanel); */
+
}
}
Modified: jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/DAOFactory.java
===================================================================
--- jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/DAOFactory.java 2008-08-19 15:25:17 UTC (rev 1933)
+++ jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/DAOFactory.java 2008-08-19 15:56:55 UTC (rev 1934)
@@ -35,4 +35,9 @@
{
return new MockProcessInstanceDAO();
}
+
+ public static HelpDAO getHelpDAO()
+ {
+ return new MockHelpDAO();
+ }
}
Added: jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/HelpDAO.java
===================================================================
--- jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/HelpDAO.java (rev 0)
+++ jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/HelpDAO.java 2008-08-19 15:56:55 UTC (rev 1934)
@@ -0,0 +1,32 @@
+/*
+ * 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.model;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public interface HelpDAO
+{
+ public final static int REF_PROCESS_DEFINITIONS = 100;
+
+ String getHelpByReference(int ref);
+}
Property changes on: jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/HelpDAO.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/MockHelpDAO.java
===================================================================
--- jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/MockHelpDAO.java (rev 0)
+++ jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/MockHelpDAO.java 2008-08-19 15:56:55 UTC (rev 1934)
@@ -0,0 +1,51 @@
+/*
+ * 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.model;
+
+import java.util.Map;
+import java.util.HashMap;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public class MockHelpDAO implements HelpDAO
+{
+
+ private static Map ref2text = new HashMap();
+
+ static {
+ ref2text.put(
+ new Integer(HelpDAO.REF_PROCESS_DEFINITIONS),
+ "Process definitions are the base classs for any process instance. " +
+ "They act as an execution template for BPM engine"
+ );
+ }
+
+ public String getHelpByReference(int ref)
+ {
+ String text = (String)ref2text.get(new Integer(ref));
+ if(text!=null)
+ return text;
+ else
+ return "No help entry for ref: " + ref;
+ }
+}
Property changes on: jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/MockHelpDAO.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified: jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessDefinitionListEditor.java
===================================================================
--- jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessDefinitionListEditor.java 2008-08-19 15:25:17 UTC (rev 1933)
+++ jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessDefinitionListEditor.java 2008-08-19 15:56:55 UTC (rev 1934)
@@ -30,6 +30,8 @@
import com.gwtext.client.core.EventObject;
import com.google.gwt.user.client.ui.HTML;
import org.jboss.bpm.console.client.ConsoleView;
+import org.jboss.bpm.console.client.model.DAOFactory;
+import org.jboss.bpm.console.client.model.HelpDAO;
import org.jboss.bpm.console.client.widgets.EditorView;
import org.jboss.bpm.console.client.widgets.PieChart;
import org.jboss.bpm.console.client.widgets.HelpPanel;
@@ -118,7 +120,7 @@
Toolbar bottomToolbar = new Toolbar();
bottomToolbar.addFill();
- bottomToolbar.addButton(
+ bottomToolbar.addButton(
new ToolbarButton("More metrics", new ButtonListenerAdapter() {
public void onClick(Button button, EventObject e)
{
@@ -132,8 +134,7 @@
// ----------------------------------
HelpPanel help = new HelpPanel(200, 180, "About process definitions");
- help.setContent("Process definitions are the base classs for any process instance. " +
- "They act as an execution template for BPM engine");
+ help.setContent( DAOFactory.getHelpDAO().getHelpByReference(HelpDAO.REF_PROCESS_DEFINITIONS));
Panel leftPanel = new Panel();
Modified: jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/console.css
===================================================================
--- jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/console.css 2008-08-19 15:25:17 UTC (rev 1933)
+++ jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/console.css 2008-08-19 15:56:55 UTC (rev 1934)
@@ -6,7 +6,9 @@
.bpm-header {
height: 50px;
width: 100%;
- border: 1px solid;
+ background-color:#ffffff;
+ background-image: url( images/Jbpm_logo_small.png);
+ background-repeat:no-repeat;
}
.bpm-menu {
@@ -81,3 +83,7 @@
background-image: url( images/icons/36.png)
}
+.bpm-switch-context-icon {
+ background-image: url( images/icons/13.png)
+}
+
Added: jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/images/Jbpm_logo.png
===================================================================
(Binary files differ)
Property changes on: jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/images/Jbpm_logo.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/images/Jbpm_logo_small.png
===================================================================
(Binary files differ)
Property changes on: jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/images/Jbpm_logo_small.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/images/icons/13.png
===================================================================
(Binary files differ)
Property changes on: jbpm3/trunk/modules/gwt-console/war/src/main/resources/org/jboss/bpm/console/public/images/icons/13.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
More information about the jbpm-commits
mailing list