[jbpm-commits] JBoss JBPM SVN: r4814 - in projects/gwt-console/trunk/gui/war/src/main: resources/org/jboss/bpm/console/public and 1 other directory.
do-not-reply at jboss.org
do-not-reply at jboss.org
Thu May 14 10:08:17 EDT 2009
Author: heiko.braun at jboss.com
Date: 2009-05-14 10:08:17 -0400 (Thu, 14 May 2009)
New Revision: 4814
Modified:
projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/ServerStatusView.java
projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditor.java
projects/gwt-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/public/console.css
Log:
Cleanup SettingsEditor layout
Modified: projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/ServerStatusView.java
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/ServerStatusView.java 2009-05-14 13:53:17 UTC (rev 4813)
+++ projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/ServerStatusView.java 2009-05-14 14:08:17 UTC (rev 4814)
@@ -40,14 +40,13 @@
public final static String ID = ServerStatusView.class.getName();
private Controller controller;
- private LayoutPanel container;
+
private ApplicationContext appContext;
public ServerStatusView(ApplicationContext appContext)
{
+ super();
this.appContext = appContext;
- container = new LayoutPanel();
-
}
public void setController(Controller controller)
@@ -57,15 +56,13 @@
public void update(ServerStatus status)
{
- Grid g = new Grid(status.getPlugins().size()+1, 2);
+ Grid g = new Grid(status.getPlugins().size(), 2);
+ g.setWidth("100%");
- g.setWidget(0, 0, new Label("Plugins:"));
-
- for (int row = 1; row < status.getPlugins().size()+1; ++row)
+ for (int row = 0; row < status.getPlugins().size(); ++row)
{
- PluginInfo p = status.getPlugins().get(row-1);
- g.setText(row, 0, p.getType());
- g.setStyleName("bpm-info-table");
+ PluginInfo p = status.getPlugins().get(row);
+ g.setText(row, 0, p.getType());
final Image img = p.isAvailable() ?
new Image("images/icons/confirm_small.png"):
@@ -74,10 +71,9 @@
g.setWidget(row, 1, img );
}
- container.add(g);
- this.add(container);
+ this.add(g);
this.invalidate();
- appContext.refreshView();
+
}
}
Modified: projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditor.java
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditor.java 2009-05-14 13:53:17 UTC (rev 4813)
+++ projects/gwt-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditor.java 2009-05-14 14:08:17 UTC (rev 4814)
@@ -56,6 +56,7 @@
final ScrollLayoutPanel layoutPanel = new ScrollLayoutPanel(
new BoxLayout(BoxLayout.Orientation.VERTICAL)
);
+ layoutPanel.setPadding(5);
// console info
Label console = new Label("Console Info");
@@ -65,23 +66,28 @@
Grid g1 = new Grid(1,2);
g1.setWidget(0,0, new Label("Version:"));
g1.setWidget(0,1, new Label(Version.VERSION));
+ g1.getColumnFormatter().setWidth(0, "20%");
- layoutPanel.add(g1);
+ layoutPanel.add(g1, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
// server info
Label server = new Label("Server Info");
server.setStyleName("bpm-label-header");
layoutPanel.add(server, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
- Grid g2 = new Grid(1,2);
+ ServerStatusView serverStatus = new ServerStatusView(appContext);
+
+ Grid g2 = new Grid(2,2);
g2.setWidget(0,0, new Label("Host:"));
g2.setWidget(0,1, new Label(appContext.getConfig().getConsoleServerUrl()));
- layoutPanel.add(g2);
-
- ServerStatusView serverStatus = new ServerStatusView(appContext);
- layoutPanel.add(serverStatus); // Doesn't render in grid
+ g2.setWidget(1,0 , new Label("Plugins:"));
+ g2.setWidget(1,1, serverStatus);
+ g2.getColumnFormatter().setWidth(0, "20%");
+
+ layoutPanel.add(g2, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
+
tabPanel.add(layoutPanel, "System Overview");
this.add(tabPanel, new BorderLayoutData(BorderLayout.Region.CENTER));
Modified: projects/gwt-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/public/console.css
===================================================================
--- projects/gwt-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/public/console.css 2009-05-14 13:53:17 UTC (rev 4813)
+++ projects/gwt-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/public/console.css 2009-05-14 14:08:17 UTC (rev 4814)
@@ -230,15 +230,6 @@
/* end - override gwt-log styles */
-.bpm-info-table {
- border:0px solid;
- width:100%;
- //background:#F8F8F8;
- background:#ffffff;
- border-left:5px solid #ffffff;
- padding:5px;
-}
-
/* start - custom widgets */
.bpm-detail-panel {
border:1px solid #E8E8E8;
More information about the jbpm-commits
mailing list