Saturday, June 22, 2013

Re: Introducing GWT-Tour 0.1

This is my entry point.

package com.ibal.cervello.client;

import com.ibal.cervello.client.views.AddInvoice;
import com.ibal.cervello.client.views.MenuBar;
import com.eemi.gwt.tour.client.GwtTour;
import com.eemi.gwt.tour.client.Placement;
import com.eemi.gwt.tour.client.Tour;
import com.eemi.gwt.tour.client.TourStep;
import com.github.gwtbootstrap.client.ui.Button;
import com.github.gwtbootstrap.client.ui.constants.IconType;
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.ui.RootPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class Cervello implements EntryPoint {

/**
* This is the entry point method.
*/
public void onModuleLoad() {
RootPanel.get().add(new MenuBar());
RootPanel.get().add(new AddInvoice());

Button btnTour = new Button("Test Tour");
btnTour.setBaseIcon(IconType.ENVELOPE);
RootPanel.get().add(btnTour);

// Define the tour!
final Tour tour = new Tour("myTour");

TourStep step = new TourStep(Placement.LEFT, btnTour);
step.setContent("Test button");
step.setTitle("Comment");
tour.addStep(step);

// Start the tour!
btnTour.addClickHandler(new ClickHandler() {

@Override
public void onClick(ClickEvent event) {
GwtTour.startTour(tour);
}
});

}
}


Le samedi 22 juin 2013 11:45:20 UTC-4, Alain a écrit :
First  Thx for the nice feedback.
The Jar should work.
Can you please post your sample code ? 




2013/6/22 JoyaleXandre <joyale...@gmail.com>
I can't make it work with the jar. I get this message and nothing append when I click on launch the GwtTour.startTour event. Does the jar works?

[WARN] 404 - GET /img/sprite-green-0.3.png (127.0.0.1) 1410 bytes
   Request headers
      Host: 127.0.0.1:8888
      Connection: keep-alive
      Accept: */*
      User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36
      Accept-Encoding: gzip,deflate,sdch
      Accept-Language: en-US,en;q=0.8
   Response headers
      Content-Type: text/html; charset=iso-8859-1
      Content-Length: 1410

Le vendredi 21 juin 2013 18:22:57 UTC-4, Alain a écrit :
GWT-Tour is a small GWT library that can help you implement a nice tour of your GWT/Web app.

So if you ever wanted to show your users how to use your application in an interactive way this can be usefull.
GWT-Tour works with regular web app as well as with GWT Widgets.

A demo can be seen here : http://eemi2010.github.io/gwt-tour/

Enjoy :)

Alain 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment