[jbpm-commits] JBoss JBPM SVN: r1816 - in jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client: model and 2 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Aug 4 06:34:27 EDT 2008


Author: heiko.braun at jboss.com
Date: 2008-08-04 06:34:26 -0400 (Mon, 04 Aug 2008)
New Revision: 1816

Added:
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/EditorPanel.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/DAOFactory.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/MockProcessDefinitionDAO.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/MockProcessInstanceDAO.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessDefinition.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessDefinitionDAO.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessInstance.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessInstanceDAO.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessDefinitionList.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessInstanceEditor.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessInstanceList.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessListEditor.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/widgets/EditorView.java
Removed:
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/ProcessListView.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/ProcessWorkspace.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/TaskWorkspace.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/Workspace.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/WorkspaceManager.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/MockProcessDefDAO.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ObjectFactory.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessDefDAO.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/widgets/ListView.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/widgets/LoadingPanel.java
Modified:
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/ConsoleView.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/HeaderPanel.java
   jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/MainMenu.java
Log:
Switch to tab based layout and main menu

Modified: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/ConsoleView.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/ConsoleView.java	2008-08-04 09:45:46 UTC (rev 1815)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/ConsoleView.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -24,12 +24,15 @@
 import com.google.gwt.user.client.ui.Composite;
 import com.google.gwt.user.client.ui.HTML;
 import com.gwtext.client.core.RegionPosition;
+import com.gwtext.client.core.Margins;
 import com.gwtext.client.widgets.Panel;
 import com.gwtext.client.widgets.Viewport;
 import com.gwtext.client.widgets.layout.BorderLayout;
 import com.gwtext.client.widgets.layout.BorderLayoutData;
 import com.gwtext.client.widgets.layout.FitLayout;
-import org.jboss.bpm.console.client.model.ObjectFactory;
+import org.jboss.bpm.console.client.model.DAOFactory;
+import org.jboss.bpm.console.client.process.ProcessListEditor;
+import org.jboss.bpm.console.client.widgets.EditorView;
 
 /**
  * @author Heiko.Braun <heiko.braun at jboss.com>
@@ -39,10 +42,11 @@
    private Panel mainPanel = new Panel();
    private Panel borderPanel = new Panel();
 
-   private HTML status = new HTML();
-   private ObjectFactory objectFactory = new ObjectFactory();
+   private HTML status = new HTML(); 
 
-   private WorkspaceManager workspaceManager;   
+   private HeaderPanel header;
+   private MainMenu mainMenu;
+   private EditorPanel editorPanel;
 
    public ConsoleView()
    {
@@ -56,14 +60,25 @@
 
       // ------------------------------------------
 
-      HeaderPanel header = new HeaderPanel(this);
+      header = new HeaderPanel(this);
       borderPanel.add(header, new BorderLayoutData(RegionPosition.NORTH));
-    
+
       // ------------------------------------------
 
-      workspaceManager = new WorkspaceManager();
-      borderPanel.add(workspaceManager, new BorderLayoutData(RegionPosition.CENTER));      
-      setupWorkspaces();
+      mainMenu = new MainMenu(this);
+      BorderLayoutData menuData = new BorderLayoutData(RegionPosition.WEST);
+      menuData.setSplit(true);
+      menuData.setMinSize(175);
+      menuData.setMaxSize(400);
+      menuData.setMargins(new Margins(0, 5, 0, 0));
+      borderPanel.add(mainMenu, menuData);
+
+      // ------------------------------------------
+
+      editorPanel = new EditorPanel();
+      borderPanel.add(editorPanel, new BorderLayoutData(RegionPosition.CENTER));
+
+      setupEditors();
       
       // ------------------------------------------
 
@@ -71,15 +86,14 @@
       Viewport viewport = new Viewport(mainPanel);
    }
    
-   private void setupWorkspaces()
+   private void setupEditors()
    {
-      workspaceManager.addWorkspace( new ProcessWorkspace("Process workspace", this) );
-      workspaceManager.addWorkspace( new TaskWorkspace("Task workspace", this) );      
+      editorPanel.addEditor( new ProcessListEditor(this), false );      
    }
 
-   public ObjectFactory getObjectFactory()
+   public void addEditorView(EditorView editorView)
    {
-      return objectFactory;
+      editorPanel.addEditor(editorView,  true);
    }
 
    public void setError(String error)

Added: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/EditorPanel.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/EditorPanel.java	                        (rev 0)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/EditorPanel.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -0,0 +1,66 @@
+/*
+ * 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.gwtext.client.widgets.Panel;
+import com.gwtext.client.widgets.TabPanel;
+import com.gwtext.client.widgets.layout.FitLayout;
+
+import org.jboss.bpm.console.client.widgets.EditorView;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public class EditorPanel extends TabPanel
+{
+   protected ConsoleView view;
+
+   public EditorPanel()
+   {
+      super();
+
+      this.setResizeTabs(true);
+      this.setMinTabWidth(115);
+      this.setTabWidth(135);
+      this.setEnableTabScroll(true);
+      this.setWidth("100%");
+      this.setHeight("100%");
+      this.setActiveTab(0);
+   }
+
+   private Panel addTab(String title, boolean closeable) {
+      Panel tab = new Panel();
+      tab.setAutoScroll(true);
+      tab.setTitle(title);
+      tab.setClosable(closeable);
+      tab.setLayout(new FitLayout());
+      this.add(tab);
+      return tab;
+   }
+
+   public void addEditor(EditorView editorView, boolean closeable)
+   {
+      Panel tab = addTab(editorView.getTitle(), closeable);
+      tab.add(editorView);
+      this.setActiveTab(tab.getId());
+   }
+}


Property changes on: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/EditorPanel.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Modified: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/HeaderPanel.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/HeaderPanel.java	2008-08-04 09:45:46 UTC (rev 1815)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/HeaderPanel.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -48,8 +48,8 @@
       VerticalLayout verticalLayout = new VerticalLayout();
       this.setLayout(verticalLayout);
 
-      this.setHeight(80);
-      this.setBodyStyle("background-color:FFFF88");
+      this.setHeight(50);
+      this.setBodyStyle("background-color:FFFFFF");
 
       this.add( new Label("GWT Console"));
       //this.add(new MainMenu(view));

Modified: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/MainMenu.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/MainMenu.java	2008-08-04 09:45:46 UTC (rev 1815)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/MainMenu.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -21,11 +21,8 @@
  */
 package org.jboss.bpm.console.client;
 
