Subversion Repositories eFlore/Applications.cel

Rev

Rev 1018 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1018 Rev 1118
Line 1053... Line 1053...
1053
	public void montrerContextMenuArbre(final TreeNode n, EventObject ev,
1053
	public void montrerContextMenuArbre(final TreeNode n, EventObject ev,
1054
			final TreeEditor te) {
1054
			final TreeEditor te) {
1055
		Menu mn = new Menu();
1055
		Menu mn = new Menu();
1056
		final com.gwtext.client.widgets.menu.Item ajoutN = new Item(
1056
		final com.gwtext.client.widgets.menu.Item ajoutN = new Item(
1057
				"Ajouter mot cle");
1057
				"Ajouter mot cle");
-
 
1058
		final com.gwtext.client.widgets.menu.Item renommerN = new Item(
-
 
1059
				"Renommer mot cle");
1058
		final com.gwtext.client.widgets.menu.Item suppN = new Item(
1060
		final com.gwtext.client.widgets.menu.Item suppN = new Item(
1059
				"Supprimer mot cle");
1061
				"Supprimer mot cle");
Line 1060... Line 1062...
1060
 
1062
 
-
 
1063
		mn.addItem(ajoutN);
1061
		mn.addItem(ajoutN);
1064
		mn.addItem(renommerN);
Line 1062... Line 1065...
1062
		mn.addItem(suppN);
1065
		mn.addItem(suppN);
Line 1063... Line 1066...
1063
 
1066
 
1064
		mn.addListener(new MenuListenerAdapter() {
1067
		mn.addListener(new MenuListenerAdapter() {
1065
 
-
 
1066
			public void onItemClick(BaseItem item, EventObject e) {
1068
 
1067
				if (item.equals(suppN)) {
1069
			public void onItemClick(BaseItem item, EventObject e) {
-
 
1070
				if (item.equals(suppN)) {
-
 
1071
					fnMc.supprimerNoeud(n);
1068
					if(Window.confirm("Êtes vous sur de vouloir supprimer ce mot clé ?")) {
1072
				}
1069
						fnMc.supprimerNoeud(n);
1073
				if (item.equals(renommerN)) {
1070
					}
1074
					fnMc.renommerNoeud(n);
1071
				}
1075
				}
1072
				if (item.equals(ajoutN)) {
1076
				if (item.equals(ajoutN)) {
Line 1804... Line 1808...
1804
				ImageMediateur.this.obtenirArbreMotsCles(r);
1808
				ImageMediateur.this.obtenirArbreMotsCles(r);
1805
			}
1809
			}
1806
		};
1810
		};
Line 1807... Line 1811...
1807
		
1811
		
1808
		fnMc.setModal(true);
1812
		fnMc.setModal(true);
1809
		fnMc.setHeight(400);
1813
		fnMc.setHeight(420);
1810
		fnMc.setWidth(200);
1814
		fnMc.setWidth(285);
Line 1811... Line 1815...
1811
		fnMc.addListener(new WindowListenerAdapter() {
1815
		fnMc.addListener(new WindowListenerAdapter() {
Line 1812... Line 1816...
1812
 
1816