-
Enhancement
-
Resolution: Fixed
-
P4
-
fx2.0
-
b42
Currently FXML does not seem to map properties of the base class that a Controller extends, even if these properties are annotated with @FXML.
If we have this:
public class MyBaseController
{
@FXML
protected Label myLabel1;
}
And this:
public class MyController extends MyBaseController
{
@FXML
protected Label myLabel2;
}
And then we load some FXML that references MyController as its controller, it seems only the direct properties on the Controller class are mapped (i.e. 'myLabel2') and not the inherited ones (i.e. 'myLabel1'). Ideally it would load both.
If we have this:
public class MyBaseController
{
@FXML
protected Label myLabel1;
}
And this:
public class MyController extends MyBaseController
{
@FXML
protected Label myLabel2;
}
And then we load some FXML that references MyController as its controller, it seems only the direct properties on the Controller class are mapped (i.e. 'myLabel2') and not the inherited ones (i.e. 'myLabel1'). Ideally it would load both.