Subversion Repositories eFlore/Applications.coel

Rev

Rev 443 | Rev 1239 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package org.tela_botanica.client.vues;

import org.tela_botanica.client.ComposantId;

import com.extjs.gxt.ui.client.Style.Orientation;
import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.Status;
import com.extjs.gxt.ui.client.widget.layout.RowLayout;
import com.extjs.gxt.ui.client.widget.toolbar.FillToolItem;
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;

public class StatutVue extends LayoutContainer {
        
        private Status barreStatut = null;
        
        public StatutVue() {
                setLayout(new RowLayout(Orientation.HORIZONTAL));
                setId(ComposantId.PANNEAU_STATUT);

                ToolBar toolBar = new ToolBar();
                toolBar.add(new FillToolItem());
                
                barreStatut = new Status();
                toolBar.add(barreStatut);
                
                add(barreStatut);
        }
        
        public void showBusy(String message) {
                barreStatut.setBusy(message);
        }
        
        public void clear() {
                barreStatut.clearStatus("");
        }
}