ShowPlaceInfo - ShutUpPaulo/TecProg_2016-01 GitHub Wiki

Class ShowPlaceInfo

1. Class Attributes

Name Type Description Default Value
STRING_EMPTY static final String Defines an empty string ""
DOUBLE_ZERO static final double Defines an zeroed double 0.0
FLOAT_ZERO static final float Defines an zeroed float 0.0f
INT_ZERO static final int Defines an zeroed int 0
LOGGED_OUT static final Integer Defines user logged out indicator -1
placeMap googleMap Place location on Google Maps null
birthDateField EditText Birth date field of user registration view null
name String Place name STRING_EMPTY
phone String Place phone STRING_EMPTY
operation String Place operation STRING_EMPTY
description String Place description STRING_EMPTY
longitude double Place longitude DOUBLE_ZERO
latitude double Place latitude DOUBLE_ZERO
address String Place address STRING_EMPTY
grade float Place grade FLOAT_ZERO
idPlace int Place id INT_ZERO
showMapButton Button Button that shows map null
hideMapButton Button Button that hides map null
placeMapFragment SupportMapFragment Map fragment with the place null
ratingBar RatingBar Rating bar to evaluate the place null
userdId Integer Current user id LOGGED_OUT
isUserLoggedIn boolean Indicates if the user is logged in or not false
ratingEvaluation Evaluation Place rating evaluation null

2. Methods

2.1. onCreate

2.1.1. Description:

  • Calls the parent onCreate to setup the activity view that contains this fragment

2.1.2. Arguments:

  • Bundle savedInstanceState If the activity is being re-initialized after previously being shut down then this Bundle contains the data it most recently supplied in

2.1.3. Return:

  • Type: Void

2.1.4. Variables:

  • No other variables

2.2. setRatingBarIfNeeded

2.2.1. Description:

  • Sets rating bar if user is logged in

2.2.2. Arguments:

  • No arguments

2.2.3. Return:

  • Type: Void

2.2.4. Variables:

  • No other variables

2.3. setRatingBar

2.3.1. Description:

  • Sets rating bar on place view

2.3.2. Return:

  • Type: Void

2.3.3. Arguments:

  • No arguments

2.3.4. Variables:

Name Type Description Default Value
evaluatePlaceDAO EvaluatePlaceDAO Object that comunicates with database * * *

2.4. setRatingBarStyle

2.4.1. Description:

  • Sets rating bar style

2.4.2. Return:

  • Type: Void

2.4.3. Arguments:

  • No arguments

2.4.4. Variables:

Name Type Description Default Value
stars LayerDrawable Stars on view used in place rating * * *

2.5. setUpMapIfNeeded

2.5.1. Description:

  • Sets up map if is not null

2.5.2. Return:

  • Type: Void

2.5.3. Arguments:

  • No arguments

2.5.4. Variables:

  • No other variables

2.6. setUpMap

2.6.1. Description:

  • Sets up map

2.6.2. Return:

  • Type: Void

2.6.3. Arguments:

  • No arguments

2.6.4. Variables:

  • No other variables

2.7. markPlaceOnMap

2.7.1. Description:

  • Marks place on map

2.7.2. Return:

  • Type: Void

2.7.3. Arguments:

  • No arguments

2.7.4. Variables:

  • No other variables

2.8. showPlaceInfoOnClick

2.8.1. Description:

  • Show place information when the user clicks on this option

2.8.2. Return:

  • Type: Void

2.8.3. Arguments:

  • View view: view where the place will be shown

2.8.4. Variables:

  • No other variables

2.9. setPlaceInformation

2.9.1. Description:

  • Sets place information

2.9.2. Return:

  • Type: Void

2.9.3. Arguments:

  • No arguments

2.9.4. Variables:

Name Type Description Default Value
intent Intent Indicate current intent * * *

2.10. setGrade

2.10.1. Description:

  • Sets grade value

2.10.2. Return:

  • Type: Void

2.10.3. Arguments:

  • float grade: New grade value

2.10.4. Variables:

  • No other variables

2.11. setAddress

2.11.1. Description:

  • Sets place address

2.11.2. Return:

  • Type: Void

2.11.3. Arguments:

  • String address: New place address

2.11.4. Variables:

  • No other variables

2.12. getAddress

2.12.1. Description:

  • Returns the place address

2.12.2. Return:

  • Type: String
  • Description: Current place address

2.12.3. Arguments:

  • No arguments

2.12.4. Variables:

  • No other variables

2.13. getLongitude

2.13.1. Description:

  • Returns the place longitude

2.13.2. Return:

* **Type:** double
* **Description:** Current place longitude

2.13.3. Arguments:

  • No arguments

2.13.4. Variables:

  • No other variables

2.14. setLongitude

2.14.1. Description:

  • Sets longitude value

2.14.2. Return:

  • Type: Void

2.14.3. Arguments:

  • double longitude: New longitude value

2.14.4. Variables:

  • No other variables

2.15. setDescription

2.15.1. Description:

  • Sets place description

2.15.2. Return:

  • Type: Void

2.15.3. Arguments:

  • String description: New place description

2.15.4. Variables:

  • No other variables

2.16. setOperation

2.16.1. Description:

  • Sets operation value

2.16.2. Return:

  • Type: Void

2.16.3. Arguments:

  • String operation: New operation value

2.16.4. Variables:

  • No other variables

2.17. setPhone

2.17.1. Description:

  • Sets place phone

2.17.2. Return:

  • Type: Void

2.17.3. Arguments:

  • String phone: New place phone

2.17.4. Variables:

  • No other variables

2.18. getName

2.18.1. Description:

  • Returns the place name

2.18.2. Return:

  • Type: String
  • Description: Current place name

2.18.3. Arguments:

  • No arguments

2.18.4. Variables:

  • No other variables

2.19. setName

2.19.1. Description:

  • Sets place name

2.19.2. Return:

  • Type: Void

2.19.3. Arguments:

  • String phone: New place name

2.19.4. Variables:

  • No other variables

2.20. getLatitude

2.20.1. Description:

  • Returns the place latitude

2.20.2. Return:

  • Type: String
  • Description: Current place latitude

2.20.3. Arguments:

  • No arguments

2.20.4. Variables:

  • No other variables

2.21. setLatitude

2.21.1. Description:

* Sets place latitude

2.21.2. Return:

  • Type: Void

2.21.3. Arguments:

  • String phone: New place latitude

2.21.4. Variables:

  • No other variables