Skip to content

Commit afd5556

Browse files
javierParamojavierParamo
authored andcommitted
Limpieza de imágenes y archiso que no utilizo
1 parent 4368ed8 commit afd5556

File tree

288 files changed

+3154
-1332
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

288 files changed

+3154
-1332
lines changed
Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.7.0//EN"
33
"http://gwtproject.org/doctype/2.7.0/gwt-module.dtd">
4+
5+
<!-- author: Francisco Javier Páramo Arnaiz.
6+
version: 1.0 -->
7+
48
<module rename-to='gramaticacs'>
5-
<inherits name='com.google.gwt.user.User'/>
6-
<inherits name='com.google.gwt.user.theme.clean.Clean'/>
7-
<inherits name='com.google.gwt.user.theme.clean.Clean'/>
8-
<stylesheet src='/GramaticaCS.css' />
9-
<entry-point class='src.client.main'/>
10-
<extend-property name="locale" values="es,de,fr,en"/>
11-
<source path='client'/>
12-
<source path='shared'/>
9+
<inherits name='com.google.gwt.user.User' />
10+
<inherits name='com.google.gwt.user.theme.clean.Clean' />
11+
<stylesheet src='/GramaticaCS.css' />
12+
<entry-point class='src.client.main' />
13+
<extend-property name="locale" values="es,de,fr,en" />
14+
<source path='client' />
15+
<source path='shared' />
1316

14-
<!-- allow Super Dev Mode -->
15-
<add-linker name="xsiframe"/>
17+
<!-- Permite el Super Dev Mode -->
18+
<add-linker name="xsiframe" />
1619
</module>

Aplicacion/Thoth-Web/src/src/Login.gwt.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22

33
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.7.0//EN"
44
"http://gwtproject.org/doctype/2.7.0/gwt-module.dtd">
5+
<!-- author: Francisco Javier Páramo Arnaiz.
6+
version: 1.0 -->
57
<module rename-to='login'>
6-
<!-- Inherit the core Web Toolkit stuff. -->
78
<inherits name='com.google.gwt.user.User'/>
8-
<inherits name='com.google.gwt.user.theme.standard.Standard'/>
9-
<!-- Specify the app entry point class. -->
109
<entry-point class='src.client.login.Login'/>
11-
<!-- Specify the paths for translatable code -->
1210
<source path='client'/>
1311
<source path='shared'/>
12+
<add-linker name="xsiframe" />
1413
</module>

Aplicacion/Thoth-Web/src/src/client/GrammarService.java

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,32 @@
22

33
import src.client.core.grammar.Grammar;
44

5-
65
import com.google.gwt.user.client.rpc.RemoteService;
76
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
87

