Author: heiko.braun(a)jboss.com
Date: 2009-03-31 04:22:33 -0400 (Tue, 31 Mar 2009)
New Revision: 4364
Modified:
projects/gwt-console/branches/hbraun/gwt-parent.iml
projects/gwt-console/branches/hbraun/plugin-api/plugin.iml
projects/gwt-console/branches/hbraun/plugin-example/plugin-example.iml
projects/gwt-console/branches/hbraun/war/gwt-war.iml
projects/gwt-console/branches/hbraun/war/src/main/java/org/jboss/bpm/console/client/Application.java
Log:
Begin work on the mosaic migration
Modified: projects/gwt-console/branches/hbraun/gwt-parent.iml
===================================================================
--- projects/gwt-console/branches/hbraun/gwt-parent.iml 2009-03-31 07:12:28 UTC (rev
4363)
+++ projects/gwt-console/branches/hbraun/gwt-parent.iml 2009-03-31 08:22:33 UTC (rev
4364)
@@ -316,6 +316,15 @@
<SOURCES />
</library>
</orderEntry>
+ <orderEntry type="module-library" exported="">
+ <library name="M2 Dep:
com.googlecode.gwtmosaic:gwt-mosaic-gwtx:jar:0.1.9:compile">
+ <CLASSES>
+ <root
url="jar://$MODULE_DIR$/../../../../../../.m2/repository/com/googlecode/gwtmosaic/gwt-mosaic-gwtx/0.1.9/gwt-mosaic-gwtx-0.1.9.jar!/"
/>
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
<orderEntryProperties />
</component>
</module>
Modified: projects/gwt-console/branches/hbraun/plugin-api/plugin.iml
===================================================================
--- projects/gwt-console/branches/hbraun/plugin-api/plugin.iml 2009-03-31 07:12:28 UTC
(rev 4363)
+++ projects/gwt-console/branches/hbraun/plugin-api/plugin.iml 2009-03-31 08:22:33 UTC
(rev 4364)
@@ -102,6 +102,15 @@
<SOURCES />
</library>
</orderEntry>
+ <orderEntry type="module-library">
+ <library name="M2 Dep:
com.googlecode.gwtmosaic:gwt-mosaic-gwtx:jar:0.1.9:compile">
+ <CLASSES>
+ <root
url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/com/googlecode/gwtmosaic/gwt-mosaic-gwtx/0.1.9/gwt-mosaic-gwtx-0.1.9.jar!/"
/>
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
<orderEntryProperties />
</component>
</module>
Modified: projects/gwt-console/branches/hbraun/plugin-example/plugin-example.iml
===================================================================
--- projects/gwt-console/branches/hbraun/plugin-example/plugin-example.iml 2009-03-31
07:12:28 UTC (rev 4363)
+++ projects/gwt-console/branches/hbraun/plugin-example/plugin-example.iml 2009-03-31
08:22:33 UTC (rev 4364)
@@ -102,6 +102,15 @@
<SOURCES />
</library>
</orderEntry>
+ <orderEntry type="module-library">
+ <library name="M2 Dep:
com.googlecode.gwtmosaic:gwt-mosaic-gwtx:jar:0.1.9:compile">
+ <CLASSES>
+ <root
url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/com/googlecode/gwtmosaic/gwt-mosaic-gwtx/0.1.9/gwt-mosaic-gwtx-0.1.9.jar!/"
/>
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
<orderEntryProperties />
</component>
</module>
Modified: projects/gwt-console/branches/hbraun/war/gwt-war.iml
===================================================================
--- projects/gwt-console/branches/hbraun/war/gwt-war.iml 2009-03-31 07:12:28 UTC (rev
4363)
+++ projects/gwt-console/branches/hbraun/war/gwt-war.iml 2009-03-31 08:22:33 UTC (rev
4364)
@@ -131,6 +131,15 @@
<SOURCES />
</library>
</orderEntry>
+ <orderEntry type="module-library" exported="">
+ <library name="M2 Dep:
com.googlecode.gwtmosaic:gwt-mosaic-gwtx:jar:0.1.9:compile">
+ <CLASSES>
+ <root
url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/com/googlecode/gwtmosaic/gwt-mosaic-gwtx/0.1.9/gwt-mosaic-gwtx-0.1.9.jar!/"
/>
+ </CLASSES>
+ <JAVADOC />
+ <SOURCES />
+ </library>
+ </orderEntry>
<orderEntryProperties />
</component>
</module>
Modified:
projects/gwt-console/branches/hbraun/war/src/main/java/org/jboss/bpm/console/client/Application.java
===================================================================
---
projects/gwt-console/branches/hbraun/war/src/main/java/org/jboss/bpm/console/client/Application.java 2009-03-31
07:12:28 UTC (rev 4363)
+++
projects/gwt-console/branches/hbraun/war/src/main/java/org/jboss/bpm/console/client/Application.java 2009-03-31
08:22:33 UTC (rev 4364)
@@ -14,6 +14,7 @@
import org.gwt.mosaic.forms.client.builder.DefaultFormBuilder;
import org.gwt.mosaic.forms.client.layout.FormLayout;
import org.gwt.mosaic.ui.client.WindowPanel;
+import org.gwt.mosaic.ui.client.HTML;
import org.gwt.mosaic.ui.client.layout.BorderLayout;
import org.gwt.mosaic.ui.client.layout.BorderLayoutData;
import org.gwt.mosaic.ui.client.layout.LayoutPanel;
@@ -94,38 +95,20 @@
}
private void forceLogin()
- {
+ {
createLayoutWindowPanel();
- window.pack();
+ //window.pack();
window.center();
- window.show();
}
- private Widget createForm()
- {
- FormLayout layout = new FormLayout(
- "right:[40dlu,pref], 3dlu, 70dlu, 7dlu, "
- + "right:[40dlu,pref], 3dlu, 70dlu");
- DefaultFormBuilder builder = new DefaultFormBuilder(layout);
- builder.appendSeparator("Login");
-
- usernameInput = new TextBox();
- builder.append("Username:", usernameInput);
- builder.nextLine();
-
- passwordInput = new TextBox();
- builder.append("Password:", passwordInput);
- builder.nextLine();
-
- return builder.getPanel();
- }
-
/**
* The 'layout' window panel.
*/
private void createLayoutWindowPanel() {
window = new WindowPanel("jBPM Management Console");
- window.setAnimationEnabled(true);
+ window.setAnimationEnabled(false);
+ window.setSize("320px", "180px");
+
LayoutPanel panel = new LayoutPanel();
window.setWidget(panel);
createLayoutContent(panel);
@@ -145,10 +128,11 @@
* Create content for layout.
*/
private void createLayoutContent(LayoutPanel layoutPanel) {
+
layoutPanel.setLayout(new BorderLayout());
layoutPanel.setPadding(5);
- final Button submit = new Button("Subkit");
+ final Button submit = new Button("Submit");
submit.addClickListener(new ClickListener()
{
@@ -190,5 +174,28 @@
layoutPanel.add(createForm(), new BorderLayoutData(BorderLayout.Region.CENTER, 10,
200));
layoutPanel.add(submit, new BorderLayoutData(BorderLayout.Region.SOUTH, 10, 200));
+
}
+
+ private Widget createForm()
+ {
+ FormLayout layout = new FormLayout(
+ "right:pref, 10px, left:pref:grow", // 3 columns
+ "pref, pref, 5px, pref"); // 4 rows
+
+ DefaultFormBuilder builder = new DefaultFormBuilder(layout);
+ builder.appendSeparator("Login");
+
+ usernameInput = new TextBox();
+ builder.append("Username:", usernameInput);
+ builder.nextLine();
+
+ builder.nextLine(); // empty space
+
+ passwordInput = new TextBox();
+ builder.append("Password:", passwordInput);
+ builder.nextLine();
+
+ return builder.getPanel();
+ }
}
Show replies by date