Menu

DromblerFX 0.4: Does not work with SceneBuilder 2

Dirk
2014-08-21
2014-08-21
  • Dirk

    Dirk - 2014-08-21

    Import drombler-commons-fx-docking-0.4.jar into SceneBuilder library. DockablePane is not recognized as control because it implements Dockable which obviously confuses the builder.

    I checked out DromblerFX 0.5 snapshot and removed the interface in DockablePane. Now you can import it into SceneBuilder but it is still to no use. You cannot add a container or any control to a DockablePane.

    For us unfortunately this is a show stopper for further evaluating DromblerFX as we are not willing to write fxml by hand.

    Simple fxml tested:

    <?xml version="1.0" encoding="UTF-8"?>
    
    \<?import javafx.scene.control.\*?>
    \<?import java.lang.*?>
    \<?import javafx.scene.layout.*?>
    \<?import org.drombler.commons.fx.docking.*?>
    
    \<?scenebuilder-classpath-element ../../../../../../../../../../../../../../../.m2/repository/org/drombler/commons/drombler-commons-fx-docking/0.4/drombler-commons-fx-docking-0.4.jar?&gt;
    
    <fx:root type="DockablePane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" 
             style="-fx-background-color: red;" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1">
        <Label fx:id="lblText" text="Text" />
        <TextField fx:id="txtField" />
    </fx:root>
    
     
  • Dirk

    Dirk - 2014-08-21
     
  • Puce

    Puce - 2014-08-21

    Issue [#44] "Make the Docking Framework more lightweight: Remove Dockable and DockablePane from the API" should solve this issue.
    The @EditorDocking and @ViewDocking annotations will then be supported on any subclass of Node. You could then eg. inherit directly from a javafx.scene.layout.Pane subclass such as GridPane or BorderPane.

    Also note that the Dockable interface is in the drombler-commons-client-docking-0.4.jar library.

     

    Last edit: Puce 2014-08-21

Log in to post a comment.