Package controllers
Class Casello
- java.lang.Object
-
- controllers.Controller
-
- controllers.Casello
-
public class Casello extends Controller
Handles Casello's distances- Author:
- gabrieleromanato
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getEndKm()
double
getStartKm()
void
renderView()
Renders the viewboolean
saveCasello(CaselloModel casello)
Save a new casello into the databasevoid
setEndKm(double endKm)
void
setEndKm(java.lang.String casello)
void
setStartKm(double startKm)
void
setStartKm(java.lang.String casello)
void
setView(Caselli view)
Sets the view instance-
Methods inherited from class controllers.Controller
setView
-
-
-
-
Method Detail
-
setView
public void setView(Caselli view)
Sets the view instance- Parameters:
view
- A view instance
-
renderView
public void renderView()
Renders the view- Overrides:
renderView
in classController
-
setStartKm
public void setStartKm(java.lang.String casello)
-
setEndKm
public void setEndKm(java.lang.String casello)
-
getStartKm
public double getStartKm()
-
setStartKm
public void setStartKm(double startKm)
-
getEndKm
public double getEndKm()
-
setEndKm
public void setEndKm(double endKm)
-
saveCasello
public boolean saveCasello(CaselloModel casello)
Save a new casello into the database- Parameters:
casello
- Casello model instance- Returns:
- boolean
-
-