protected void swapFragments(final AjaxRequestTarget target, final Form<?> form)
	{
		if (modeContext.equals(ModeContext.VIEW_MODE))
		{
			onSwapToEdit(target, form);
		}
		else
		{
			onSwapToView(target, form);
		}
	}
protected void swapFragments ( final AjaxRequestTarget target , final Form < ? > form ) { if ( modeContext . equals ( ModeContext . VIEW_MODE ) ) { onSwapToEdit ( target , form ) ; } else { onSwapToView ( target , form ) ; } }
Swaps the fragments.

@param target
the target
@param form
the form