removed unnecessary properties
Some checks failed
Build / Compile and Test (push) Failing after 0s

This commit is contained in:
Jan-Peter Klein 2024-09-16 15:40:52 +02:00
parent a09b55c81b
commit c5cfe4d1b3
No known key found for this signature in database
GPG Key ID: 90EDA3A7C822FD0E

View File

@ -4,8 +4,6 @@ import org.cryptomator.ui.common.FxmlFile;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.control.Button;
@ -21,7 +19,6 @@ public class NotificationBar extends HBox {
@FXML
private Button closeButton;
private final StringProperty textProperty = new SimpleStringProperty();
private final BooleanProperty dismissable = new SimpleBooleanProperty();
private final BooleanProperty notify = new SimpleBooleanProperty();
@ -29,7 +26,6 @@ public class NotificationBar extends HBox {
public NotificationBar() {
loadFXML();
closeButton.visibleProperty().bind(dismissable);
notificationLabel.textProperty().bind(textProperty);
visibleProperty().bind(notifyProperty());
managedProperty().bind(notifyProperty());
@ -54,15 +50,11 @@ public class NotificationBar extends HBox {
}
public String getText() {
return textProperty.get();
return notificationLabel.getText();
}
public void setText(String text) {
textProperty.set(text);
}
public StringProperty textProperty() {
return textProperty;
notificationLabel.setText(text);
}
public void setStyleClass(String styleClass) {
@ -77,10 +69,6 @@ public class NotificationBar extends HBox {
dismissable.set(value);
}
public BooleanProperty dismissableProperty() {
return dismissable;
}
public boolean getNotify() {
return notify.get();
}