-import com.gwtext.client.core.EventObject;
-import com.gwtext.client.widgets.Button;
 import com.gwtext.client.widgets.Panel;
-import com.gwtext.client.widgets.event.ButtonListenerAdapter;
-import com.gwtext.client.widgets.layout.HorizontalLayout;
+import com.gwtext.client.widgets.layout.AccordionLayout;
 
 /**
  * @author Heiko.Braun <heiko.braun at jboss.com>
@@ -33,69 +30,32 @@
 public class MainMenu extends Panel
 {
    private final ConsoleView view;
-   private Panel mainPanel = new Panel();
 
    public MainMenu(final ConsoleView view)
    {
       super();
       this.view = view;
 
-      // menu      
-      this.setBorder(false);
-      this.setPaddings(15);
-      this.setLayout(new HorizontalLayout(15));
-      this.setBodyStyle("background-color:FFFF88");
+      final AccordionLayout accordion = new AccordionLayout(true);
 
-      // --------------------------------
-      
-      Button processButton = new Button(
-        "Processes",
-        new ButtonListenerAdapter() {
-           public void onClick(Button button, EventObject e)
-           {
-              //view.toogleWorkspace(ProcessWorkspace.ID);
-           }
-        }
-      );
+      this.setTitle("");
+      this.setCollapsible(true);
+      this.setWidth(200);
+      this.setLayout(accordion);
 
-      Button taskButton = new Button(
-        "Tasks",
-        new ButtonListenerAdapter() {
-           public void onClick(Button button, EventObject e)
-           {
-             //view.toogleWorkspace(TaskWorkspace.ID);
-           }
-        }
-      );
+      Panel navPanel = new Panel();
+      navPanel.setHtml("<p>Hi. I'm the west panel.</p>");
+      navPanel.setTitle("Navigation");
+      navPanel.setBorder(false);
+      navPanel.setIconCls("forlder-icon");
+      this.add(navPanel);
 
-      Button jobsButton = new Button(
-        "Jobs",
-        new ButtonListenerAdapter() {
-           public void onClick(Button button, EventObject e)
-           {
-
-           }
-        }
-      );
-
-      Button userButton = new Button(
-        "User",
-        new ButtonListenerAdapter() {
-           public void onClick(Button button, EventObject e)
-           {
-
-           }
-        }
-      );
-
-      userButton.setDisabled(true);
-
-      // --------------------------------
-
-      this.add(processButton);
-      this.add(taskButton);
-      this.add(jobsButton);
-      this.add(userButton);
+      Panel settingsPanel = new Panel();
+      settingsPanel.setHtml("<p>Some settings in here.</p>");
+      settingsPanel.setTitle("Settings");
+      settingsPanel.setBorder(false);
+      settingsPanel.setIconCls("settings-icon");
+      this.add(settingsPanel);
    }
 
 

Deleted: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/ProcessListView.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/ProcessListView.java	2008-08-04 09:45:46 UTC (rev 1815)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/ProcessListView.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -1,43 +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 org.jboss.bpm.console.client.widgets.ListView;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
-public class ProcessListView extends ListView
-{
-
-   public ProcessListView(String titleName, ConsoleView view)
-   {
-      super(titleName, view);
-      addComlumn("Process ID");
-      addComlumn("Process Name");
-      addComlumn("Version");
-      addComlumn("Actions");
-               
-   }
-
-   
-}

Deleted: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/ProcessWorkspace.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/ProcessWorkspace.java	2008-08-04 09:45:46 UTC (rev 1815)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/ProcessWorkspace.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -1,49 +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.gwtext.client.core.Margins;
-import com.gwtext.client.core.RegionPosition;
-import com.gwtext.client.widgets.Panel;
-import com.gwtext.client.widgets.layout.BorderLayoutData;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
-public class ProcessWorkspace extends Workspace
-{      
-   public final static String ID = "org.jboss.bpm.ProcessWorkspace";
-
-   public ProcessWorkspace(String title, ConsoleView view)
-   {
-      super(title, view);
-
-      // contents
-      getNavigationPanel().setHtml("<p>Process Definitions</p>");
-      getEditorPanel().setHtml("<p>List view</p>");
-   }
-
-   protected String getWorkspaceID()
-   {
-      return ID; 
-   }
-}

Deleted: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/TaskWorkspace.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/TaskWorkspace.java	2008-08-04 09:45:46 UTC (rev 1815)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/TaskWorkspace.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -1,45 +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;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
-public class TaskWorkspace extends Workspace
-{
-
-   public final static String ID = "org.jboss.bpm.TaskWorkspace";
-
-   public TaskWorkspace(String title, ConsoleView view)
-   {
-      super(title, view);
-
-      // contents
-      getNavigationPanel().setHtml("<p>Job navigation</p>");
-      getEditorPanel().setHtml("<p>Something editor pane</p>");
-   }
-
-   protected String getWorkspaceID()
-   {
-      return ID; 
-   }
-}

Deleted: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/Workspace.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/Workspace.java	2008-08-04 09:45:46 UTC (rev 1815)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/Workspace.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -1,116 +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.gwtext.client.widgets.Panel;
-import com.gwtext.client.widgets.layout.FitLayout;
-import com.gwtext.client.widgets.layout.BorderLayout;
-import com.gwtext.client.widgets.layout.BorderLayoutData;
-import com.gwtext.client.core.RegionPosition;
-import com.gwtext.client.core.Margins;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
-public abstract class Workspace extends Panel
-{
-   protected ConsoleView view;
-   protected Panel borderPanel = new Panel();
-   protected String title;
-
-   private Panel navigationPanel; 
-   private Panel editorPanel;
-
-   private boolean dirty;
-
-   public Workspace(String title, ConsoleView view)
-   {
-      super();
-      setId( getWorkspaceID() );
-      
-      this.view = view;
-      this.title = title;
-
-      this.setBorder(false);
-      this.setPaddings(0);
-      this.setLayout(new FitLayout());
-
-      borderPanel.setLayout(new BorderLayout());
-
-      // -----------------------------------------------
-
-      //add west panel
-      navigationPanel = new Panel();
-      navigationPanel.setTitle(title);
-      navigationPanel.setBodyStyle("background-color:EEEEEE");
-      navigationPanel.setCollapsible(true);
-      navigationPanel.setWidth(200);
-
-      BorderLayoutData navigationLayoutData = new BorderLayoutData(RegionPosition.WEST);
-      navigationLayoutData.setSplit(true);
-      navigationLayoutData.setMinSize(175);
-      navigationLayoutData.setMaxSize(400);
-      navigationLayoutData.setMargins(new Margins(0, 5, 0, 0));
-
-      borderPanel.add(navigationPanel, navigationLayoutData);
-
-      // -----------------------------------------------
-
-      // center panel
-      editorPanel = new Panel();
-      editorPanel.setHeader(false);
-      editorPanel.setBodyStyle("background-color:EEEEEE");
-     
-      BorderLayoutData editorLayoutData = new BorderLayoutData(RegionPosition.CENTER);     
-      borderPanel.add(editorPanel, editorLayoutData);
-
-      this.add(borderPanel);
-      
-   }
-
-   protected abstract String getWorkspaceID();
-
-   public String getTitle()
-   {
-      return title;
-   }
-
-   public boolean isDirty()
-   {
-      return dirty;
-   }
-
-   protected void setDirty(boolean dirty)
-   {
-      this.dirty = dirty;
-   }
-
-   protected Panel getNavigationPanel()
-   {
-      return navigationPanel;
-   }
-
-   protected Panel getEditorPanel()
-   {
-      return editorPanel;
-   }
-}

Deleted: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/WorkspaceManager.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/WorkspaceManager.java	2008-08-04 09:45:46 UTC (rev 1815)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/WorkspaceManager.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -1,67 +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.gwtext.client.widgets.Panel;
-import com.gwtext.client.widgets.TabPanel;
-import com.gwtext.client.widgets.layout.FitLayout;
-
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
-public class WorkspaceManager extends TabPanel
-{
-   private Map workspaces = new HashMap();
-   
-   public WorkspaceManager()
-   {
-      super();
-
-      this.setResizeTabs(true);
-      this.setMinTabWidth(115);
-      this.setTabWidth(135);
-      this.setEnableTabScroll(true);
-      this.setWidth("100%");
-      this.setHeight("100%");
-      this.setActiveTab(0);
-   }
-
-   private Panel addTab(String title) {
-      Panel tab = new Panel();
-      tab.setAutoScroll(true);
-      tab.setTitle(title);
-      tab.setClosable(false);
-      tab.setLayout(new FitLayout());
-      this.add(tab);
-      return tab;
-   }
-
-   public void addWorkspace(Workspace workspace)
-   {
-      workspaces.put(workspace.getWorkspaceID(), workspace);
-      Panel tab = addTab(workspace.getTitle());
-      tab.add(workspace);
-   }
-}

Added: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/DAOFactory.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/DAOFactory.java	                        (rev 0)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/DAOFactory.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -0,0 +1,38 @@
+/*
+ * 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 class DAOFactory
+{
+   public static ProcessDefinitionDAO createProcessDefinitionDAO()
+   {
+      return new MockProcessDefinitionDAO();
+   }
+
+   public static ProcessInstanceDAO createProcessInstanceDAO()
+   {
+      return new MockProcessInstanceDAO();
+   }
+}


Property changes on: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/DAOFactory.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Deleted: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/MockProcessDefDAO.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/MockProcessDefDAO.java	2008-08-04 09:45:46 UTC (rev 1815)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/MockProcessDefDAO.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -1,36 +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.model;
-
-import java.util.List;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
-public class MockProcessDefDAO implements ProcessDefDAO
-{
-
-   public List getAllProcessDefinitions()
-   {
-      return null;  
-   }
-}

Added: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/MockProcessDefinitionDAO.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/MockProcessDefinitionDAO.java	                        (rev 0)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/MockProcessDefinitionDAO.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -0,0 +1,45 @@
+/*
+ * 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.List;
+import java.util.ArrayList;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public class MockProcessDefinitionDAO implements ProcessDefinitionDAO
+{
+   final static List defs = new ArrayList();
+   static
+   {
+      defs.add( new ProcessDefinition(1, "OrderProcess", "1"));
+      defs.add( new ProcessDefinition(2, "VacationManagement", "1"));
+      defs.add( new ProcessDefinition(3, "New Employee walkthrough", "1"));
+      defs.add( new ProcessDefinition(4, "Source code review", "1"));
+   }
+
+   public List getAllProcessDefinitions()
+   {
+      return defs;  
+   }
+}


Property changes on: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/MockProcessDefinitionDAO.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/MockProcessInstanceDAO.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/MockProcessInstanceDAO.java	                        (rev 0)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/MockProcessInstanceDAO.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -0,0 +1,50 @@
+/*
+ * 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.List;
+import java.util.ArrayList;
+import java.util.Date;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public class MockProcessInstanceDAO implements ProcessInstanceDAO
+{
+
+   final static List instances = new ArrayList();
+   static
+   {
+      instances.add( new ProcessInstance(2, -1, "Running", new Date(), null));
+      instances.add( new ProcessInstance(3, -1, "Stopped", new Date(), null));
+      instances.add( new ProcessInstance(4, -1, "Ended", new Date(System.currentTimeMillis()-(1000*60*60)), null));
+      instances.add( new ProcessInstance(5, -1, "Suspended", new Date(System.currentTimeMillis()-(1000*60*90)), null));
+      instances.add( new ProcessInstance(6, -1, "Running", new Date(), null));
+      instances.add( new ProcessInstance(7, -1, "Running", new Date(), null));      
+   }
+
+
+   public List getInstanceByProcessDefinitionId(long id)
+   {
+      return instances; 
+   }
+}


Property changes on: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/MockProcessInstanceDAO.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Deleted: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ObjectFactory.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ObjectFactory.java	2008-08-04 09:45:46 UTC (rev 1815)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ObjectFactory.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -1,33 +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.model;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
-public class ObjectFactory
-{
-   public ProcessDefDAO createProcessDefDAO()
-   {
-      return new MockProcessDefDAO();
-   }
-}

Deleted: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessDefDAO.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessDefDAO.java	2008-08-04 09:45:46 UTC (rev 1815)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessDefDAO.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -1,32 +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.model;
-
-import java.util.List;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
-public interface ProcessDefDAO
-{
-   List getAllProcessDefinitions();
-}

Added: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessDefinition.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessDefinition.java	                        (rev 0)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessDefinition.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -0,0 +1,80 @@
+/*
+ * 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 class ProcessDefinition
+{
+   private long Id;
+   private String name;
+   private String version;
+
+
+   public ProcessDefinition()
+   {
+   }
+
+   public ProcessDefinition(long id, String name, String version)
+   {
+      this.Id = id;
+      this.name = name;
+      this.version = version;
+   }
+
+   public long getId()
+   {
+      return Id;
+   }
+
+   public void setId(long id)
+   {
+      Id = id;
+   }
+
+   public String getName()
+   {
+      return name;
+   }
+
+   public void setName(String name)
+   {
+      this.name = name;
+   }
+
+   public String getVersion()
+   {
+      return version;
+   }
+
+   public void setVersion(String version)
+   {
+      this.version = version;
+   }
+
+
+   public String toString()
+   {
+      return "ProcessDefinition{id="+this.Id+", name="+this.name+"}";
+   }
+}


Property changes on: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessDefinition.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessDefinitionDAO.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessDefinitionDAO.java	                        (rev 0)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessDefinitionDAO.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -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;
+
+import java.util.List;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public interface ProcessDefinitionDAO
+{
+   List getAllProcessDefinitions();
+}


Property changes on: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessDefinitionDAO.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessInstance.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessInstance.java	                        (rev 0)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessInstance.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -0,0 +1,111 @@
+/*
+ * 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.Date;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public class ProcessInstance
+{
+   private long Id;
+   private long parentId;
+
+   private String key;
+   private String status;
+   private Date startDate;
+   private Date endDate;
+
+   public ProcessInstance()
+   {
+   }
+
+   public ProcessInstance(long id, long parentId, String status, Date startDate, Date endDate)
+   {
+      this.Id = id;
+      this.parentId = parentId;
+      this.status = status;
+      this.startDate = startDate;
+      this.endDate = endDate;
+   }
+
+   public long getId()
+   {
+      return Id;
+   }
+
+   public void setId(long id)
+   {
+      Id = id;
+   }
+
+   public long getParentId()
+   {
+      return parentId;
+   }
+
+   public void setParentId(long parentId)
+   {
+      this.parentId = parentId;
+   }
+
+   public String getKey()
+   {
+      return key !=null ? key : "";
+   }
+
+   public void setKey(String key)
+   {
+      this.key = key;
+   }
+
+   public String getStatus()
+   {
+      return status;
+   }
+
+   public void setStatus(String status)
+   {
+      this.status = status;
+   }
+
+   public Date getStartDate()
+   {
+      return startDate;
+   }
+
+   public void setStartDate(Date startDate)
+   {
+      this.startDate = startDate;
+   }
+
+   public Date getEndDate()
+   {
+      return endDate;
+   }
+
+   public void setEndDate(Date endDate)
+   {
+      this.endDate = endDate;
+   }
+}


Property changes on: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessInstance.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessInstanceDAO.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessInstanceDAO.java	                        (rev 0)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessInstanceDAO.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -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;
+
+import java.util.List;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public interface ProcessInstanceDAO
+{
+   List getInstanceByProcessDefinitionId(long id);
+}


Property changes on: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/model/ProcessInstanceDAO.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessDefinitionList.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessDefinitionList.java	                        (rev 0)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessDefinitionList.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -0,0 +1,152 @@
+/*
+ * 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.process;
+
+import com.gwtext.client.data.*;
+import com.gwtext.client.widgets.MessageBox;
+import com.gwtext.client.widgets.MessageBoxConfig;
+import com.gwtext.client.widgets.grid.ColumnConfig;
+import com.gwtext.client.widgets.grid.ColumnModel;
+import org.jboss.bpm.console.client.ConsoleView;
+import org.jboss.bpm.console.client.model.DAOFactory;
+import org.jboss.bpm.console.client.model.ProcessDefinitionDAO;
+import org.jboss.bpm.console.client.model.ProcessDefinition;
+import org.jboss.bpm.console.client.widgets.ListView;
+
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public class ProcessDefinitionList extends ListView
+{
+   
+   private Map row2ProcessMap = new HashMap();
+
+   public ProcessDefinitionList(String titleName, ConsoleView view)
+   {
+      super(titleName, view);
+
+      // ----------------------------------------
+
+      final RecordDef recordDef = new RecordDef(
+        new FieldDef[]{
+          new IntegerFieldDef("processId"),
+          new StringFieldDef("name"),
+          new StringFieldDef("version")
+        }
+      );
+
+      // ----------------------------------------
+
+      final ColumnModel columnModel = new ColumnModel(
+        new ColumnConfig[]
+          {
+            new ColumnConfig("Process ID", "processId", 75, true),
+            new ColumnConfig("Name", "name", 200, true, null, "name"),
+            new ColumnConfig("Version", "version", 75, true)
+          }
+      );
+
+      grid.setColumnModel(columnModel);
+
+      // ----------------------------------------
+
+      Store store = createStore(recordDef);
+      store.load();
+      grid.setStore(store);
+
+
+      grid.setAutoExpandColumn("name");
+      grid.setAutoExpandMin(200);
+
+   }
+
+   protected void onExamine(final Integer row)
+   {
+      ProcessDefinition proc = (ProcessDefinition)row2ProcessMap.get(row);
+      ProcessInstanceList list = new ProcessInstanceList(
+        proc, "Process Instances: " + proc.getId(), view
+      );
+
+      view.addEditorView( new ProcessInstanceEditor( list ));
+   }
+
+   protected void onDelete(final Integer row)
+   {
+      System.out.println("Delete " + row);
+      MessageBox.show(new MessageBoxConfig() {
+         {
+            setTitle("Delete process?");
+            setMsg("Deleting the process will remove all instances as well. " +
+              "Would you like to delete this process?");
+            setButtons(MessageBox.YESNOCANCEL);
+            setCallback(new MessageBox.PromptCallback() {
+               public void execute(String btnID, String text)
+               {
+                  // TODO: add delete operation
+                  ProcessDefinition proc = (ProcessDefinition)row2ProcessMap.get(row);
+                  System.out.println("Delete "+ proc +"? " + btnID);
+               }
+            });
+         }
+      });
+   }
+
+   protected final Store createStore(RecordDef recordDef)
+   {      
+      MemoryProxy proxy = new MemoryProxy( getData() );
+      ArrayReader reader = new ArrayReader(recordDef);
+      Store store = new Store(proxy, reader);      
+      return store;
+   }
+
+   protected Object[][] getData()
+   {
+      ProcessDefinitionDAO dao = DAOFactory.createProcessDefinitionDAO();
+      List processDefs = dao.getAllProcessDefinitions();
+
+      Object[][] records = new Object[processDefs.size()][];
+
+      Iterator it = processDefs.iterator();
+      int row = 0;
+      while(it.hasNext())
+      {
+         ProcessDefinition pd = (ProcessDefinition)it.next();
+         records[row] = new Object[3];
+         records[row][0] = new Long(pd.getId());
+         records[row][1] = pd.getName();
+         records[row][2] = pd.getVersion();
+
+         row2ProcessMap.put(new Integer(row), pd);
+         
+         row++;
+      }
+
+      return records;
+   }
+
+
+}


Property changes on: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessDefinitionList.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessInstanceEditor.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessInstanceEditor.java	                        (rev 0)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessInstanceEditor.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -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.process;
+
+import org.jboss.bpm.console.client.widgets.EditorView;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public class ProcessInstanceEditor extends EditorView
+{
+
+   public final static String ID = "org.jboss.bpm.process.ProcessInstanceList";
+   private String title;
+   public ProcessInstanceEditor(ProcessInstanceList instances)
+   {
+      super();
+      this.title = instances.getProcessDefinition().getName() + " Instances";
+      this.add(instances);
+   }
+
+
+   public String getId()
+   {
+      return ID;
+   }
+
+   public String getTitle()
+   {
+      return title;  
+   }
+}


Property changes on: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessInstanceEditor.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessInstanceList.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessInstanceList.java	                        (rev 0)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessInstanceList.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -0,0 +1,141 @@
+/*
+ * 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.process;
+
+import org.jboss.bpm.console.client.widgets.ListView;
+import org.jboss.bpm.console.client.ConsoleView;
+import org.jboss.bpm.console.client.model.*;
+import com.gwtext.client.data.*;
+import com.gwtext.client.widgets.grid.ColumnModel;
+import com.gwtext.client.widgets.grid.ColumnConfig;
+
+import java.util.List;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.HashMap;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public class ProcessInstanceList extends ListView
+{
+
+   private Map row2InstanceMap = new HashMap();
+   private ProcessDefinition parent;
+
+   public ProcessInstanceList(ProcessDefinition procDef, String titleName, ConsoleView view)
+   {
+      super(titleName, view);
+      this.parent = procDef;
+
+      // ----------------------------------------
+
+      final RecordDef recordDef = new RecordDef(
+        new FieldDef[]{
+          new IntegerFieldDef("instanceId"),
+          new StringFieldDef("key"),
+          new StringFieldDef("status"),
+          new DateFieldDef("start"),
+          new DateFieldDef("end")
+        }
+      );
+
+      // ----------------------------------------
+
+      final ColumnModel columnModel = new ColumnModel(
+        new ColumnConfig[]
+          {
+            new ColumnConfig("Instance ID", "instanceId", 50, true),
+            new ColumnConfig("key", "key", 50, true),
+            new ColumnConfig("Status", "status", 100, true, null, "status"),
+            new ColumnConfig("Start Date", "start", 75, true),
+            new ColumnConfig("End Date", "end", 75, true)
+          }
+      );
+
+      grid.setColumnModel(columnModel);
+
+      // ----------------------------------------
+
+      Store store = createStore(recordDef);
+      store.load();
+      grid.setStore(store);
+
+
+      grid.setAutoExpandColumn("status");
+      grid.setAutoExpandMin(100);
+   }
+
+   ProcessDefinition getProcessDefinition()
+   {
+      return parent;  
+   }
+
+   protected final Store createStore(RecordDef recordDef)
+     {
+        MemoryProxy proxy = new MemoryProxy( getData() );
+        ArrayReader reader = new ArrayReader(recordDef);
+        Store store = new Store(proxy, reader);
+        return store;
+     }
+
+     protected Object[][] getData()
+     {
+        ProcessInstanceDAO dao = DAOFactory.createProcessInstanceDAO();
+        List processDefs = dao.getInstanceByProcessDefinitionId(parent.getId());
+
+        Object[][] records = new Object[processDefs.size()][];
+
+        Iterator it = processDefs.iterator();
+        int row = 0;
+        while(it.hasNext())
+        {
+           ProcessInstance pd = (ProcessInstance)it.next();
+           records[row] = new Object[5];
+           records[row][0] = new Long(pd.getId());
+           records[row][1] = pd.getKey();
+           records[row][2] = pd.getStatus();
+           records[row][3] = pd.getStartDate();
+           records[row][4] = pd.getEndDate();
+
+           row2InstanceMap.put(new Integer(row), pd);
+
+           row++;
+        }
+
+        return records;
+     }
+
+   
+
+
+
+   protected void onExamine(final Integer row)
+   {
+
+   }
+
+   protected void onDelete(final Integer row)
+   {
+
+   }
+}


Property changes on: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessInstanceList.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessListEditor.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessListEditor.java	                        (rev 0)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessListEditor.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -0,0 +1,57 @@
+/*
+ * 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.process;
+
+import org.jboss.bpm.console.client.ConsoleView;
+import org.jboss.bpm.console.client.widgets.EditorView;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public class ProcessListEditor extends EditorView
+{      
+   public final static String ID = "org.jboss.bpm.process.ProcessList";
+
+   private ProcessDefinitionList processDefinitions;
+
+   private ConsoleView view;
+
+   public ProcessListEditor(ConsoleView view)
+   {
+      super();
+      this.view = view;
+      
+      processDefinitions = new ProcessDefinitionList("Process Definitions", view);
+      this.add(processDefinitions);
+   }
+
+
+   public String getId()
+   {
+      return ID;
+   }
+
+   public String getTitle()
+   {
+      return "Process Definitions";
+   }
+}


Property changes on: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/process/ProcessListEditor.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Added: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/widgets/EditorView.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/widgets/EditorView.java	                        (rev 0)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/widgets/EditorView.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -0,0 +1,33 @@
+/*
+ * 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.widgets;
+
+import com.gwtext.client.widgets.Panel;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public abstract class EditorView extends Panel
+{
+   public abstract String getId();
+   public abstract String getTitle();
+}


Property changes on: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/widgets/EditorView.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Deleted: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/widgets/ListView.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/widgets/ListView.java	2008-08-04 09:45:46 UTC (rev 1815)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/widgets/ListView.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -1,80 +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.widgets;
-
-import com.google.gwt.user.client.ui.Label;
-import com.google.gwt.user.client.ui.FlexTable;
-import com.google.gwt.user.client.ui.VerticalPanel;
-import com.google.gwt.user.client.ui.Composite;
-import org.jboss.bpm.console.client.ConsoleView;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
-public class ListView extends Composite
-{
-   private ConsoleView view;
-   private Label title;
-   private FlexTable rows = new FlexTable();
-
-   public ListView(String titleName, ConsoleView view)
-   {
-      this.view = view;
-      this.title = new Label(titleName);
-
-      VerticalPanel mainPanel = new VerticalPanel();
-      initWidget(mainPanel);
-      mainPanel.setWidth("100%");      
-      
-      rows.setWidth("100%");
-      mainPanel.add(title);
-      mainPanel.add(rows);
-      rows.getRowFormatter().setStyleName(0, "bpm-ListHeaderRow");
-
-   }
-
-   protected void addComlumn(String name)
-   {
-      int column = rows.getRowCount() > 0 ? rows.getCellCount(0) : 0;
-      rows.setWidget(0, column, new Label(name));
-   }
-
-   protected void addField(int row, String value)
-   {
-      row = row+1;
-      int column = 0;
-      if(rows.getRowCount()==row)
-      {
-         if(row%2==0)
-            rows.getRowFormatter().setStyleName(row,  "bpm-EvenRow");
-      }
-      else
-      {
-         column = rows.getCellCount(row);
-      }
-
-      Label fieldValue = new Label(value);
-      fieldValue.setStyleName("bpm-FieldValue");
-      rows.setWidget(row, column, fieldValue);
-   }
-
-}

Deleted: jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/widgets/LoadingPanel.java
===================================================================
--- jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/widgets/LoadingPanel.java	2008-08-04 09:45:46 UTC (rev 1815)
+++ jbossbpm/impl/jbpm3/trunk/modules/gwt-console/war/src/main/java/org/jboss/bpm/console/client/widgets/LoadingPanel.java	2008-08-04 10:34:26 UTC (rev 1816)
@@ -1,39 +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.widgets;
-
-import com.google.gwt.user.client.ui.Composite;
-import com.google.gwt.user.client.ui.Label;
-
-/**
- * @author Heiko.Braun <heiko.braun at jboss.com>
- */
-public final class LoadingPanel extends Composite
-{
-   private Label label;
-
-   public LoadingPanel(Label label)
-   {
-      this.label = label;
-      initWidget(label);
-   }
-}




More information about the jbpm-commits mailing list