This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 216592

Summary: New Controller from an existing FXML
Product: javafx Reporter: Svata Dedic <sdedic>
Component: EditorAssignee: Svata Dedic <sdedic>
Status: RESOLVED FIXED    
Severity: normal Keywords: PLAN
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: TASK Exception Reporter:

Description Svata Dedic 2012-08-09 12:01:33 UTC
Create a new Controller class, based on an existing .fxml description file.
Comment 1 Svata Dedic 2012-08-09 12:15:38 UTC
Very basic behaviour implemented. 

Fields types are overwritten for components with ID, and overloaded methods added for event handlers. If a binding/handler is not matched to XML, it looses its @FXML annotation and if not used (and empty, in the case of handlers), it is removed from the source.

Controller is generated according to the fx:controller attribute, or if the name is missing, controller name is guessed from fxml filename.