public void swipePrevious() {
   if (wizardPager.getCurrentItem() > 0) {
     int position = wizardPager.getCurrentItem() - 1;
     wizardPager.setCurrentItem(position);
     onPageSelected(position);
   }
 }
 public void swipeNext() {
   if (wizardPager.getCurrentItem() < adapter.getCount() - 1) {
     int position = wizardPager.getCurrentItem() + 1;
     wizardPager.setCurrentItem(position);
     onPageSelected(position);
   }
 }
 public void showSteps() {
   adapter =
       FactoryHelper.getWizardPagerAdapter(
           this, Arrays.asList(inputListFragment, eventConditionFragment, eventNameFragment));
   wizardPager.setOffscreenPageLimit(3);
   wizardPager.setAdapter(adapter);
   onPageSelected(0);
 }