use of de.symeda.sormas.app.BaseEditFragment in project SORMAS-Project by hzi-braunschweig.
the class ClinicalVisitNewActivity method buildEditFragment.
@Override
protected BaseEditFragment buildEditFragment(PageMenuItem menuItem, ClinicalVisit activityRootData) {
BaseEditFragment fragment = ClinicalVisitEditFragment.newInstance(activityRootData);
fragment.setLiveValidationDisabled(true);
return fragment;
}
use of de.symeda.sormas.app.BaseEditFragment in project SORMAS-Project by hzi-braunschweig.
the class ContactNewActivity method buildEditFragment.
@Override
protected BaseEditFragment buildEditFragment(PageMenuItem menuItem, Contact activityRootData) {
BaseEditFragment fragment = ContactNewFragment.newInstance(activityRootData);
fragment.setLiveValidationDisabled(true);
return fragment;
}
use of de.symeda.sormas.app.BaseEditFragment in project SORMAS-Project by hzi-braunschweig.
the class EventEditActivity method buildEditFragment.
@Override
protected BaseEditFragment buildEditFragment(PageMenuItem menuItem, Event activityRootData) {
EventSection section = EventSection.fromOrdinal(menuItem.getPosition());
BaseEditFragment fragment;
switch(section) {
case EVENT_INFO:
fragment = EventEditFragment.newInstance(activityRootData);
break;
case EVENT_PARTICIPANTS:
fragment = EventEditPersonsInvolvedListFragment.newInstance(activityRootData);
break;
case TASKS:
fragment = EventEditTaskListFragment.newInstance(activityRootData);
break;
default:
throw new IndexOutOfBoundsException(DataHelper.toStringNullable(section));
}
return fragment;
}
use of de.symeda.sormas.app.BaseEditFragment in project SORMAS-Project by hzi-braunschweig.
the class EventParticipantEditActivity method buildEditFragment.
@Override
protected BaseEditFragment buildEditFragment(PageMenuItem menuItem, EventParticipant activityRootData) {
EventParticipantSection section = EventParticipantSection.fromOrdinal(menuItem.getPosition());
BaseEditFragment fragment;
switch(section) {
case EVENT_PARTICIPANT_INFO:
fragment = EventParticipantEditFragment.newInstance(activityRootData);
break;
case IMMUNIZATIONS:
fragment = EventParticipantEditImmunizationListFragment.newInstance(activityRootData);
break;
case VACCINATIONS:
fragment = EventParticipantEditVaccinationListFragment.newInstance(activityRootData);
break;
default:
throw new IndexOutOfBoundsException(DataHelper.toStringNullable(section));
}
return fragment;
}
use of de.symeda.sormas.app.BaseEditFragment in project SORMAS-Project by hzi-braunschweig.
the class EventParticipantNewActivity method buildEditFragment.
@Override
protected BaseEditFragment buildEditFragment(PageMenuItem menuItem, EventParticipant activityRootData) {
BaseEditFragment fragment = EventParticipantNewFragment.newInstance(activityRootData);
fragment.setLiveValidationDisabled(true);
return fragment;
}
Aggregations