Subversion Repositories eFlore/Applications.coel

Rev

Rev 500 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
359 jp_milcent 1
package org.tela_botanica.client.vues;
2
 
3
import org.tela_botanica.client.ComposantId;
4
 
5
import com.extjs.gxt.ui.client.Style.Orientation;
6
import com.extjs.gxt.ui.client.widget.LayoutContainer;
500 jp_milcent 7
import com.extjs.gxt.ui.client.widget.Status;
359 jp_milcent 8
import com.extjs.gxt.ui.client.widget.layout.RowLayout;
500 jp_milcent 9
import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem;
10
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;
359 jp_milcent 11
 
443 jp_milcent 12
public class StatutVue extends LayoutContainer {
359 jp_milcent 13
 
500 jp_milcent 14
	private Status barreStatut = null;
15
 
443 jp_milcent 16
	public StatutVue() {
359 jp_milcent 17
		setLayout(new RowLayout(Orientation.HORIZONTAL));
18
		setId(ComposantId.PANNEAU_STATUT);
500 jp_milcent 19
 
20
		ToolBar toolBar = new ToolBar();
21
		toolBar.add(new FillToolItem());
359 jp_milcent 22
 
500 jp_milcent 23
		barreStatut = new Status();
24
		toolBar.add(barreStatut);
25
 
359 jp_milcent 26
		add(barreStatut);
27
	}
28
 
29
	public void showBusy(String message) {
500 jp_milcent 30
		barreStatut.setBusy(message);
359 jp_milcent 31
	}
32
 
33
	public void clear() {
500 jp_milcent 34
		barreStatut.clearStatus("");
359 jp_milcent 35
	}
36
}