[kune-commits] r1181 - / kune-sandbox kune-sandbox/lib kune-sandbox/src kune-sandbox/src/cc kune-sandbox/src/cc/kune kune-sandbox/src/cc/kune/sandbox kune-sandbox/src/cc/kune/sandbox/client kune-sandbox/src/cc/kune/sandbox/public kune-sandbox/test kune-sandbox/test/cc kune-sandbox/test/cc/kune kune-sandbox/test/cc/kune/messages kune-sandbox/war kune-sandbox/war/WEB-INF

Vicente J. Ruiz Jurado vjrj_ at ourproject.org
Tue Jan 11 03:03:09 CET 2011


Author: vjrj_
Date: 2011-01-11 03:03:09 +0100 (Tue, 11 Jan 2011)
New Revision: 1181

Added:
   kune-sandbox/
   kune-sandbox/lib/
   kune-sandbox/lib/GWT FX v0.5.0 MS 1.jar
   kune-sandbox/lib/gxt.jar
   kune-sandbox/src/
   kune-sandbox/src/cc/
   kune-sandbox/src/cc/kune/
   kune-sandbox/src/cc/kune/sandbox/
   kune-sandbox/src/cc/kune/sandbox/KuneSandbox.gwt.xml
   kune-sandbox/src/cc/kune/sandbox/client/
   kune-sandbox/src/cc/kune/sandbox/client/KuneSandboxEntryPoint.java
   kune-sandbox/src/cc/kune/sandbox/public/
   kune-sandbox/src/cc/kune/sandbox/public/kune-sandbox.css
   kune-sandbox/test/
   kune-sandbox/test/cc/
   kune-sandbox/test/cc/kune/
   kune-sandbox/test/cc/kune/messages/
   kune-sandbox/test/cc/kune/messages/client/
   kune-sandbox/war/
   kune-sandbox/war/Kune_sandbox.css
   kune-sandbox/war/Kune_sandbox.html
   kune-sandbox/war/WEB-INF/
   kune-sandbox/war/WEB-INF/web.xml
Log:
CLOSED - # 12: kune-sandbox for testing small ui develompents 
http://kune.ourproject.org/issues/ticket/12

Added: kune-sandbox/lib/GWT FX v0.5.0 MS 1.jar
===================================================================
(Binary files differ)


Property changes on: kune-sandbox/lib/GWT FX v0.5.0 MS 1.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: kune-sandbox/lib/gxt.jar
===================================================================
(Binary files differ)


Property changes on: kune-sandbox/lib/gxt.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: kune-sandbox/src/cc/kune/sandbox/KuneSandbox.gwt.xml
===================================================================
--- kune-sandbox/src/cc/kune/sandbox/KuneSandbox.gwt.xml	                        (rev 0)
+++ kune-sandbox/src/cc/kune/sandbox/KuneSandbox.gwt.xml	2011-01-11 02:03:09 UTC (rev 1181)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module rename-to='kune_sandbox'>
+  <!-- Inherit the core Web Toolkit stuff. -->
+  <inherits name='com.google.gwt.user.User' />
+  <inherits name="cc.kune.msgs.KuneMsgs" />
+  <inherits name="cc.kune.core.Core" />
+  <inherits name="org.adamtacy.GWTEffects"></inherits>
+  <!-- Inherit the default GWT style sheet. You can change -->
+  <!-- the theme of your GWT application by uncommenting -->
+  <!-- any one of the following lines. -->
+  <!-- <inherits name='com.google.gwt.user.theme.standard.Standard'/> -->
+  <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
+  <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/> -->
+  <!-- Other module inherits -->
+  <!-- Specify the app entry point class. -->
+  <entry-point class='cc.kune.sandbox.client.KuneSandboxEntryPoint' />
+  <!-- Specify the paths for translatable code -->
+  <source path='client' />
+  <public path="public" />
+  <stylesheet src="kune-sandbox.css" />
+  <set-property name="user.agent" value="safari,gecko1_8" />
+   <inherits name="com.extjs.gxt.ui.GXT" /> 
+</module>

