[kune-commits] r1641 - in kune-sandbox: . .settings src/cc/kune/sandbox src/cc/kune/sandbox/client
Vicente J. Ruiz Jurado
vjrj_ at ourproject.org
Tue Dec 20 01:39:19 CET 2011
Author: vjrj_
Date: 2011-12-20 01:39:19 +0100 (Tue, 20 Dec 2011)
New Revision: 1641
Modified:
kune-sandbox/.classpath
kune-sandbox/.settings/com.google.gwt.eclipse.core.prefs
kune-sandbox/src/cc/kune/sandbox/KuneSandbox.gwt.xml
kune-sandbox/src/cc/kune/sandbox/client/KuneSandboxEntryPoint.java
Log:
Modified: kune-sandbox/.classpath
===================================================================
--- kune-sandbox/.classpath 2011-12-20 00:10:39 UTC (rev 1640)
+++ kune-sandbox/.classpath 2011-12-20 00:39:19 UTC (rev 1641)
@@ -11,5 +11,6 @@
<classpathentry kind="lib" path="lib/gin-r137.jar"/>
<classpathentry kind="lib" path="lib/guice-3.0-rc2.jar"/>
<classpathentry kind="lib" path="lib/gwtp-all-0.5.jar"/>
+ <classpathentry kind="lib" path="lib/gwt-plupload-1.1.jar"/>
<classpathentry kind="output" path="war/WEB-INF/classes"/>
</classpath>
Modified: kune-sandbox/.settings/com.google.gwt.eclipse.core.prefs
===================================================================
--- kune-sandbox/.settings/com.google.gwt.eclipse.core.prefs 2011-12-20 00:10:39 UTC (rev 1640)
+++ kune-sandbox/.settings/com.google.gwt.eclipse.core.prefs 2011-12-20 00:39:19 UTC (rev 1641)
@@ -1,5 +1,5 @@
-#Thu Jun 30 02:40:51 CEST 2011
+#Fri Nov 11 03:29:14 CET 2011
eclipse.preferences.version=1
entryPointModules=
filesCopiedToWebInfLib=gwt-servlet.jar
-gwtCompileSettings=PGd3dC1jb21waWxlLXNldHRpbmdzPjxsb2ctbGV2ZWw+SU5GTzwvbG9nLWxldmVsPjxvdXRwdXQtc3R5bGU+T0JGVVNDQVRFRDwvb3V0cHV0LXN0eWxlPjxleHRyYS1hcmdzPjwhW0NEQVRBW11dPjwvZXh0cmEtYXJncz48dm0tYXJncz48IVtDREFUQVstWG14NTEybV1dPjwvdm0tYXJncz48L2d3dC1jb21waWxlLXNldHRpbmdzPg\=\=
+gwtCompileSettings=PGd3dC1jb21waWxlLXNldHRpbmdzPjxsb2ctbGV2ZWw+SU5GTzwvbG9nLWxldmVsPjxvdXRwdXQtc3R5bGU+T0JGVVNDQVRFRDwvb3V0cHV0LXN0eWxlPjxleHRyYS1hcmdzPjwhW0NEQVRBW11dPjwvZXh0cmEtYXJncz48dm0tYXJncz48IVtDREFUQVstWG14NTEybV1dPjwvdm0tYXJncz48ZW50cnktcG9pbnQtbW9kdWxlPmNjLmt1bmUuc2FuZGJveC5LdW5lU2FuZGJveDwvZW50cnktcG9pbnQtbW9kdWxlPjwvZ3d0LWNvbXBpbGUtc2V0dGluZ3M+
Modified: kune-sandbox/src/cc/kune/sandbox/KuneSandbox.gwt.xml
===================================================================
--- kune-sandbox/src/cc/kune/sandbox/KuneSandbox.gwt.xml 2011-12-20 00:10:39 UTC (rev 1640)
+++ kune-sandbox/src/cc/kune/sandbox/KuneSandbox.gwt.xml 2011-12-20 00:39:19 UTC (rev 1641)
@@ -3,9 +3,10 @@
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User' />
<inherits name="cc.kune.msgs.KuneMsgs" />
- <inherits name="cc.kune.core.KuneCore" />
- <inherits name="cc.kune.wave.KuneWave" />
- <inherits name="org.adamtacy.GWTEffects"></inherits>
+<!-- <inherits name="cc.kune.core.KuneCore" /> -->
+ <inherits name="cc.kune.common.KuneCommon" />
+<!-- <inherits name="cc.kune.wave.KuneWave" /> -->
+<!-- <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. -->
@@ -20,4 +21,5 @@
<public path="public" />
<stylesheet src="kune-sandbox.css" />
<inherits name="com.extjs.gxt.ui.GXT" />
+<!-- <inherits name="plupload.Plupload"/> -->
</module>
Modified: kune-sandbox/src/cc/kune/sandbox/client/KuneSandboxEntryPoint.java
===================================================================
--- kune-sandbox/src/cc/kune/sandbox/client/KuneSandboxEntryPoint.java 2011-12-20 00:10:39 UTC (rev 1640)
+++ kune-sandbox/src/cc/kune/sandbox/client/KuneSandboxEntryPoint.java 2011-12-20 00:39:19 UTC (rev 1641)
@@ -1,54 +1,30 @@
package cc.kune.sandbox.client;
-import cc.kune.common.client.notify.NotifyLevel;
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.core.client.sub.SubtitlesWidget;
-import cc.kune.gspace.client.GSpaceArmorImpl;
-import cc.kune.gspace.client.tool.selector.ToolSelectorItemPanel;
-import cc.kune.gspace.client.tool.selector.ToolSelectorPanel;
-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.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;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Button;
-import com.google.gwt.user.client.ui.FlowPanel;
-import com.google.gwt.user.client.ui.IsWidget;
-import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
-import com.google.gwt.user.client.ui.VerticalPanel;
/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class KuneSandboxEntryPoint implements EntryPoint {
+ //
+ // private PopupBottomPanel pop;
- private PopupBottomPanel pop;
-
/**
* This is the entry point method.
*/
@Override
public void onModuleLoad() {
- testUserMessages();
+ // testUserMessages();
// testDialogs();
// testToolpanel();
// toolSelector.addWidget(new Label("Test"));
- // testTooltips();
+ testTooltips();
// testBarButtons();
// testPromptDialog();
@@ -56,31 +32,21 @@
// testAvatarDecorators();
// testSubWidget();
- }
- private void testSubWidget() {
- // String title = new String("Some big title áéíóú!");
- // String bTitle = Base64Utils.toBase64(title.getBytes());
- // String descr = new String("Some big description áéíóú");
- // String bDescr = Base64Utils.toBase64(descr.getBytes());
- //
- // final SubtitlesWidget sub = new SubtitlesWidget();
- // sub.setTitleText(new String(Base64Utils.fromBase64(bTitle)));
- // sub.setDescription(new String(Base64Utils.fromBase64(bDescr)));
- // sub.setSize(Window.getClientWidth() + "px", Window.getClientHeight() +
- // "px");
- // Button btn = new Button("Click me");
- // btn.addClickHandler(new ClickHandler() {
- // @Override
- // public void onClick(ClickEvent event) {
- //
- // sub.show();
- // }
- // });
- // RootPanel.get().add(btn);
- // RootPanel.get().add(sub);
+ // testPUload();
}
+ // private void testPUload() {
+ // final Button browseButton = new Button();
+ // browseButton.getElement().setId("my-browse-button");
+ // final PluploadBuilder builder = new PluploadBuilder();
+ // // ADD ANY PLUPLOAD PROPERTIES HERE
+ // builder.uploadUrl("server/upload.php");
+ // builder.browseButton("my-browse-button");
+ // final Plupload plupload = builder.create();
+ // RootPanel.get().add(browseButton);
+ // }
+
private void testAvatarDecorators() {
// BasicThumb thumb = new
// BasicThumb("http://kune.beta.iepala.es/others/unknown.jpg", 50, "kk",
@@ -95,46 +61,48 @@
// RootPanel.get().add(avatarDecorator);
}
- private void testPromptDialog() {
- 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");
- btn1.addStyleName("k-button");
- btn1.addStyleName("k-button-left");
- btn2.addStyleName("k-button");
- btn2.addStyleName("k-button-center");
- btn3.addStyleName("k-button");
- btn3.addStyleName("k-button-right");
- btn1.addStyleName("kune-Margin-Large-t");
- btn2.addStyleName("kune-Margin-Large-t");
- btn3.addStyleName("kune-Margin-Large-t");
- btn1.addStyleName("k-fl");
- btn2.addStyleName("k-fl");
- btn3.addStyleName("k-fl");
- FlowPanel vp = new FlowPanel();
- vp.add(btn1);
- vp.add(btn2);
- vp.add(btn3);
- RootPanel.get().add(vp);
- }
-
+ //
+ // private void testPromptDialog() {
+ // Builder builder = new PromptTopDialog.Builder("kkj-kk", "Some ask text?",
+ // false, true, Direction.LTR);
+ // 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");
+ // btn1.addStyleName("k-button");
+ // btn1.addStyleName("k-button-left");
+ // btn2.addStyleName("k-button");
+ // btn2.addStyleName("k-button-center");
+ // btn3.addStyleName("k-button");
+ // btn3.addStyleName("k-button-right");
+ // btn1.addStyleName("kune-Margin-Large-t");
+ // btn2.addStyleName("kune-Margin-Large-t");
+ // btn3.addStyleName("kune-Margin-Large-t");
+ // btn1.addStyleName("k-fl");
+ // btn2.addStyleName("k-fl");
+ // btn3.addStyleName("k-fl");
+ // FlowPanel vp = new FlowPanel();
+ // vp.add(btn1);
+ // vp.add(btn2);
+ // vp.add(btn3);
+ // RootPanel.get().add(vp);
+ // }
+ //
private void testTooltips() {
final AbsolutePanel panel = new AbsolutePanel();
final Button button = new Button("Btn 1");
@@ -148,124 +116,156 @@
panel.add(button2, clientWidth - 60, 5);
panel.add(button3, 5, clientHeight - 40);
panel.add(button4, clientWidth - 60, clientHeight - 40);
- Tooltip.to(button, "Some tooltip");
- Tooltip.to(button2, "Some tooltip");
- Tooltip.to(button3, "Some tooltip");
- Tooltip.to(button4, "Some tooltip");
+ Tooltip.to(button, "Some tooltip, Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec vitae eros. ").setWidth(100);
+ Tooltip.to(button2, "Some tooltip, Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec vitae eros. ").setWidth(100);
+ Tooltip.to(button3, "Some tooltip, Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec vitae eros. ").setWidth(100);
+ Tooltip.to(button4, "Some tooltip, Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec vitae eros. ").setWidth(100);
// DOM.setElementProperty(button2.getElement(), "position", "relative");
RootPanel.get().add(panel);
}
- private void testToolpanel() {
- ToolSelectorPanel toolSelector = new ToolSelectorPanel(new GSpaceArmorImpl(null), null);
- ToolSelectorItemPanel toolItem1 = new ToolSelectorItemPanel();
- toolItem1.getLabel().setText("documents");
- ToolSelectorItemPanel toolItem2 = new ToolSelectorItemPanel();
- toolItem2.getLabel().setText("something very longgggggg");
- ToolSelectorItemPanel toolItem3 = new ToolSelectorItemPanel();
- toolItem3.getLabel().setText("media");
- toolSelector.addItem(toolItem1);
- toolSelector.addItem(toolItem2);
- toolSelector.addItem(toolItem3);
- toolItem1.setSelected(true);
- toolItem2.setSelected(false);
- toolItem3.setSelected(false);
- toolSelector.asWidget().setWidth("200px");
- RootPanel.get().add(toolSelector.asWidget());
- }
+ //
+ // private void testToolpanel() {
+ // ToolSelectorPanel toolSelector = new ToolSelectorPanel(new
+ // GSpaceArmorImpl(null), null);
+ // ToolSelectorItemPanel toolItem1 = new ToolSelectorItemPanel();
+ // toolItem1.getLabel().setText("documents");
+ // ToolSelectorItemPanel toolItem2 = new ToolSelectorItemPanel();
+ // toolItem2.getLabel().setText("something very longgggggg");
+ // ToolSelectorItemPanel toolItem3 = new ToolSelectorItemPanel();
+ // toolItem3.getLabel().setText("media");
+ // toolSelector.addItem(toolItem1);
+ // toolSelector.addItem(toolItem2);
+ // toolSelector.addItem(toolItem3);
+ // toolItem1.setSelected(true);
+ // toolItem2.setSelected(false);
+ // toolItem3.setSelected(false);
+ // toolSelector.asWidget().setWidth("200px");
+ // RootPanel.get().add(toolSelector.asWidget());
+ // }
+ //
+ // private void postAdd(final PopupBottomPanel pop) {
+ // pop.setCenterPosition();
+ // }
+ //
+ // private void postAdd(final PopupTopPanel pop) {
+ // pop.setCenterPosition();
+ // }
+ //
+ // private void testDialogs() {
+ // final PopupTopPanel pop2 = new PopupTopPanel(false, true);
+ // pop2.setGlassEnabled(true);
+ // final BasicDialog dialog = new BasicDialog();
+ // pop2.add(dialog);
+ //
+ // dialog.getTitleText().setText("Title");
+ // dialog.setFirstBtnText("Accept");
+ // dialog.setSecondBtnText("Cancel");
+ // dialog.setFirstBtnTabIndex(2);
+ // dialog.setSecondBtnTabIndex(3);
+ // final VerticalPanel sPanel = new VerticalPanel();
+ // sPanel.add(new Label("lo que sea"));
+ // final Button btn = new Button("lo que sea");
+ // btn.setTabIndex(1);
+ // btn.setFocus(true);
+ // sPanel.add(btn);
+ // sPanel.setSize("300px", "150px");
+ // dialog.getInnerPanel().add((IsWidget) sPanel);
+ // final Label label = new Label("Test label");
+ // // final NotifyLevelImages levelImg =
+ // // GWT.create(NotifyLevelImages.class);
+ // // dialog.getBottomPanel().add(new MessagePanel(levelImg, "kk"));
+ // final MaskWidget mask = new MaskWidget();
+ //
+ // RootPanel.get().add(label);
+ // pop2.showNear(label);
+ // // final String zIndex = DOM.getStyleAttribute(pop2.getElement(),
+ // // "zIndex");
+ // DOM.setStyleAttribute(pop.getElement(), "zIndex", "10000");
+ // mask.mask(pop2, "JAarrrrr!");
+ // }
+ //
+ // private void testUserMessages() {
+ // final UserMessagesPanel panel = new UserMessagesPanel();
+ // UserMessage.setFadeMills(3000);
+ // UserMessage.setCloseTitle("Close message");
+ // panel.setWidth("422px");
+ // final UserMessagesPresenter presenter = new UserMessagesPresenter();
+ // presenter.init(panel);
+ //
+ // pop = new PopupBottomPanel();
+ // 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);
+ //
+ // final 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);
+ // }
+ // };
+ // final 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);
+ // presenter.add(NotifyLevel.important, "", "Lorem ", "", true, closeCalback);
+ // presenter.add(NotifyLevel.important, "", "Lorem ", "", false,
+ // closeCalback);
+ // presenter.add(NotifyLevel.important, "", "Lorem ", "", false,
+ // closeCalback);
+ // presenter.add(NotifyLevel.important, "", "Lorem ", "", false,
+ // closeCalback);
+ // postAdd(pop);
+ // }
+ // };
+ // time.schedule(1000);
+ // time2.schedule(5000);
+ // pop.show();
+ //
+ // }
- private void postAdd(final PopupBottomPanel pop) {
- pop.setCenterPosition();
+ private void testSubWidget() {
+ // String title = new String("Some big title áéíóú!");
+ // String bTitle = Base64Utils.toBase64(title.getBytes());
+ // String descr = new String("Some big description áéíóú");
+ // String bDescr = Base64Utils.toBase64(descr.getBytes());
+ //
+ // final SubtitlesWidget sub = new SubtitlesWidget();
+ // sub.setTitleText(new String(Base64Utils.fromBase64(bTitle)));
+ // sub.setDescription(new String(Base64Utils.fromBase64(bDescr)));
+ // sub.setSize(Window.getClientWidth() + "px", Window.getClientHeight() +
+ // "px");
+ // Button btn = new Button("Click me");
+ // btn.addClickHandler(new ClickHandler() {
+ // @Override
+ // public void onClick(ClickEvent event) {
+ //
+ // sub.show();
+ // }
+ // });
+ // RootPanel.get().add(btn);
+ // RootPanel.get().add(sub);
}
-
- private void postAdd(final PopupTopPanel pop) {
- pop.setCenterPosition();
- }
-
- private void testDialogs() {
- final PopupTopPanel pop2 = new PopupTopPanel(false, true);
- pop2.setGlassEnabled(true);
- final BasicDialog dialog = new BasicDialog();
- pop2.add(dialog);
-
- dialog.getTitleText().setText("Title");
- dialog.setFirstBtnText("Accept");
- dialog.setSecondBtnText("Cancel");
- dialog.setFirstBtnTabIndex(2);
- dialog.setSecondBtnTabIndex(3);
- final VerticalPanel sPanel = new VerticalPanel();
- sPanel.add(new Label("lo que sea"));
- final Button btn = new Button("lo que sea");
- btn.setTabIndex(1);
- btn.setFocus(true);
- sPanel.add(btn);
- sPanel.setSize("300px", "150px");
- dialog.getInnerPanel().add((IsWidget) sPanel);
- final Label label = new Label("Test label");
- // final NotifyLevelImages levelImg =
- // GWT.create(NotifyLevelImages.class);
- // dialog.getBottomPanel().add(new MessagePanel(levelImg, "kk"));
- final MaskWidget mask = new MaskWidget();
-
- RootPanel.get().add(label);
- pop2.showNear(label);
- // final String zIndex = DOM.getStyleAttribute(pop2.getElement(),
- // "zIndex");
- DOM.setStyleAttribute(pop.getElement(), "zIndex", "10000");
- mask.mask(pop2, "JAarrrrr!");
- }
-
- private void testUserMessages() {
- final UserMessagesPanel panel = new UserMessagesPanel();
- UserMessage.setFadeMills(3000);
- UserMessage.setCloseTitle("Close message");
- panel.setWidth("422px");
- final UserMessagesPresenter presenter = new UserMessagesPresenter();
- presenter.init(panel);
-
- pop = new PopupBottomPanel();
- 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);
-
- final 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);
- }
- };
- final 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);
- presenter.add(NotifyLevel.important, "", "Lorem ", "", true, closeCalback);
- presenter.add(NotifyLevel.important, "", "Lorem ", "", false, closeCalback);
- presenter.add(NotifyLevel.important, "", "Lorem ", "", false, closeCalback);
- presenter.add(NotifyLevel.important, "", "Lorem ", "", false, closeCalback);
- postAdd(pop);
- }
- };
- time.schedule(1000);
- time2.schedule(5000);
- pop.show();
-
- }
}
More information about the kune-commits
mailing list