[kune-commits] r1404 - in kune-sandbox: . src/cc/kune/sandbox/client war war/WEB-INF

Vicente J. Ruiz Jurado vjrj_ at ourproject.org
Tue Jun 14 13:20:44 CEST 2011


Author: vjrj_
Date: 2011-06-14 13:20:43 +0200 (Tue, 14 Jun 2011)
New Revision: 1404

Removed:
   kune-sandbox/war/kune_sandbox/
Modified:
   kune-sandbox/
   kune-sandbox/src/cc/kune/sandbox/client/KuneSandboxEntryPoint.java
   kune-sandbox/war/
   kune-sandbox/war/WEB-INF/
Log:
sandbox update


Property changes on: kune-sandbox
___________________________________________________________________
Name: svn:ignore
   + test-classes


Modified: kune-sandbox/src/cc/kune/sandbox/client/KuneSandboxEntryPoint.java
===================================================================
--- kune-sandbox/src/cc/kune/sandbox/client/KuneSandboxEntryPoint.java	2011-06-13 16:17:19 UTC (rev 1403)
+++ kune-sandbox/src/cc/kune/sandbox/client/KuneSandboxEntryPoint.java	2011-06-14 11:20:43 UTC (rev 1404)
@@ -1,11 +1,15 @@
 package cc.kune.sandbox.client;
 
 import cc.kune.common.client.notify.NotifyLevel;
+import cc.kune.common.client.notify.NotifyUser;
 import cc.kune.common.client.tooltip.Tooltip;
 import cc.kune.common.client.ui.MaskWidget;
 import cc.kune.common.client.ui.PopupBottomPanel;
 import cc.kune.common.client.ui.PopupTopPanel;
 import cc.kune.common.client.ui.dialogs.BasicDialog;
+import cc.kune.common.client.ui.dialogs.PromptTopDialog;
+import cc.kune.common.client.ui.dialogs.PromptTopDialog.Builder;
+import cc.kune.common.client.utils.TextUtils;
 import cc.kune.gspace.client.GSpaceArmorImpl;
 import cc.kune.gspace.client.tool.selector.ToolSelectorItemPanel;
 import cc.kune.gspace.client.tool.selector.ToolSelectorPanel;
@@ -15,6 +19,8 @@
 import cc.kune.msgs.client.UserMessagesPresenter;
 
 import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.event.dom.client.ClickEvent;
+import com.google.gwt.event.dom.client.ClickHandler;
 import com.google.gwt.user.client.DOM;
 import com.google.gwt.user.client.Timer;
 import com.google.gwt.user.client.Window;
@@ -43,6 +49,25 @@
     // testToolpanel();
     // toolSelector.addWidget(new Label("Test"));
     // testTooltips();
+    //testBarButtons();
+
+    Builder builder = new PromptTopDialog.Builder("kkj-kk", "Some ask text?", false, true);
+    builder.width("200px").height("200px").firstButtonTitle("Create").sndButtonTitle("Cancel");
+    builder.regex(TextUtils.UNIX_NAME).regexText("The name must contain only characters, numbers and dashes");
+    PromptTopDialog diag = builder.build();
+    diag.showCentered();
+    diag.focusOnTextBox();
+    diag.getFirstBtn().addClickHandler(new ClickHandler() {
+
+      @Override
+      public void onClick(ClickEvent event) {
+       Window.alert("ok");
+      }
+    });
+
+  }
+
+  private void testBarButtons() {
     Button btn1 = new Button("Btn 1");
     Button btn2 = new Button("Btn 2");
     Button btn3 = new Button("Btn 3");


Property changes on: kune-sandbox/war
___________________________________________________________________
Name: svn:ignore
   + kune_sandbox



Property changes on: kune-sandbox/war/WEB-INF
___________________________________________________________________
Name: svn:ignore
   + classes





More information about the kune-commits mailing list