Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time picker bindings #68

Merged

Conversation

cpreisler
Copy link
Contributor

Added secondFieldVisibleProperty and millisecondFieldVisibleProperty to TimePicker and changed TimePickerSkin to bind the managed and visible properties to these new properties. This allows users to change and see the format of the TimePicker in SceneBuilder. I also slightly changed the handling of NEW_TIME property change and handling of set minimum to handle setting the TimePicker time to null multiple times and then editing the field. Previously the time was not always set and the NEW_TIME property was not handled correctly and the minimum value for a field was set when the time was null.

Copy link
Collaborator

@dlemmermann dlemmermann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need boolean properties now for showing the seconds and millisecond fields? We do have the "format" property for exactly that. Doesn't your change mean I could show milliseconds without seconds? I don't understand.

@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please delete netbeans config file from project.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed it

@cpreisler
Copy link
Contributor Author

cpreisler commented Apr 2, 2023 via email

@dlemmermann
Copy link
Collaborator

dlemmermann commented Apr 2, 2023 via email

@cpreisler
Copy link
Contributor Author

cpreisler commented Apr 2, 2023 via email

Chad Preisler and others added 2 commits April 2, 2023 16:45
@cpreisler
Copy link
Contributor Author

I removed the second/millisecond properties and fixed the code so that setting the format from FXML (and consequently SceneBuilder) works.

}

public void updateFormat() {
var picker = getSkinnable();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GemsFX does not use "var", sorry.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed "var"

@dlemmermann dlemmermann merged commit dc8be77 into dlsc-software-consulting-gmbh:master Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants