public abstract class GenericSplitFragment<FRAGMENT_LEFT extends Fragment & GenericBuilder<FRAGMENT_LEFT> & Selectable<T> & DualPaneLeftFragment & DeletionListener & DetailViewDisplayedListener,FRAGMENT_RIGHT extends Fragment & GenericBuilder<FRAGMENT_RIGHT> & SelectionListener<T> & DetailView & DualPaneModeListener,T> extends DonkyFragment implements SelectionListener<T>, OverlayVisibilityController
| Modifier and Type | Class and Description |
|---|---|
static class |
GenericSplitFragment.DISPLAY_MODE |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
KEY_DISPLAY_MODE_MIXED |
| Constructor and Description |
|---|
GenericSplitFragment() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract android.content.Intent |
getDetailActivityIntent(T selected)
Gets the intent used when left(list) list view row is clicked.
|
void |
onActivityCreated(android.os.Bundle savedInstanceState) |
android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState) |
void |
onSelected(T item,
boolean isSplitViewMode)
List element representing given object has been selected.
|
void |
onSelectedNew(T item) |
void |
setFragmentBuilders(GenericBuilder<FRAGMENT_LEFT> fragmentBuilderList,
GenericBuilder<FRAGMENT_RIGHT> fragmentBuilderDetail)
Sets the fragment builders for left(list) and right(detail) fragments.
|
void |
setOverlayVisibility(int visibility)
Set the right panel overlay visibility.
|
hideSoftKeyboard, onDetachpublic void onActivityCreated(android.os.Bundle savedInstanceState)
public android.view.View onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedInstanceState)
public void onSelected(T item, boolean isSplitViewMode)
SelectionListeneronSelected in interface SelectionListener<T>item - Details for selected list row.isSplitViewMode - True if the screen is spilt between list and detail fragmentspublic void onSelectedNew(T item)
onSelectedNew in interface SelectionListener<T>public void setFragmentBuilders(GenericBuilder<FRAGMENT_LEFT> fragmentBuilderList, GenericBuilder<FRAGMENT_RIGHT> fragmentBuilderDetail)
fragmentBuilderList - Left fragment GenericBuilder.fragmentBuilderDetail - Right fragment GenericBuilder.protected abstract android.content.Intent getDetailActivityIntent(T selected)
selected - Selected object.public void setOverlayVisibility(int visibility)
OverlayVisibilityControllersetOverlayVisibility in interface OverlayVisibilityControllervisibility - View.VISIBLE, View.GONE or View.INVISIBLE