Added: kune-sandbox/src/cc/kune/sandbox/client/KuneSandboxEntryPoint.java
===================================================================
--- kune-sandbox/src/cc/kune/sandbox/client/KuneSandboxEntryPoint.java	                        (rev 0)
+++ kune-sandbox/src/cc/kune/sandbox/client/KuneSandboxEntryPoint.java	2011-01-11 02:03:09 UTC (rev 1181)
@@ -0,0 +1,96 @@
+package cc.kune.sandbox.client;
+
+import cc.kune.common.client.noti.NotifyLevel;
+import cc.kune.common.client.ui.PopupPanelBottomCentered;
+import cc.kune.common.client.ui.PopupPanelTopCentered;
+import cc.kune.core.client.ui.dialogs.TwoButtonsDialog;
+import cc.kune.msgs.client.CloseCallback;
+import cc.kune.msgs.client.UserMessage;
+import cc.kune.msgs.client.UserMessagesPanel;
+import cc.kune.msgs.client.UserMessagesPresenter;
+
+import com.extjs.gxt.ui.client.widget.button.Button;
+import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.user.client.Timer;
+import com.google.gwt.user.client.ui.IsWidget;
+import com.google.gwt.user.client.ui.Label;
+import com.google.gwt.user.client.ui.VerticalPanel;
+
+/**
+ * Entry point classes define <code>onModuleLoad()</code>.
+ */
+public class KuneSandboxEntryPoint implements EntryPoint {
+
+    /**
+     * This is the entry point method.
+     */
+    @Override
+    public void onModuleLoad() {
+        final UserMessagesPanel panel = new UserMessagesPanel();
+        UserMessage.setFadeMills(3000);
+        UserMessage.setCloseTitle("Close message");
+        panel.setWidth("422px");
+        final UserMessagesPresenter presenter = new UserMessagesPresenter();
+        presenter.init(panel);
+        final PopupPanelBottomCentered pop = new PopupPanelBottomCentered();
+        final CloseCallback closeCalback = new CloseCallback() {
+            @Override
+            public void onClose() {
+                pop.setCenterPosition();
+            }
+        };
+        presenter.add(NotifyLevel.info, "Title", "Lorem ipsum dolor sit amet, consectetuer adipiscing elit", false,
+                closeCalback);
+        postAdd(pop);
+        presenter.add(NotifyLevel.error, "Title", "Lorem ipsum dolor sit amet, consectetuer adipiscing elit", false,
+                closeCalback);
+        pop.add(panel);
+        postAdd(pop);
+        Timer time = new Timer() {
+            @Override
+            public void run() {
+                presenter.add(
+                        NotifyLevel.error,
+                        "",
+                        "Lorem <a href='/'>ipsum</a> dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit",
+                        true, closeCalback);
+                postAdd(pop);
+            }
+        };
+        Timer time2 = new Timer() {
+            @Override
+            public void run() {
+                presenter.add(NotifyLevel.important, "", "Lorem ", false, closeCalback);
+                postAdd(pop);
+                presenter.add(NotifyLevel.important, "Title", "Lorem ", true, closeCalback);
+                postAdd(pop);
+            }
+        };
+        time.schedule(1000);
+        time2.schedule(2000);
+        pop.show();
+
+        PopupPanelTopCentered pop2 = new PopupPanelTopCentered(false, true);
+        pop2.setGlassEnabled(true);
+        TwoButtonsDialog dialog = new TwoButtonsDialog();
+        pop2.add(dialog);
+
+        dialog.getTitleText().setText("Title");
+        dialog.getFirstBtnText().setText("Accept");
+        dialog.getSecondBtnText().setText("Cancel");
+        VerticalPanel sPanel = new VerticalPanel();
+        sPanel.add(new Label("lo que sea"));
+        sPanel.add(new Button("lo que sea"));
+        sPanel.setSize("300px", "150px");
+        dialog.getInnerPanel().add((IsWidget) sPanel);
+        pop2.show();
+    }
+
+    private void postAdd(final PopupPanelTopCentered pop) {
+        pop.setCenterPosition();
+    }
+
+    private void postAdd(final PopupPanelBottomCentered pop) {
+        pop.setCenterPosition();
+    }
+}

