public class FormVideogameFragment extends FormMediaItemAbstractFragment
FormAbstractFragment.FormExitListener, FormAbstractFragment.OnObjectSaveListener
Constructor and Description |
---|
FormVideogameFragment() |
Modifier and Type | Method and Description |
---|---|
protected int |
getContentLayout()
Returns the form content layout
|
protected java.util.List<AbstractInput<MediaItem>> |
getSpecificInputs(View view,
MediaItem initialMediaItem)
Allows to create and manage the subclass specific inputs
|
static FormVideogameFragment |
newInstance(java.lang.Long categoryId,
java.lang.Long mediaItemId,
boolean isEmpty)
Instance creation
|
canExitForm, onActivityCreated, onCreateView, onPause, onSaveInstanceState, resetInputUpdatedByUserFlags, saveObject, setObjectValuesFromInputs, validateObject
manageExitFromForm, onMenuItemClick, setOnObjectSaveListener
public static FormVideogameFragment newInstance(java.lang.Long categoryId, java.lang.Long mediaItemId, boolean isEmpty)
categoryId
- category ID parametermediaItemId
- media item ID parameter (null if adding a new media item, the media item to edit otherwise)isEmpty
- true if the form should be empty (= no fields are displayed, only the action bar)protected int getContentLayout()
getContentLayout
in class FormAbstractFragment
protected java.util.List<AbstractInput<MediaItem>> getSpecificInputs(View view, MediaItem initialMediaItem)
getSpecificInputs
in class FormMediaItemAbstractFragment
view
- the fragment inflated viewinitialMediaItem
- the media item initial values (meaningful only if we are editing)