[overlord-commits] Overlord SVN: r971 - in bpm-console/trunk/gui: war/src/main/java/org/jboss/bpm/console/client/engine and 1 other directories.
overlord-commits at lists.jboss.org
overlord-commits at lists.jboss.org
Tue Feb 16 17:17:28 EST 2010
Author: heiko.braun at jboss.com
Date: 2010-02-16 17:17:28 -0500 (Tue, 16 Feb 2010)
New Revision: 971
Modified:
bpm-console/trunk/gui/profiles/riftsaw/src/main/resources/toolset-profile.properties
bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/engine/DeploymentListView.java
bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/model/DTOParser.java
Log:
First cut for BPMC-44
Modified: bpm-console/trunk/gui/profiles/riftsaw/src/main/resources/toolset-profile.properties
===================================================================
--- bpm-console/trunk/gui/profiles/riftsaw/src/main/resources/toolset-profile.properties 2010-02-16 15:07:16 UTC (rev 970)
+++ bpm-console/trunk/gui/profiles/riftsaw/src/main/resources/toolset-profile.properties 2010-02-16 22:17:28 UTC (rev 971)
@@ -1,8 +1,8 @@
#org.jboss.bpm.console.client.task.AssignedTasksModule
#org.jboss.bpm.console.client.task.OpenTasksModule
-#org.jboss.bpm.console.client.engine.DeploymentModule
+org.jboss.bpm.console.client.process.ProcessModule
+org.jboss.bpm.console.client.engine.DeploymentModule
#org.jboss.bpm.console.client.engine.JobListModule
org.jboss.bpm.console.client.PreferencesModule
org.jboss.bpm.console.client.ServerStatusModule
-org.jboss.bpm.console.client.process.ProcessModule
#org.jboss.bpm.console.client.report.ReportModule
\ No newline at end of file
Modified: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/engine/DeploymentListView.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/engine/DeploymentListView.java 2010-02-16 15:07:16 UTC (rev 970)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/engine/DeploymentListView.java 2010-02-16 22:17:28 UTC (rev 971)
@@ -28,6 +28,7 @@
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ChangeListener;
+import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Widget;
import com.mvc4g.client.Controller;
import com.mvc4g.client.Event;
@@ -116,7 +117,7 @@
final ListBox<DeploymentRef> listBox =
new ListBox<DeploymentRef>(
new String[] {
- "ID", "Name", "Timestamp", "Suspended"}
+ "Name", "Suspended"}
);
@@ -125,15 +126,12 @@
DeploymentRef item) {
switch (column) {
case 0:
- listBox.setText(row, column, item.getId());
+ String color= item.isSuspended() ? "#CCCCCC" : "#000000";
+ String text = "<div style=\"color:"+color+"\">"+ item.getName() +"</div>";
+
+ listBox.setWidget(row, column, new HTML(text));
break;
case 1:
- listBox.setText(row, column, item.getName());
- break;
- case 2:
- listBox.setText(row, column, dateFormat.format(new Date(item.getTimestamp())));
- break;
- case 3:
listBox.setText(row, column, String.valueOf(item.isSuspended()));
break;
default:
Modified: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/model/DTOParser.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/model/DTOParser.java 2010-02-16 15:07:16 UTC (rev 970)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/model/DTOParser.java 2010-02-16 22:17:28 UTC (rev 971)
@@ -278,13 +278,14 @@
boolean suspended = JSONWalk.on(item).next("suspended").asBool();
String name = JSONWalk.on(item).next("name").asString();
- long ts = JSONWalk.on(item).next("timestamp").asLong();
+ JSONWalk.JSONWrapper tsWrapper = JSONWalk.on(item).next("timestamp");
+ long ts = tsWrapper != null ? tsWrapper.asLong() : -1;
DeploymentRef ref = new DeploymentRef(id, suspended);
ref.setName(name);
ref.setTimestamp(ts);
- // defintions
+ // definitions
JSONArray defArr = JSONWalk.on(item).next("definitions").asArray();
for (int c = 0; c < defArr.size(); c++)
{
More information about the overlord-commits
mailing list