ArchetypeFragment

public class ArchetypeFragment extends Fragment

This class allows you to display an Archetype in a Fragment. You just have to provide the WidgetProvider handling the archetype you want to include to the constructor or, if you prefer, you can use the setWidgetProvider(WidgetProvider) method (in this second case, remember to call this method before adding the fragment to the container).

Constructors

ArchetypeFragment

public ArchetypeFragment()

ArchetypeFragment

public ArchetypeFragment(WidgetProvider wp)

Create an Archetype fragment by providing the WidgetProvider

Parameters:
  • wp

Methods

getFormContainer

public FormContainer getFormContainer()

Get the form container of this fragment

Returns:the form container of this archetype fragment

getwidgetProvider

public WidgetProvider getwidgetProvider()
Returns:the widget provider of this Archetype Fragment

onCreateView

public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)

setWidgetProvider

public void setWidgetProvider(WidgetProvider wp)

Set the widget provider for this fragment. This method must called BEFORE adding the fragment to itws container.

Parameters:
  • wp