| 703 |
jp_milcent |
1 |
package org.tela_botanica.client.vues;
|
|
|
2 |
|
|
|
3 |
import com.extjs.gxt.ui.client.widget.Window;
|
|
|
4 |
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
|
|
|
5 |
import com.google.gwt.core.client.GWT;
|
|
|
6 |
|
|
|
7 |
public class FenetreForm extends Window{
|
|
|
8 |
|
|
|
9 |
public FenetreForm(String titre) {
|
|
|
10 |
int hauteur = (int) Math.ceil(com.google.gwt.user.client.Window.getClientHeight() * .8);
|
|
|
11 |
int largeur = (int) Math.ceil(com.google.gwt.user.client.Window.getClientWidth() * .8);
|
|
|
12 |
GWT.log("Taille:"+hauteur+"x"+largeur, null);
|
|
|
13 |
setSize(largeur, hauteur);
|
|
|
14 |
setPlain(true);
|
|
|
15 |
setModal(true);
|
|
|
16 |
setBlinkModal(true);
|
|
|
17 |
setHeading(titre);
|
|
|
18 |
setLayout(new FitLayout());
|
|
|
19 |
}
|
|
|
20 |
}
|