[jbpm-commits] JBoss JBPM SVN: r4567 - projects/gwt-console/branches/hbraun/war/src/main/java/org/jboss/bpm/console/client/v2/process.
do-not-reply at jboss.org
do-not-reply at jboss.org
Thu Apr 16 09:51:41 EDT 2009
Author: heiko.braun at jboss.com
Date: 2009-04-16 09:51:40 -0400 (Thu, 16 Apr 2009)
New Revision: 4567
Modified:
projects/gwt-console/branches/hbraun/war/src/main/java/org/jboss/bpm/console/client/v2/process/DefinitionListView.java
Log:
Cleanup
Modified: projects/gwt-console/branches/hbraun/war/src/main/java/org/jboss/bpm/console/client/v2/process/DefinitionListView.java
===================================================================
--- projects/gwt-console/branches/hbraun/war/src/main/java/org/jboss/bpm/console/client/v2/process/DefinitionListView.java 2009-04-16 13:31:50 UTC (rev 4566)
+++ projects/gwt-console/branches/hbraun/war/src/main/java/org/jboss/bpm/console/client/v2/process/DefinitionListView.java 2009-04-16 13:51:40 UTC (rev 4567)
@@ -23,17 +23,18 @@
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.Widget;
-import com.google.gwt.user.client.ui.ChangeListener;
-import com.google.gwt.user.client.ui.FocusListener;
-import com.google.gwt.user.client.Window;
+import com.google.gwt.user.client.ui.Button;
import com.mvc4g.client.Controller;
+import com.mvc4g.client.Event;
import com.mvc4g.client.ViewInterface;
-import com.mvc4g.client.Event;
-import org.gwt.mosaic.ui.client.*;
+import org.gwt.mosaic.ui.client.ListBox;
+import org.gwt.mosaic.ui.client.ToolBar;
+import org.gwt.mosaic.ui.client.ToolButton;
+import org.gwt.mosaic.ui.client.MessageBox;
+import org.gwt.mosaic.ui.client.util.ButtonHelper;
import org.gwt.mosaic.ui.client.layout.BoxLayout;
import org.gwt.mosaic.ui.client.layout.BoxLayoutData;
import org.gwt.mosaic.ui.client.layout.LayoutPanel;
-import org.gwt.mosaic.ui.client.layout.FillLayoutData;
import org.gwt.mosaic.ui.client.list.DefaultListModel;
import org.jboss.bpm.console.client.model.ProcessDefinitionRef;
@@ -110,7 +111,7 @@
toolBox.setPadding(0);
toolBox.setWidgetSpacing(5);
//toolBox.setLayout(new BoxLayout(BoxLayout.Orientation.VERTICAL));
-
+
final ToolBar toolBar = new ToolBar();
toolBar.add(
new ToolButton("Refresh", new ClickListener() {
@@ -127,9 +128,13 @@
toolBar.addSeparator();
toolBar.add(
- new ToolButton("Test", new ClickListener() {
+ new ToolButton("View Instances", new ClickListener() {
public void onClick(Widget sender) {
- System.out.println(listBox.getSelectedIndex());
+ int index = listBox.getSelectedIndex();
+ if(index==-1)
+ MessageBox.alert("Missing selection", "Please select a process");
+ else
+ System.out.println(index);
}
}
)
More information about the jbpm-commits
mailing list