12,6 → 12,7 |
import com.extjs.gxt.ui.client.event.Events; |
import com.extjs.gxt.ui.client.event.Listener; |
import com.extjs.gxt.ui.client.widget.TabItem; |
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign; |
import com.extjs.gxt.ui.client.widget.layout.FormLayout; |
|
public abstract class FormulaireOnglet extends TabItem implements Rafraichissable { |
23,6 → 24,8 |
|
protected String mode = null; |
protected int tabIndex = 100; |
protected static LabelAlign alignementLabelDefaut = LabelAlign.LEFT; |
protected static int largeurLabelDefaut = 250; |
|
public FormulaireOnglet() { |
parametrer(this); |
34,7 → 37,11 |
} |
|
public static void parametrer(TabItem onglet) { |
onglet.setLayout(new FormLayout()); |
FormLayout layout = new FormLayout(); |
layout.setLabelWidth(largeurLabelDefaut); |
layout.setLabelAlign(alignementLabelDefaut); |
onglet.setLayout(layout); |
|
onglet.setStyleAttribute("padding", "10px"); |
onglet.setScrollMode(Scroll.AUTO); |
onglet.setData("acces", false); |