mpicbg-scicomp / halcyon

Halcyon is JavaFX framework for designing dockable multiple window applications
GNU General Public License v2.0
5 stars 1 forks source link

Device Panels: Make sure to set the current GUI state at constructor time #49

Closed royerloic closed 7 years ago

royerloic commented 8 years ago

Device panel constructors take the device (interface) and thus build the GUI panel accordingly by binding the GUI elements to the device variables. One thing not to forget is to synchronize the state of the GUI in the constructor, otherwise the GUI will not reflect the state of the device before any events are fired.

For example, at start the stages are ready (for the stage simulator) but thsi is not reflectd on the GUI. I added the following code to ensure that:

image

Please make sure that all the other panels and other variables of the stage panel also have this construction time sync.