#fix 19 TabPohja on nyt Tab, joka hoitaa monia asioita kuin itsestään
Signed-off-by: laurimaaninka <lauri.maaninka@gmail.com>
This commit is contained in:
@@ -36,34 +36,32 @@ public class KuljetusRaportit extends TabPohja {
|
||||
}
|
||||
|
||||
public KuljetusRaportit() {
|
||||
BorderPane root = new BorderPane();
|
||||
root.setPadding(oletusInsets);
|
||||
this.getChildren().add(root);
|
||||
super("Raportit");
|
||||
|
||||
BorderPane yläpalkki = new BorderPane();
|
||||
root.setTop(yläpalkki);
|
||||
|
||||
Label infoTeksti = new FontLabel(tekstiFont, "Kuljetusraportit. \nTarkka-valinnalla koostetun raportin \ntulostaminen paperille ei suositeltua.");
|
||||
Label infoTeksti = new FontLabel(TEKSTI_FONT, "Kuljetusraportit. \nTarkka-valinnalla koostetun raportin \ntulostaminen paperille ei suositeltua.");
|
||||
yläpalkki.setLeft(infoTeksti);
|
||||
|
||||
HBox yläpalkinNapit = new HBox();
|
||||
yläpalkinNapit.setAlignment(Pos.CENTER);
|
||||
yläpalkinNapit.setSpacing(spacing);
|
||||
yläpalkinNapit.setSpacing(SPACING);
|
||||
yläpalkki.setRight(yläpalkinNapit);
|
||||
|
||||
tarkka = new CheckBox("Tarkka");
|
||||
tarkka.setFont(tekstiFont);
|
||||
tarkka.setFont(TEKSTI_FONT);
|
||||
alkuPvm = new DatePicker(LocalDate.now().minusDays(LocalDate.now().getDayOfMonth() - 1));
|
||||
loppuPvm = new DatePicker(LocalDate.now());
|
||||
Button haeKuljetukset = new Button("Hae");
|
||||
haeKuljetukset.setFont(buttonFont);
|
||||
haeKuljetukset.setFont(BUTTON_FONT);
|
||||
haeKuljetukset.setOnAction(_ ->haeRaportti());
|
||||
Button tulostaRaportti = new Button("Tulosta raportti");
|
||||
tulostaRaportti.setFont(buttonFont);
|
||||
tulostaRaportti.setFont(BUTTON_FONT);
|
||||
tulostaRaportti.setOnAction(_ ->tulostaRaportti());
|
||||
yläpalkinNapit.getChildren().addAll(tarkka,
|
||||
//new FontLabel(tekstiFont,"Hae kuljetukset välillä:"),
|
||||
alkuPvm, new FontLabel(tekstiFont,"-"), loppuPvm,
|
||||
alkuPvm, new FontLabel(TEKSTI_FONT,"-"), loppuPvm,
|
||||
haeKuljetukset, tulostaRaportti);
|
||||
|
||||
root.setCenter(tableView);
|
||||
@@ -111,7 +109,7 @@ public class KuljetusRaportit extends TabPohja {
|
||||
|
||||
tableView.getColumns().addAll(tcNimi, tcPvm, tcSalaatit, tcPääruoat, tcJälkiruoat, tcLisätiedot,
|
||||
tcYhteyshenkilönNimi, tcLaskutusOsoite, tcYhteyshenkilönPuhelinnumero, tcYhteyshenkilönSähköposti);
|
||||
tableView.setPlaceholder(new FontLabel(buttonFont, "Hae raportti"));
|
||||
tableView.setPlaceholder(new FontLabel(BUTTON_FONT, "Hae raportti"));
|
||||
for (TableColumn<RaporttiRivi, ?> sarake : tableView.getColumns()) {
|
||||
sarake.setSortable(false);
|
||||
sarake.setEditable(false);
|
||||
@@ -122,4 +120,7 @@ public class KuljetusRaportit extends TabPohja {
|
||||
"-fx-font-family: " + Main.properties.getProperty("tekstiFontti"));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void päivitä() {}
|
||||
}
|
||||
Reference in New Issue
Block a user