-
Enhancement
-
Resolution: Fixed
-
P2
-
fx2.0
We currently have an Alert class with some static convenience methods defined.
This class is not currently functional at all on Prism. In addition to the changes needed to make it functional, the current "Toolkit-based" implementation is not flexible (cannot be skinned), is based on an old JavaFX-TV implementation, and has introduced a dependency in javafx-ui-quantum on javafx-ui-controls. It needs to be rewritten.
Additionally, the public Alert API is missing a necessary parameter for the owner of the dialog.
I have prototyped an updated version of the API (by adding the missing "owner" parameter) and a bare-bones sample implementation in toys/HelloWorld/alertdialog that can be the basis of a real implementation.
We need to do one of the following:
1) Remove Alert and don't provide the functionality at all in this release. This is the easiest, but we would not be providing something that was there (after a fashion) in JavaFX 1.3.
2) Move Alert to javafx.scene.control and fix up the API by adding the missing Window owner parameter to all of the methods. Implement a placeholder implementation, initially with no UI design. The problem is it will be a late-breaking feature and doing the UI design is not scheduled work. I had also wondered whether we could make it "preview" control for 2.0, but Rich thinks this may not fly.
Both options will include removing javafx.stage.Alert and the toolkit implementations (which, as noted above, are not functional anyway).
This class is not currently functional at all on Prism. In addition to the changes needed to make it functional, the current "Toolkit-based" implementation is not flexible (cannot be skinned), is based on an old JavaFX-TV implementation, and has introduced a dependency in javafx-ui-quantum on javafx-ui-controls. It needs to be rewritten.
Additionally, the public Alert API is missing a necessary parameter for the owner of the dialog.
I have prototyped an updated version of the API (by adding the missing "owner" parameter) and a bare-bones sample implementation in toys/HelloWorld/alertdialog that can be the basis of a real implementation.
We need to do one of the following:
1) Remove Alert and don't provide the functionality at all in this release. This is the easiest, but we would not be providing something that was there (after a fashion) in JavaFX 1.3.
2) Move Alert to javafx.scene.control and fix up the API by adding the missing Window owner parameter to all of the methods. Implement a placeholder implementation, initially with no UI design. The problem is it will be a late-breaking feature and doing the UI design is not scheduled work. I had also wondered whether we could make it "preview" control for 2.0, but Rich thinks this may not fly.
Both options will include removing javafx.stage.Alert and the toolkit implementations (which, as noted above, are not functional anyway).
- duplicates
-
JDK-8111036 Alert isn't shown in Windows
- Closed
-
JDK-8112985 Mac: Alert dialog methods have no effect
- Closed
- relates to
-
JDK-8097791 Add javafx.scene.control.Alert class
- Resolved