org.hdtourist.view
Class InformacionFragment

java.lang.Object
  extended by android.support.v4.app.Fragment
      extended by android.support.v4.app.ListFragment
          extended by org.hdtourist.view.base.BaseListFragment
              extended by org.hdtourist.view.InformacionFragment
All Implemented Interfaces:
android.content.ComponentCallbacks, android.view.View.OnCreateContextMenuListener, IBaseVista

public class InformacionFragment
extends BaseListFragment

Fragment para mostrar información de una categoría de una ciudad.


Nested Class Summary
 
Nested classes/interfaces inherited from class android.support.v4.app.Fragment
android.support.v4.app.Fragment.InstantiationException, android.support.v4.app.Fragment.SavedState
 
Field Summary
(package private)  boolean cargado
          The cargado.
private  android.view.LayoutInflater inflater
          The inflater.
private  InformacionPresenter presenter
          The presenter.
private  android.widget.ProgressBar progressBar
          The progress bar.
private  android.widget.TextView textEmptyView
          The text empty view.
 
Constructor Summary
InformacionFragment()
          Instantiates a new informacion fragment.
InformacionFragment(FicheroHdt ciudad, Categoria categoria)
          Instantiates a new informacion fragment.
 
Method Summary
 Categoria getCategoria()
          Gets the categoria.
 CiudadActivity getCiudadActivity()
          Gets the ciudad activity.
 android.view.LayoutInflater getInflater()
          Gets the inflater.
 android.widget.ProgressBar getProgressBar()
          Gets the progress bar.
 android.widget.TextView getTextEmptyView()
          Gets the text empty view.
 java.lang.String getTitle()
          Obtiene el título que debe mostrar el activity según el fragment que muestra
 boolean isCargado()
          Checks if is cargado.
 boolean isSearch()
          Indica si este fragment muestra el resultado de una búsqueda.
 android.view.View onCreateView(android.view.LayoutInflater inflater, android.view.ViewGroup container, android.os.Bundle savedInstanceState)
           
 void onDestroy()
           
 void onViewCreated(android.view.View view, android.os.Bundle savedInstanceState)
           
 void setCargado(boolean cargado)
          Sets the cargado.
 void setInflater(android.view.LayoutInflater inflater)
          Sets the inflater.
 
Methods inherited from class org.hdtourist.view.base.BaseListFragment
manejaError
 
Methods inherited from class android.support.v4.app.ListFragment
getListAdapter, getListView, getSelectedItemId, getSelectedItemPosition, onDestroyView, onListItemClick, setEmptyText, setListAdapter, setListShown, setListShownNoAnimation, setSelection
 
Methods inherited from class android.support.v4.app.Fragment
dump, equals, getActivity, getArguments, getChildFragmentManager, getFragmentManager, getId, getLayoutInflater, getLoaderManager, getParentFragment, getResources, getRetainInstance, getString, getString, getTag, getTargetFragment, getTargetRequestCode, getText, getUserVisibleHint, getView, hashCode, hasOptionsMenu, instantiate, instantiate, isAdded, isDetached, isHidden, isInLayout, isMenuVisible, isRemoving, isResumed, isVisible, onActivityCreated, onActivityResult, onAttach, onConfigurationChanged, onContextItemSelected, onCreate, onCreateAnimation, onCreateContextMenu, onCreateOptionsMenu, onDestroyOptionsMenu, onDetach, onHiddenChanged, onInflate, onLowMemory, onOptionsItemSelected, onOptionsMenuClosed, onPause, onPrepareOptionsMenu, onResume, onSaveInstanceState, onStart, onStop, onViewStateRestored, registerForContextMenu, setArguments, setHasOptionsMenu, setInitialSavedState, setMenuVisibility, setRetainInstance, setTargetFragment, setUserVisibleHint, startActivity, startActivityForResult, toString, unregisterForContextMenu
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

inflater

private android.view.LayoutInflater inflater
The inflater.


presenter

private InformacionPresenter presenter
The presenter.


progressBar

private android.widget.ProgressBar progressBar
The progress bar.


textEmptyView

private android.widget.TextView textEmptyView
The text empty view.


cargado

boolean cargado
The cargado.

Constructor Detail

InformacionFragment

public InformacionFragment()
Instantiates a new informacion fragment.


InformacionFragment

public InformacionFragment(FicheroHdt ciudad,
                           Categoria categoria)
Instantiates a new informacion fragment.

Parameters:
ciudad - the ciudad
categoria - the categoria
Method Detail

getCategoria

public Categoria getCategoria()
Gets the categoria.

Returns:
the categoria

getCiudadActivity

public CiudadActivity getCiudadActivity()
Gets the ciudad activity.

Returns:
the ciudad activity

getInflater

public android.view.LayoutInflater getInflater()
Gets the inflater.

Returns:
the inflater

getProgressBar

public android.widget.ProgressBar getProgressBar()
Gets the progress bar.

Returns:
the progress bar

getTextEmptyView

public android.widget.TextView getTextEmptyView()
Gets the text empty view.

Returns:
the text empty view

getTitle

public java.lang.String getTitle()
Obtiene el título que debe mostrar el activity según el fragment que muestra

Returns:
el título

isCargado

public boolean isCargado()
Checks if is cargado.

Returns:
the cargado

isSearch

public boolean isSearch()
Indica si este fragment muestra el resultado de una búsqueda.

Returns:
true, if is search

onCreateView

public android.view.View onCreateView(android.view.LayoutInflater inflater,
                                      android.view.ViewGroup container,
                                      android.os.Bundle savedInstanceState)
Overrides:
onCreateView in class android.support.v4.app.ListFragment

onDestroy

public void onDestroy()
Overrides:
onDestroy in class android.support.v4.app.Fragment

onViewCreated

public void onViewCreated(android.view.View view,
                          android.os.Bundle savedInstanceState)
Overrides:
onViewCreated in class android.support.v4.app.ListFragment

setCargado

public void setCargado(boolean cargado)
Sets the cargado.

Parameters:
cargado - the cargado to set

setInflater

public void setInflater(android.view.LayoutInflater inflater)
Sets the inflater.

Parameters:
inflater - the new inflater