code: public void onSwapToEdit(final AjaxRequestTarget target, final Form<?> form)
  	{
  		swapFragments();
  		if (target != null)
  		{
  			Animate.slideUpAndDown(view, target);
  		}
  		else
  		{
  			LOGGER.error(
  				"AjaxRequestTarget is null on method SwapFragmentPanel#onSwapToEdit(AjaxRequestTarget, Form)");
  		}
  		modeContext = ModeContext.EDIT_MODE;
  	}
docs: Swaps from the view fragment to the edit fragment.
  
  @param target
  the target
  @param form
  the form