org.hdtourist.view.inf
Class InformacionDato

java.lang.Object
  extended by org.hdtourist.view.inf.InformacionDato
All Implemented Interfaces:
java.lang.Comparable<InformacionDato>, IInformacionObjetos, IInformacionVisible
Direct Known Subclasses:
InformacionDatoEnumerado, InformacionDatoSimple, InformacionEnlace, InformacionImagen, InformacionLista, InformacionListaVinculos, InformacionMapa

public class InformacionDato
extends java.lang.Object
implements java.lang.Comparable<InformacionDato>, IInformacionVisible, IInformacionObjetos

The Class InformacionDato.


Field Summary
private  Categoria categoria
          Si el dato es un vínculo, tendrá una categoría con la que rellenar la pantalla a la que lleva el vínculo.
private  Consulta consulta
          Consulta que informa el dato.
private  java.lang.String etiqueta
          Etiqueat que describe el dato.
private  boolean imagenText
          The imagen text.
protected  int MAX_LINES
          The max lines.
private  boolean onlyText
          The only text.
private  java.util.Set<java.lang.String> valores
          Valores obtenidos de la consulta, A no ser que sea una lista, solo habrá un valor.
 
Constructor Summary
InformacionDato()
          Instantiates a new informacion dato.
 
Method Summary
private  void colocarImagenExpandir(InformacionFragment actividad, android.widget.ImageView showImage)
          Colocar imagen expandir.
 int compareTo(InformacionDato another)
           
protected  void fijaExpandirColapsar(InformacionFragment actividad, android.view.View view)
          Fija expandir colapsar.
 Categoria getCategoria()
          Gets the categoria.
 Consulta getConsulta()
          Gets the consulta.
 java.lang.String getEtiqueta()
          Gets the etiqueta.
 java.util.List<IInformacionVisible> getObjetosInformacion()
          Gets the objetos informacion.
 java.util.Set<java.lang.String> getValores()
          Gets the valores.
 java.lang.String getValorVisible()
          Gets the valor visible.
 android.view.View getView(InformacionFragment actividad)
          Gets the view.
 boolean isImagenText()
          Checks if is imagen text.
 boolean isOnlyText()
          Checks if is only text.
protected  boolean isTooLarge(InformacionFragment actividad, android.widget.TextView text, java.lang.String newText)
          Checks if is too large.
 boolean isVisible(android.support.v4.app.Fragment fragment)
          Checks if is visible.
 void setCategoria(Categoria categoria)
          Sets the categoria.
 void setConsulta(Consulta consulta)
          Sets the consulta.
 void setEtiqueta(java.lang.String etiqueta)
          Sets the etiqueta.
 void setImagenText(boolean imagenText)
          Sets the imagen text.
 void setOnlyText(boolean onlyText)
          Sets the only text.
 void setTexto(java.lang.String texto)
          Sets the texto.
 void setValores(java.util.Set<java.lang.String> valores)
          Sets the valores.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

categoria

private Categoria categoria
Si el dato es un vínculo, tendrá una categoría con la que rellenar la pantalla a la que lleva el vínculo.


consulta

private Consulta consulta
Consulta que informa el dato.


etiqueta

private java.lang.String etiqueta
Etiqueat que describe el dato.


imagenText

private boolean imagenText
The imagen text.


onlyText

private boolean onlyText
The only text.


valores

private java.util.Set<java.lang.String> valores
Valores obtenidos de la consulta, A no ser que sea una lista, solo habrá un valor.


MAX_LINES

protected int MAX_LINES
The max lines.

Constructor Detail

InformacionDato

public InformacionDato()
Instantiates a new informacion dato.

Method Detail

compareTo

public int compareTo(InformacionDato another)
Specified by:
compareTo in interface java.lang.Comparable<InformacionDato>

getCategoria

public Categoria getCategoria()
Gets the categoria.

Returns:
the categoria

getConsulta

public Consulta getConsulta()
Gets the consulta.

Returns:
the consulta

getEtiqueta

public java.lang.String getEtiqueta()
Gets the etiqueta.

Returns:
the etiqueta

getObjetosInformacion

public java.util.List<IInformacionVisible> getObjetosInformacion()
Description copied from interface: IInformacionObjetos
Gets the objetos informacion.

Specified by:
getObjetosInformacion in interface IInformacionObjetos
Returns:
the objetos informacion

getValores

public java.util.Set<java.lang.String> getValores()
Gets the valores.

Returns:
the valores

getValorVisible

public java.lang.String getValorVisible()
Gets the valor visible.

Returns:
the valor visible

getView

public android.view.View getView(InformacionFragment actividad)
Description copied from interface: IInformacionVisible
Gets the view.

Specified by:
getView in interface IInformacionVisible
Parameters:
actividad - the actividad
Returns:
the view

isImagenText

public boolean isImagenText()
Checks if is imagen text.

Returns:
true, if is imagen text

isOnlyText

public boolean isOnlyText()
Checks if is only text.

Returns:
true, if is only text

isVisible

public boolean isVisible(android.support.v4.app.Fragment fragment)
Description copied from interface: IInformacionVisible
Checks if is visible.

Specified by:
isVisible in interface IInformacionVisible
Parameters:
fragment - the actividad
Returns:
true, if is visible

setCategoria

public void setCategoria(Categoria categoria)
Sets the categoria.

Parameters:
categoria - the new categoria

setConsulta

public void setConsulta(Consulta consulta)
Sets the consulta.

Parameters:
consulta - the new consulta

setEtiqueta

public void setEtiqueta(java.lang.String etiqueta)
Sets the etiqueta.

Parameters:
etiqueta - the new etiqueta

setImagenText

public void setImagenText(boolean imagenText)
Sets the imagen text.

Parameters:
imagenText - the new imagen text

setOnlyText

public void setOnlyText(boolean onlyText)
Sets the only text.

Parameters:
onlyText - the new only text

setTexto

public void setTexto(java.lang.String texto)
Sets the texto.

Parameters:
texto - the new texto

setValores

public void setValores(java.util.Set<java.lang.String> valores)
Sets the valores.

Parameters:
valores - the new valores

colocarImagenExpandir

private void colocarImagenExpandir(InformacionFragment actividad,
                                   android.widget.ImageView showImage)
Colocar imagen expandir.

Parameters:
actividad - the actividad
showImage - the show image

fijaExpandirColapsar

protected void fijaExpandirColapsar(InformacionFragment actividad,
                                    android.view.View view)
Fija expandir colapsar.

Parameters:
actividad - the actividad
view - the view

isTooLarge

protected boolean isTooLarge(InformacionFragment actividad,
                             android.widget.TextView text,
                             java.lang.String newText)
Checks if is too large.

Parameters:
actividad - the actividad
text - the text
newText - the new text
Returns:
true, if is too large