[jbpm-commits] JBoss JBPM SVN: r5380 - projects/gwt-console/branches/sam/sam/gui/src/main/java/org/jboss/bpm/console/client.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Jul 29 10:02:45 EDT 2009


Author: heiko.braun at jboss.com
Date: 2009-07-29 10:02:45 -0400 (Wed, 29 Jul 2009)
New Revision: 5380

Added:
   projects/gwt-console/branches/sam/sam/gui/src/main/java/org/jboss/bpm/console/client/SAMEditorNavigation.java
Modified:
   projects/gwt-console/branches/sam/sam/gui/src/main/java/org/jboss/bpm/console/client/SAMEditor.java
Log:
Bare bone editor

Modified: projects/gwt-console/branches/sam/sam/gui/src/main/java/org/jboss/bpm/console/client/SAMEditor.java
===================================================================
--- projects/gwt-console/branches/sam/sam/gui/src/main/java/org/jboss/bpm/console/client/SAMEditor.java	2009-07-29 13:56:10 UTC (rev 5379)
+++ projects/gwt-console/branches/sam/sam/gui/src/main/java/org/jboss/bpm/console/client/SAMEditor.java	2009-07-29 14:02:45 UTC (rev 5380)
@@ -21,9 +21,8 @@
  */
 package org.jboss.bpm.console.client;
 
-import org.jboss.bpm.console.client.Editor;
-import org.jboss.bpm.console.client.MenuSection;
-import org.jboss.bpm.console.client.ApplicationContext;
+import org.gwt.mosaic.ui.client.Label;
+import org.gwt.mosaic.ui.client.layout.LayoutPanel;
 
 /**
  * @author Heiko.Braun <heiko.braun at jboss.com>
@@ -43,7 +42,11 @@
   {
     if(!initialized)
     {
+      LayoutPanel layout = new LayoutPanel();
+      layout.add(new Label("Hello form SAM"));
 
+      this.add(layout);
+      
       initialized = true;
     }
   }
@@ -60,6 +63,12 @@
 
   public MenuSection provideMenuSection()
   {
-    return null;  
+    //ConsoleIconBundle icons = GWT.create(ConsoleIconBundle.class);
+
+    return new MenuSection(
+        "Activity Monitor",
+        null,
+        new SAMEditorNavigation(appContext)
+    );
   }
 }

Added: projects/gwt-console/branches/sam/sam/gui/src/main/java/org/jboss/bpm/console/client/SAMEditorNavigation.java
===================================================================
--- projects/gwt-console/branches/sam/sam/gui/src/main/java/org/jboss/bpm/console/client/SAMEditorNavigation.java	                        (rev 0)
+++ projects/gwt-console/branches/sam/sam/gui/src/main/java/org/jboss/bpm/console/client/SAMEditorNavigation.java	2009-07-29 14:02:45 UTC (rev 5380)
@@ -0,0 +1,61 @@
+/*
+ * 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.user.client.ui.Tree;
+import com.google.gwt.user.client.ui.TreeItem;
+import com.google.gwt.user.client.ui.TreeListener;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+class SAMEditorNavigation extends Tree
+{
+
+  public SAMEditorNavigation(final ApplicationContext appContext)
+  {
+    super.setTitle("Activity Monitor");
+
+    TreeItem root = addItem("Base Setup");
+    TreeItem epn= root.addItem("List EPN");
+
+    addTreeListener(
+        new TreeListener()
+        {
+          public void onTreeItemSelected(TreeItem treeItem)
+          {
+            if("List EPN".equals(treeItem.getText()))
+            {
+              //Workspace workspace = appContext.getWorkpace();
+              //workspace.showEditor(ProcessEditor.ID);
+            }
+          }
+
+          public void onTreeItemStateChanged(TreeItem treeItem)
+          {
+
+          }
+        }
+    );
+  }
+}
+



More information about the jbpm-commits mailing list