@Override public void createFilterWidgets() { castb_patient_identifiantBox = new TextBox(); castb_patient_identifiantFilterBox = new ImogFilterBox(castb_patient_identifiantBox); castb_patient_identifiantFilterBox.setFilterLabel(NLS.constants().patient_field_identifiant()); addTableFilter(castb_patient_identifiantFilterBox); castb_patient_nomBox = new TextBox(); castb_patient_nomFilterBox = new ImogFilterBox(castb_patient_nomBox); castb_patient_nomFilterBox.setFilterLabel(NLS.constants().patient_field_nom()); addTableFilter(castb_patient_nomFilterBox); dateExamenAfterBox = new DateBox(); dateExamenAfterBox.setFormat(new SimpleImogDateFormat(DateUtil.getDateFormater())); dateExamenAfterFilterBox = new ImogFilterBox(dateExamenAfterBox); dateExamenAfterFilterBox.setFilterLabel( NLS.constants().examenATB_field_dateExamen() + BaseNLS.constants().search_operator_superior()); addTableFilter(dateExamenAfterFilterBox); dateExamenBeforeBox = new DateBox(); dateExamenBeforeBox.setFormat(new SimpleImogDateFormat(DateUtil.getDateFormater())); dateExamenBeforeFilterBox = new ImogFilterBox(dateExamenBeforeBox); dateExamenBeforeFilterBox.setFilterLabel( NLS.constants().examenATB_field_dateExamen() + BaseNLS.constants().search_operator_inferior()); addTableFilter(dateExamenBeforeFilterBox); raisonDepistageBox = new ListBox(); raisonDepistageBox.addItem("", BaseNLS.constants().enumeration_unknown()); raisonDepistageBox.setSelectedIndex(0); raisonDepistageBox.addItem( NLS.constants().examenATB_raisonDepistage_diagnostic_option(), EpicamEnumConstants.EXAMENATB_RAISONDEPISTAGE_DIAGNOSTIC); raisonDepistageBox.addItem( NLS.constants().examenATB_raisonDepistage_suivi_option(), EpicamEnumConstants.EXAMENATB_RAISONDEPISTAGE_SUIVI); raisonDepistageFilterBox = new ImogFilterBox(raisonDepistageBox); raisonDepistageFilterBox.setFilterLabel(NLS.constants().examenATB_field_raisonDepistage()); addTableFilter(raisonDepistageFilterBox); resultatBox = new TextBox(); resultatFilterBox = new ImogFilterBox(resultatBox); resultatFilterBox.setFilterLabel(NLS.constants().examenATB_field_resultat()); addTableFilter(resultatFilterBox); deletedEntityBox = new ImogBooleanAsRadio(); deletedEntityBox.isStrict(true); deletedEntityBox.setEnabled(true); deletedEntityBox.setValue(false); deletedEntityBoxFilterBox = new ImogFilterBox(deletedEntityBox); deletedEntityBoxFilterBox.setFilterLabel(BaseNLS.constants().entity_field_deleted()); addTableFilter(deletedEntityBoxFilterBox); }
/** * Constructor Can be used when the box is not used as an editor but just as a widget * * @param withExceptions true if the box shall throw exceptions when an unvalid date is entered */ public ImogDateBox(boolean withExceptions) { initWidget(uiBinder.createAndBindUi(this)); if (withExceptions) dateBox.setFormat(new ImogDateFormatWithExceptions(DateUtil.getDateFormater())); else dateBox.setFormat(new ImogDateFormat(DateUtil.getDateFormater())); }
/** Constructor */ public ImogDateBox() { initWidget(uiBinder.createAndBindUi(this)); dateBox.setFormat(new ImogDateFormat(DateUtil.getDateFormater())); }