Compare commits

..

No commits in common. "master" and "CSS-Refactor" have entirely different histories.

19 changed files with 42 additions and 74 deletions

View File

@ -28,15 +28,15 @@ public class CreateEventController {
@FXML @FXML
protected JFXComboBox<String> comboBoxPriority; protected JFXComboBox<String> comboBoxPriority;
@FXML @FXML
protected JFXToggleButton toggleBtnIsFullDay; private JFXToggleButton toggleBtnIsFullDay;
@FXML @FXML
protected JFXToggleButton toggleBtnIsPrivate; private JFXToggleButton toggleBtnIsPrivate;
@FXML @FXML
private Label labelError; private Label labelError;
@FXML @FXML
protected JFXTimePicker timeStart; private JFXTimePicker timeStart;
@FXML @FXML
protected JFXTimePicker timeEnd; private JFXTimePicker timeEnd;
public CreateEventController() { public CreateEventController() {
@ -91,7 +91,7 @@ public class CreateEventController {
dataController.createEvent(event); dataController.createEvent(event);
} }
//Marco Kühn// //Marc Beyer//
@FXML @FXML
protected void abortBtnClick(ActionEvent event) { protected void abortBtnClick(ActionEvent event) {
Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow(); Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();

View File

@ -1,12 +1,9 @@
//Marc Beyer//
package events; package events;
import helper.HttpRequestException; import helper.HttpRequestException;
import container.DataController; import container.DataController;
import container.Event; import container.Event;
import java.time.LocalTime;
public class EditEventController extends CreateEventController{ public class EditEventController extends CreateEventController{
private Event currentEvent; private Event currentEvent;
@ -22,17 +19,7 @@ public class EditEventController extends CreateEventController{
datePickerDate.setValue(currentEvent.getDate().toLocalDate()); datePickerDate.setValue(currentEvent.getDate().toLocalDate());
comboBoxPriority.getSelectionModel().select(currentEvent.getPriority()); comboBoxPriority.getSelectionModel().select(currentEvent.getPriority());
try{ //timeEnd.setValue(currentEvent.getEnd());
timeStart.setValue(LocalTime.parse(currentEvent.getStart()));
}catch (Exception e){}
try{
timeEnd.setValue(LocalTime.parse(currentEvent.getEnd()));
}catch (Exception e){}
toggleBtnIsFullDay.setSelected(currentEvent.isFullDay());
toggleBtnIsPrivate.setSelected(currentEvent.isPrivate());
} }
@Override @Override

View File

@ -57,7 +57,7 @@ public class MainApplication extends Application {
scene.getStylesheets().add(Objects.requireNonNull( scene.getStylesheets().add(Objects.requireNonNull(
MainApplication.class.getResource("main-view.css")).toExternalForm() MainApplication.class.getResource("main-view.css")).toExternalForm()
); );
stage.setTitle("SharePlanner"); stage.setTitle("SharePlaner");
stage.setScene(scene); stage.setScene(scene);
stage.show(); stage.show();
} }

View File

@ -1,4 +1,4 @@
// Marco Kühn, Marc Beyer // /* Marco Kühn, Marc Beyer */
package main; package main;
import config.Config; import config.Config;

View File

@ -1,4 +1,4 @@
// Marco Kühn // /* Marco Kühn */
package main; package main;
import com.jfoenix.controls.*; import com.jfoenix.controls.*;

View File

@ -1,4 +1,3 @@
//Marc Beyer//
package ui; package ui;
import javafx.scene.control.Label; import javafx.scene.control.Label;

View File

@ -1,4 +1,3 @@
//Marc Beyer, Marco Kühn//
package ui; package ui;
import container.Event; import container.Event;

View File

@ -1,4 +1,3 @@
//Marco Kühn//
package ui; package ui;
import javafx.geometry.Bounds; import javafx.geometry.Bounds;

View File

@ -1,14 +1,14 @@
//Alex Rechtin// //Alex Rechtin//
package users; package users;
import com.jfoenix.controls.JFXPasswordField;
import com.jfoenix.controls.JFXTextField;
import com.jfoenix.controls.JFXToggleButton;
import helper.HttpRequestException; import helper.HttpRequestException;
import javafx.event.ActionEvent; import javafx.event.ActionEvent;
import javafx.fxml.FXML; import javafx.fxml.FXML;
import javafx.scene.Node; import javafx.scene.Node;
import javafx.scene.control.Label; import javafx.scene.control.Label;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;
import javafx.scene.control.ToggleButton;
import javafx.stage.Stage; import javafx.stage.Stage;
import container.DataController; import container.DataController;
import container.User; import container.User;
@ -18,17 +18,17 @@ import java.util.Objects;
public class CreateUserController { public class CreateUserController {
@FXML @FXML
protected JFXTextField textName; protected TextField textName;
@FXML @FXML
protected JFXPasswordField textPassword; protected PasswordField textPassword;
@FXML @FXML
protected JFXPasswordField textPasswordSecond; protected PasswordField textPasswordSecond;
@FXML @FXML
protected JFXToggleButton checkButtonIsAdmin; protected ToggleButton checkButtonIsAdmin;
@FXML @FXML
protected JFXTextField textLogin; protected TextField textLogin;
@FXML @FXML
protected JFXTextField textForename; protected TextField textForename;
@FXML @FXML
protected Label labelError; protected Label labelError;

View File

@ -1,4 +1,4 @@
// Marc Beyer // /* Marc Beyer */
package users; package users;
import container.DataController; import container.DataController;

View File

@ -1,10 +1,8 @@
/*Alex Rechtin*/ /*Alex Rechtin*/
* { * {
-fx-dark-background-color: #3E415F; -fx-dark-background-color: #3E415F;
-fx-bright-background-color: #ffffff;
-fx-bright-border-color: #B0B0B0; -fx-bright-border-color: #B0B0B0;
-fx-brighter-text-color: #ff5555; -fx-brighter-text-color: #ffffff;
-fx-brightest-text-color: #ffffff;
} }
@ -31,13 +29,12 @@ GridPane{
Label{ Label{
-fx-text-fill: -fx-brightest-text-color; -fx-text-fill: -fx-brighter-text-color;
-fx-max-width: 150px; -fx-max-width: 150px;
-fx-min-width: 150px; -fx-min-width: 150px;
} }
.textField{ .textField{
-fx-background-color: -fx-bright-background-color;
-fx-max-width: 400px; -fx-max-width: 400px;
-fx-min-width: 400px; -fx-min-width: 400px;
} }
@ -45,11 +42,9 @@ Label{
.errorMessage{ .errorMessage{
-fx-max-width: 400px; -fx-max-width: 400px;
-fx-min-width: 400px; -fx-min-width: 400px;
-fx-text-fill: -fx-brighter-text-color;
} }
JFXButton{ Button{
-fx-background-color: -fx-bright-background-color;
-fx-max-width: 150px; -fx-max-width: 150px;
-fx-min-width: 150px; -fx-min-width: 150px;
} }

View File

@ -2,13 +2,10 @@
<!-- Alex Rechtin --> <!-- Alex Rechtin -->
<?import javafx.scene.control.Label?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import com.jfoenix.controls.JFXToggleButton?> <?import com.jfoenix.controls.JFXToggleButton?>
<?import com.jfoenix.controls.JFXButton?>
<?import com.jfoenix.controls.JFXPasswordField?>
<?import com.jfoenix.controls.JFXTextField?>
<GridPane xmlns="http://javafx.com/javafx" <GridPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml" xmlns:fx="http://javafx.com/fxml"
fx:controller="users.CreateUserController"> fx:controller="users.CreateUserController">
@ -36,15 +33,15 @@
<Label styleClass="inputLabel" GridPane.rowIndex="2" GridPane.columnIndex="1">Vorname:</Label> <Label styleClass="inputLabel" GridPane.rowIndex="2" GridPane.columnIndex="1">Vorname:</Label>
<Label styleClass="inputLabel" GridPane.rowIndex="3" GridPane.columnIndex="1">Nachname:</Label> <Label styleClass="inputLabel" GridPane.rowIndex="3" GridPane.columnIndex="1">Nachname:</Label>
<Label styleClass="inputLabel" GridPane.rowIndex="4" GridPane.columnIndex="1">Passwort:</Label> <Label styleClass="inputLabel" GridPane.rowIndex="4" GridPane.columnIndex="1">Passwort:</Label>
<Label styleClass="inputLabel" wrapText="true" GridPane.rowIndex="5" GridPane.columnIndex="1">Passwort wiederholen:</Label> <Label styleClass="inputLabel" GridPane.rowIndex="5" GridPane.columnIndex="1">Passwort wiederholen:</Label>
<Label styleClass="inputLabelAdmin" GridPane.rowIndex="6" GridPane.columnIndex="1">Admin:</Label> <Label styleClass="inputLabelAdmin" GridPane.rowIndex="6" GridPane.columnIndex="1">Admin:</Label>
<JFXTextField fx:id="textLogin" styleClass="textField" GridPane.columnIndex="2" GridPane.rowIndex="1" /> <TextField fx:id="textLogin" styleClass="textField" GridPane.columnIndex="2" GridPane.rowIndex="1" />
<JFXTextField fx:id="textForename" styleClass="textField" GridPane.columnIndex="2" GridPane.rowIndex="2" /> <TextField fx:id="textForename" styleClass="textField" GridPane.columnIndex="2" GridPane.rowIndex="2" />
<JFXTextField fx:id="textName" styleClass="textField" GridPane.columnIndex="2" GridPane.rowIndex="3" /> <TextField fx:id="textName" styleClass="textField" GridPane.columnIndex="2" GridPane.rowIndex="3" />
<JFXPasswordField fx:id="textPassword" styleClass="textField" GridPane.columnIndex="2" GridPane.rowIndex="4" /> <PasswordField fx:id="textPassword" styleClass="textField" GridPane.columnIndex="2" GridPane.rowIndex="4" />
<JFXPasswordField fx:id="textPasswordSecond" styleClass="textField" GridPane.columnIndex="2" GridPane.rowIndex="5" /> <PasswordField fx:id="textPasswordSecond" styleClass="textField" GridPane.columnIndex="2" GridPane.rowIndex="5" />
<JFXToggleButton fx:id="checkButtonIsAdmin" GridPane.columnIndex="2" GridPane.rowIndex="6"/> <JFXToggleButton fx:id="checkButtonIsAdmin" GridPane.columnIndex="2" GridPane.rowIndex="6"/>
@ -54,8 +51,8 @@
<HBox.margin> <HBox.margin>
<Insets right="100" left="100"/> <Insets right="100" left="100"/>
</HBox.margin> </HBox.margin>
<JFXButton onAction="#abortBtnClick">Abbrechen</JFXButton> <Button onAction="#abortBtnClick">Abbrechen</Button>
<JFXButton onAction="#createUser" styleClass="btnLogin" >Anlegen</JFXButton> <Button onAction="#createUser" styleClass="btnLogin" >Anlegen</Button>
</HBox> </HBox>
</GridPane> </GridPane>

View File

@ -1,13 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- Alex Rechtin--> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<?import javafx.geometry.Insets?> <?import javafx.geometry.Insets?>
<?import com.jfoenix.controls.JFXToggleButton?> <?import com.jfoenix.controls.JFXToggleButton?>
<?import com.jfoenix.controls.JFXTextField?>
<?import com.jfoenix.controls.JFXPasswordField?>
<?import com.jfoenix.controls.JFXButton?>
<?import javafx.scene.control.Label?>
<GridPane xmlns="http://javafx.com/javafx" <GridPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml" xmlns:fx="http://javafx.com/fxml"
fx:controller="users.EditUserController"> fx:controller="users.EditUserController">
@ -35,15 +31,15 @@
<Label styleClass="inputLabel" GridPane.rowIndex="2" GridPane.columnIndex="1">Vorname:</Label> <Label styleClass="inputLabel" GridPane.rowIndex="2" GridPane.columnIndex="1">Vorname:</Label>
<Label styleClass="inputLabel" GridPane.rowIndex="3" GridPane.columnIndex="1">Nachname:</Label> <Label styleClass="inputLabel" GridPane.rowIndex="3" GridPane.columnIndex="1">Nachname:</Label>
<Label styleClass="inputLabel" GridPane.rowIndex="4" GridPane.columnIndex="1">Passwort:</Label> <Label styleClass="inputLabel" GridPane.rowIndex="4" GridPane.columnIndex="1">Passwort:</Label>
<Label styleClass="inputLabel" wrapText="true" GridPane.rowIndex="5" GridPane.columnIndex="1">Passwort wiederholen:</Label> <Label styleClass="inputLabel" GridPane.rowIndex="5" GridPane.columnIndex="1">Passwort wiederholen:</Label>
<Label styleClass="inputLabelAdmin" GridPane.rowIndex="6" GridPane.columnIndex="1">Admin:</Label> <Label styleClass="inputLabelAdmin" GridPane.rowIndex="6" GridPane.columnIndex="1">Admin:</Label>
<JFXTextField fx:id="textLogin" styleClass="textField" GridPane.columnIndex="2" GridPane.rowIndex="1" /> <TextField fx:id="textLogin" styleClass="textField" GridPane.columnIndex="2" GridPane.rowIndex="1" />
<JFXTextField fx:id="textForename" styleClass="textField" GridPane.columnIndex="2" GridPane.rowIndex="2" /> <TextField fx:id="textForename" styleClass="textField" GridPane.columnIndex="2" GridPane.rowIndex="2" />
<JFXTextField fx:id="textName" styleClass="textField" GridPane.columnIndex="2" GridPane.rowIndex="3" /> <TextField fx:id="textName" styleClass="textField" GridPane.columnIndex="2" GridPane.rowIndex="3" />
<JFXPasswordField fx:id="textPassword" styleClass="textField" GridPane.columnIndex="2" GridPane.rowIndex="4" /> <PasswordField fx:id="textPassword" styleClass="textField" GridPane.columnIndex="2" GridPane.rowIndex="4" />
<JFXPasswordField fx:id="textPasswordSecond" styleClass="textField" GridPane.columnIndex="2" GridPane.rowIndex="5" /> <PasswordField fx:id="textPasswordSecond" styleClass="textField" GridPane.columnIndex="2" GridPane.rowIndex="5" />
<JFXToggleButton fx:id="checkButtonIsAdmin" GridPane.columnIndex="2" GridPane.rowIndex="6"/> <JFXToggleButton fx:id="checkButtonIsAdmin" GridPane.columnIndex="2" GridPane.rowIndex="6"/>
@ -53,8 +49,8 @@
<HBox.margin> <HBox.margin>
<Insets right="100" left="100"/> <Insets right="100" left="100"/>
</HBox.margin> </HBox.margin>
<JFXButton onAction="#abortBtnClick">Abbrechen</JFXButton> <Button onAction="#abortBtnClick">Abbrechen</Button>
<JFXButton onAction="#createUser" styleClass="btnLogin" >Bearbeiten</JFXButton> <Button onAction="#createUser" styleClass="btnLogin" >Bearbeiten</Button>
</HBox> </HBox>
</GridPane> </GridPane>

View File

@ -6,7 +6,7 @@
-fx-bright-border-color: #B0B0B0; -fx-bright-border-color: #B0B0B0;
-fx-bright-text-color: #ff5555; -fx-bright-text-color: ##ff5555;
-fx-brighter-text-color: #ffffff; -fx-brighter-text-color: #ffffff;
} }

View File

@ -26,7 +26,7 @@
<JFXTextField styleClass="userField" GridPane.columnIndex="1" GridPane.rowIndex="1" fx:id="userField"/> <JFXTextField styleClass="userField" GridPane.columnIndex="1" GridPane.rowIndex="1" fx:id="userField"/>
<Label styleClass="errorLbl" GridPane.columnIndex="2" GridPane.rowIndex="1" fx:id="userErrLabel"/> <Label styleClass="errorLbl" GridPane.columnIndex="2" GridPane.rowIndex="1" fx:id="userErrLabel"/>
<Label GridPane.rowIndex="2">Passwort</Label> <Label GridPane.rowIndex="2">Paswort</Label>
<JFXPasswordField styleClass="passField" GridPane.columnIndex="1" GridPane.rowIndex="2" fx:id="passField"/> <JFXPasswordField styleClass="passField" GridPane.columnIndex="1" GridPane.rowIndex="2" fx:id="passField"/>
<Label styleClass="errorLbl" GridPane.columnIndex="2" GridPane.rowIndex="2" fx:id="passErrLabel"/> <Label styleClass="errorLbl" GridPane.columnIndex="2" GridPane.rowIndex="2" fx:id="passErrLabel"/>

View File

@ -1,4 +1,3 @@
//Marc Beyer//
package container; package container;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;

View File

@ -1,4 +1,3 @@
//Marco Kühn//
package container; package container;
import java.time.Duration; import java.time.Duration;

View File

@ -1,4 +1,3 @@
//Marc Beyer//
package container; package container;
import helper.Tuple; import helper.Tuple;

View File

@ -1,4 +1,3 @@
//Marco Kühn//
package container; package container;
public class User { public class User {