Crease Invent
unread,Jul 26, 2012, 6:13:03 AM7/26/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gwt...@googlegroups.com
Hi, I´m doing one aplication gwt where I need a log for I go doing traces, but my problem is the next:
I don´t know where the applicacion leave the report log for afterward I look it and I see that the aplication has wrote.
I´m using IDE: Netbeans and my code is this:
//section import
import com.allen_sauer.gwt.log.client.Log;
//start class
public class Prueba implements EntryPoint {
...
public void onModuleLoad() {
//Declaro el recinto
final DrawingArea canvas = new DrawingArea(1024, 768);
final Circle circulo = new Circle(512, 50, 30);
circulo.setFillColor("red");
final Pulsada pulsada = new Pulsada();
//se crean los círculos nuevos
final Circle c1 = new Circle(256, 150, 30);
final Circle c2 = new Circle(512, 150, 30);
final Circle c3 = new Circle(768, 150, 30);
c1.setFillColor("green");
c2.setFillColor("green");
c3.setFillColor("green");
//se crean las nuevas líneas que unirán los nodos
final Line l1 = new Line(circulo.getX(), circulo.getY(), c1.getX(), c1.getY());
final Line l2 = new Line(circulo.getX(), circulo.getY(), c2.getX(), c2.getY());
final Line l3 = new Line(circulo.getX(), circulo.getY(), c3.getX(), c3.getY());
circulo.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
if(!pulsada.isHaSidoPulsado()){
ConsoleLogger cl = new ConsoleLogger();
Log.info("pulso el primero nodo");
...
}else{
...
Log.info("pulso otra vez el primero nodo para borrar");
canvas.remove(c1);
canvas.remove(c2);
...
}
...
}
Thanks.