8+
/**
9+
* <b>Descripción</b><br>
10+
* Interfaz para la comunicación RPC entre cliente y servidor
11+
* <p>
12+
* <b>Detalles</b><br>
13+
* Interfaz asociada a otra, GrammarServiceAsync, que establecen la comunicación
14+
* asíncorna con el servidor.<br>
15+
* </p>
16+
* <p>
17+
* <b>Funcionalidad</b><br>
18+
* comunicación cliente-servidor.
19+
* </p>
20+
*
21+
* @author Francisco Javier Páramo Arnaiz.
22+
* @version 1.0
23+
*/
924
@RemoteServiceRelativePath("grammarservice")
10-
public interface GrammarService extends RemoteService{
11-
25+
public interface GrammarService extends RemoteService {
1226

13-
public Grammar checkContent(String name);
27+
/**
28+
* Funcion checkContent en la interfaz GrammarService
29+
* @param grammar gramatica
30+
* @return
31+
*/
32+
public Grammar checkContent(String grammar);
1433
}

Aplicacion/Thoth-Web/src/src/client/GrammarServiceAsync.java

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,28 @@
22

33
import com.google.gwt.user.client.rpc.AsyncCallback;
44

5-
5+
/**
6+
* <b>Descripción</b><br>
7+
* Interfaz para la comunicación RPC entre cliente y servidor
8+
* <p>
9+
* <b>Detalles</b><br>
10+
* Interfaz asociada a otra, GrammarService, que establecen la comunicación
11+
* asíncorna con el servidor.<br>
12+
* </p>
13+
* <p>
14+
* <b>Funcionalidad</b><br>
15+
* comunicación cliente-servidor.
16+
* </p>
17+
*
18+
* @author Francisco Javier Páramo Arnaiz.
19+
* @version 1.0
20+
*/
621
public interface GrammarServiceAsync {
22+
/**
23+
* checkContent en la interfaz GrammarServiceasync
24+
*
25+
* @param grammar gramatica
26+
* @param callback
27+
*/
728
void checkContent(String grammar, AsyncCallback callback);
829
}

Aplicacion/Thoth-Web/src/src/client/GrammarServiceClientImp.java

Lines changed: 54 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,85 +7,113 @@
77
import com.google.gwt.user.client.rpc.AsyncCallback;
88
import com.google.gwt.user.client.rpc.ServiceDefTarget;
99

10+
/**
11+
* <b>Descripción</b><br>
12+
* Clase que agrupa las funciones de la gramática con peticiones al servidor.
13+
* <p>
14+
* <b>Funcionalidad</b><br>
15+
* Checkeo de la gramática.
16+
* </p>
17+
*
18+
* @author Francisco Javier Páramo Arnaiz.
19+
* @version 1.0
20+
*/
1021
public class GrammarServiceClientImp {
11-
22+
23+
/**
24+
*
25+
*/
1226
private GrammarServiceAsync service;
13-
27+
28+
/**
29+
* Variable de la clase mainGui
30+
*/
1431
private mainGui mainGUI;
1532

1633
/**
1734
* Contructor de GrammarService en el lado del cliente
1835
*
1936
* @param url
2037
*/
21-
public GrammarServiceClientImp (String url){
38+
public GrammarServiceClientImp(String url) {
2239
System.out.println(url);
2340
this.service = GWT.create(GrammarService.class);
2441
ServiceDefTarget endpoint = (ServiceDefTarget) this.service;
2542
endpoint.setServiceEntryPoint(url);
26-
43+
2744
this.mainGUI = new mainGui(this);
28-
}
29-
45+
}//GrammarServiceClientImp
46+
3047
/**
48+
* Contructor de GrammarService en el lado del cliente al que se le pasa
49+
* ademas una gramatica
3150
*
3251
* @param url
3352
* @param grammar
53+
* Gramatica
3454
*/
35-
public GrammarServiceClientImp (String url, Grammar grammar){
55+
public GrammarServiceClientImp(String url, Grammar grammar) {
3656
System.out.println(url);
3757
this.service = GWT.create(GrammarService.class);
3858
ServiceDefTarget endpoint = (ServiceDefTarget) this.service;
3959
endpoint.setServiceEntryPoint(url);
40-
60+
4161
this.mainGUI = new mainGui(this, grammar);
42-
}
62+
}//GrammarServiceClientImp
4363

4464
/**
65+
* Contructor de GrammarService en el lado del cliente al que se le pasa
66+
* ademas un texto.
4567
*
4668
* @param url
4769
* @param grammarText
70+
* Gramatica en formato texto.
4871
*/
49-
public GrammarServiceClientImp (String url, String grammarText){
72+
public GrammarServiceClientImp(String url, String grammarText) {
5073
System.out.println(url);
5174
this.service = GWT.create(GrammarService.class);
5275
ServiceDefTarget endpoint = (ServiceDefTarget) this.service;
5376
endpoint.setServiceEntryPoint(url);
54-
77+
5578
this.mainGUI = new mainGui(this, grammarText);
56-
}
57-
79+
}//GrammarServiceClientImp
80+
81+
/**
82+
* Función de ayuda que llama a la clase mainGui.
83+
*
84+
* @return intancia de la clase.
85+
*/
5886
public mainGui getManGUI(){
5987
return this.mainGUI;
6088
}
6189

6290
/**
91+
* Checkeo del contenido en el textArea de mainGui realiza la peticion al
92+
* servidor.
6393
*
64-
* @param grammar
94+
* @param grammar gramatica a checkear.
6595
*/
66-
public void checkContent(String grammar){
67-
this.service.checkContent(grammar, new AsyncCallback(){
96+
public void checkContent(String grammar) {
97+
this.service.checkContent(grammar, new AsyncCallback<Object>() {
6898

6999
@Override
70100
public void onFailure(Throwable caught) {
71101
System.out.println("Ha ocurrido un error");
72-
102+
73103
}
74104

75105
@Override
76106
public void onSuccess(Object result) {
77-
if (result instanceof Grammar){
78-
Grammar grammar = ((Grammar)result);
107+
if (result instanceof Grammar) {
108+
Grammar grammar = ((Grammar) result);
79109
mainGUI.updateLabel(grammar);
80110
}
81-
111+
82112
if (result instanceof Exception) {
83-
//mangui.updateLabel(((Exception)result).getMessage());
113+
System.out.println("Ha ocurrido un error");
84114
}
85115
}
86-
87-
});
88-
}
89-
90-
}
91116

117+
});
118+
}//checkContent
119+
}//GrammarServiceClientImp

Aplicacion/Thoth-Web/src/src/client/GrammarServiceClientInt.java

Lines changed: 0 additions & 7 deletions
This file was deleted.

Aplicacion/Thoth-Web/src/src/client/GrammarServicetInt.java

Lines changed: 0 additions & 6 deletions
This file was deleted.

Aplicacion/Thoth-Web/src/src/client/gui.html

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)