chantierInfo.setCollapsible(false);
FormLayout fl_fldstNewFieldset_0 = new FormLayout();
fl_fldstNewFieldset_0.setLabelWidth(130);
chantierInfo.setLayout(fl_fldstNewFieldset_0);
formPanel = new CustomFormPanel();
formPanel.setLabelWidth(135);
final TextField<String> chatierName = new CustomTextField<String>();
chatierName.setName(ChantierModel.NOM);
chatierName.setFieldLabel(messages.nameChantier());
chatierName.addListener(Events.OnKeyUp, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
if( !formPanel.isValid() ) {
return;
}
isEdit = true;
bus.fireEvent(new IsEditEvent(isEdit));
}
});
formPanel.add(chatierName);
prorataTheorique = createIntegerField("Prorata Théorique", true);
prorataTheorique.setName(ChantierModel.PRORATA_THEORIQUE);
prorataTheorique.addListener(Events.OnKeyUp, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
if( !formPanel2.isValid() ) {
return;
}
saveLayout.setEnabled(true);
isEdit = true;
bus.fireEvent(new IsEditEvent(isEdit));
}
});
formPanel2 = new CustomFormPanel();
formPanel2.setLabelWidth(135);
formPanel2.add(prorataTheorique);
chantierInfo.add(formPanel, new FormData("35%"));
add(chantierInfo);