Subversion Repositories eFlore/Archives.cel-v1

Rev

Rev 25 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25 Rev 27
Line -... Line 1...
-
 
1
/**
-
 
2
 David Delon david.delon@clapas.net 2007
-
 
3
 
-
 
4
 */
-
 
5
 
1
/*
6
/*
2
 * Copyright 2006 Google Inc.
-
 
3
 * 
-
 
4
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
7
 * ActionPanel.java  : affichage actions sur releves saisie ou affiches (suppression, export etc...)
5
 * use this file except in compliance with the License. You may obtain a copy of
-
 
6
 * the License at
-
 
7
 * 
8
 * 
-
 
9
 * TODO : appel de fonction du mediator, au lieu de passer par les methode de la classe de gestion d'affichage des releves (voir les TODO dans le
8
 * http://www.apache.org/licenses/LICENSE-2.0
10
 * corps de ce programme)
9
 * 
11
 *  
10
 * Unless required by applicable law or agreed to in writing, software
12
 * 1: Le programme affiche les boutons commandant les actions sur les releves et arme les actions correspondantes
11
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13
 *    - Transmission d'elements (vers tela botanica)
12
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14
 *    - Suppression d'elements selectionnes
13
 * License for the specific language governing permissions and limitations under
15
 *    - Export vers tableur
14
 * the License.
16
 *    - Selection / Deselection des releves affiches
15
 */
17
 */
-
 
18
 
16
package org.tela_botanica.client;
19
package org.tela_botanica.client;
Line 17... Line 20...
17
 
20
 
18
 
21
 
19
import com.google.gwt.user.client.Window;
22
import com.google.gwt.user.client.Window;
20
import com.google.gwt.user.client.ui.ClickListener;
23
import com.google.gwt.user.client.ui.ClickListener;
21
import com.google.gwt.user.client.ui.Composite;
24
import com.google.gwt.user.client.ui.Composite;
22
import com.google.gwt.user.client.ui.HTML;
25
import com.google.gwt.user.client.ui.HTML;
23
import com.google.gwt.user.client.ui.HorizontalPanel;
26
import com.google.gwt.user.client.ui.HorizontalPanel;
24
import com.google.gwt.user.client.ui.Label;
-
 
25
import com.google.gwt.user.client.ui.Widget;
-
 
26
 
-
 
27
/**
-
 
28
 * Composite permet de wrapper des Widget pour creer un nouveau Widget cf methode initWidget()
-
 
29
 */
27
import com.google.gwt.user.client.ui.Label;
Line 30... Line 28...
30
 
28
import com.google.gwt.user.client.ui.Widget;
31
public class ActionPanel extends Composite   {
29
public class ActionPanel extends Composite   {
Line 78... Line 76...
78
	     	}
76
	     	}
79
	);		
77
	);		
Line 80... Line 78...
80
	
78
	
Line 81... Line 79...
81
	buttons.add(delButton);
79
	buttons.add(delButton);
Line 82... Line -...
82
 
-
 
83
	// Export de la totalité 
80
 
84
	
-
 
85
	exportButton=new HTML("<a href=\""+mediator.getServiceBaseUrl()+"/InventoryExport/" 
81
	// Export (renseigne lors de l'affichage des releves )
86
	+  mediator.getUser() + 
82
	
Line 87... Line 83...
87
	"\">"+"Export&nbsp;tableur</a>");
83
	exportButton=new HTML();
Line 136... Line 132...
136
   
132
   
Line 137... Line -...
137
    
-
 
138
  }
-
 
139
 
-
 
140
 
-
 
141
public HTML getExportButton() {
133
    
-
 
134
  }
-
 
135
 
-
 
136
 
-
 
137
  public HTML getExportButton() {
-
 
138
	  return exportButton;
-
 
139
  }
-
 
140
}  
-
 
141
 
-
 
142
 
-
 
143
 
-
 
144
/* +--Fin du code ---------------------------------------------------------------------------------------+
-
 
145
* $Log$
-
 
146
* Revision 1.5  2007-09-17 19:25:34  ddelon
-
 
147
* Documentation
142
	return exportButton;
148
*