Menu

Fixed window (divider) positions

Dirk
2014-10-28
2014-10-29
  • Dirk

    Dirk - 2014-10-28

    We created our own docking area layout as described in the wiki.

    Our layout has a top, bottom and statusbar area amongst others. How can we set the statusbar area at a fixed size so that the divider in the split pane is not resizable?

     
  • Puce

    Puce - 2014-10-29

    Currently fixed sizes are not supported and I'm not sure if this is really needed inside a DockingPane. Usually (eg. see NetBeans or Eclipse) things like the statusbar area but also the menu bar and toolbar area are outside the docking section.

    At one point I think Drombler FX will have to support a mechanism for developers to provide a custom main scene as not all applications nowadays have the classic 'menubar, toolbar, docking section, statusbar' layout but are e.g. screen/ flow based.

    For now as a work-around you could try with Fragment Bundle of the drombler-fx-core-application bundle to replace the ApplicationPane.fxml (sourceforge.net)

     
  • Puce

    Puce - 2014-10-29

    Eg. try (untested):

    ~~~~~xml
    <build>
    ...
    <plugins>
    ...
    <plugin>
    <groupid>org.apache.felix</groupid>
    <artifactid>maven-bundle-plugin</artifactid>
    <extensions>true</extensions>
    <configuration>
    <instructions>
    <fragment-host>org.drombler.fx.drombler-fx-core-application;bundle-version=${drombler.fx.osgi.version.clean}</fragment-host>
    </instructions>
    <versions>
    <drombler.fx.osgi.version.clean>${drombler-fx.version}</drombler.fx.osgi.version.clean>
    </versions>
    </configuration>
    <executions>
    <execution>
    <phase>generate-sources</phase>
    <goals>
    <goal>cleanVersions</goal>
    </goals>
    </execution>
    </executions>
    </plugin>
    ...
    </plugins>
    ...
    </build>
    ~~~~~

    And provide an ApplicationPane.fxml at /src/main/resources/org/drombler/fx/core/application/impl

     

    Last edit: Puce 2014-10-29

Log in to post a comment.

MongoDB Logo MongoDB