java.lang.Object
com.ogc.pharmagcode.Entity.Farmaco
com.ogc.pharmagcode.Common.RecordFarmaco
Questa classe serve a poter visualizzare un
Farmaco
all'interno di una tabella JavaFX
In particolare รจ possibile aggiungere un bottone con un suo testo
ed una sua funzione
-
Constructor Summary
ConstructorsConstructorDescriptionRecordFarmaco
(int id_farmaco, String nome, String principio_attivo, boolean da_banco, int quantitaFarmaci, String nomeBottone, javafx.event.EventHandler<javafx.event.ActionEvent> callback) RecordFarmaco
(int id_farmaco, String nome, String principio_attivo, boolean da_banco, String nomeBottone, javafx.event.EventHandler<javafx.event.ActionEvent> callback) -
Method Summary
Modifier and TypeMethodDescriptionstatic RecordFarmaco
fromFarmaco
(Farmaco farmaco) static RecordFarmaco
fromFarmaco
(Farmaco farmaco, String nomeBottone, javafx.event.EventHandler<javafx.event.ActionEvent> callback) javafx.scene.control.Button
javafx.event.EventHandler<javafx.event.ActionEvent>
Methods inherited from class com.ogc.pharmagcode.Entity.Farmaco
createFromDB, equals, getId_farmaco, getNome, getPrincipio_attivo, getQuantitaFarmaci, hashCode, isDa_banco, riempiQuantita, toString
-
Constructor Details
-
RecordFarmaco
-
RecordFarmaco
-
-
Method Details
-
fromFarmaco
public static RecordFarmaco fromFarmaco(Farmaco farmaco, String nomeBottone, javafx.event.EventHandler<javafx.event.ActionEvent> callback) -
fromFarmaco
-
getNomeBottone
-
getCallback
public javafx.event.EventHandler<javafx.event.ActionEvent> getCallback() -
getBottone
public javafx.scene.control.Button getBottone()
-