Added: kune-sandbox/src/cc/kune/sandbox/public/kune-sandbox.css
===================================================================

Added: kune-sandbox/war/Kune_sandbox.css
===================================================================
--- kune-sandbox/war/Kune_sandbox.css	                        (rev 0)
+++ kune-sandbox/war/Kune_sandbox.css	2011-01-11 02:03:09 UTC (rev 1181)
@@ -0,0 +1,34 @@
+/** Add css rules here for your application. */
+
+
+/** Example rules used by the template application (remove for your app) */
+h1 {
+  font-size: 2em;
+  font-weight: bold;
+  color: #777777;
+  margin: 40px 0px 70px;
+  text-align: center;
+}
+
+.sendButton {
+  display: block;
+  font-size: 16pt;
+}
+
+/** Most GWT widgets already have a style name defined */
+.gwt-DialogBox {
+  width: 400px;
+}
+
+.dialogVPanel {
+  margin: 5px;
+}
+
+.serverResponseLabelError {
+  color: red;
+}
+
+/** Set ids using widget.getElement().setId("idOfElement") */
+#closeButton {
+  margin: 15px 6px 6px;
+}

Added: kune-sandbox/war/Kune_sandbox.html
===================================================================
--- kune-sandbox/war/Kune_sandbox.html	                        (rev 0)
+++ kune-sandbox/war/Kune_sandbox.html	2011-01-11 02:03:09 UTC (rev 1181)
@@ -0,0 +1,49 @@
+<!doctype html>
+<!-- The DOCTYPE declaration above will set the    -->
+<!-- browser's rendering engine into               -->
+<!-- "Standards Mode". Replacing this declaration  -->
+<!-- with a "Quirks Mode" doctype may lead to some -->
+<!-- differences in layout.                        -->
+
+<html>
+  <head>
+    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
+
+    <!--                                                               -->
+    <!-- Consider inlining CSS to reduce the number of requested files -->
+    <!--                                                               -->
+    <link type="text/css" rel="stylesheet" href="ExtGWT/css/gxt-all.css">
+    <link type="text/css" rel="stylesheet" href="Kune_sandbox.css">
+    <!--                                           -->
+    <!-- Any title is fine                         -->
+    <!--                                           -->
+    <title></title>
+    
+    <!--                                           -->
+    <!-- This script loads your compiled module.   -->
+    <!-- If you add any GWT meta tags, they must   -->
+    <!-- be added before this line.                -->
+    <!--                                           -->
+    <script type="text/javascript" language="javascript" src="kune_sandbox/kune_sandbox.nocache.js"></script>
+  </head>
+
+  <!--                                           -->
+  <!-- The body can have arbitrary html, or      -->
+  <!-- you can leave the body empty if you want  -->
+  <!-- to create a completely dynamic UI.        -->
+  <!--                                           -->
+  <body>
+
+    <!-- OPTIONAL: include this if you want history support -->
+    <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
+    
+    <!-- RECOMMENDED if your web app will not function without JavaScript enabled -->
+    <noscript>
+      <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif">
+        Your web browser must have JavaScript enabled
+        in order for this application to display correctly.
+      </div>
+    </noscript>
+
+  </body>
+</html>

Added: kune-sandbox/war/WEB-INF/web.xml
===================================================================
--- kune-sandbox/war/WEB-INF/web.xml	                        (rev 0)
+++ kune-sandbox/war/WEB-INF/web.xml	2011-01-11 02:03:09 UTC (rev 1181)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE web-app
+    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+    "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+ 
+  
+  <!-- Default page to serve -->
+  <welcome-file-list>
+    <welcome-file>Kune_messages.html</welcome-file>
+  </welcome-file-list>
+
+</web-app>




More information about the kune-commits mailing list