Search in sources :

Example 1 with LeafElement

use of com.helospark.tactview.ui.javafx.tiwulfx.com.panemu.tiwulfx.control.LeafElement in project tactview by helospark.

the class DefaultLayoutProvider method provideDefaultLayout.

public DetachableTabPaneLoadModel provideDefaultLayout() {
    SplitPaneElement splitPaneElement = new SplitPaneElement();
    splitPaneElement.isVertical = false;
    splitPaneElement.size = new double[] { 0.2, 0.6, 0.2 };
    DetachableTab propertyEditorTab = propertyEditorDockableTabFactory.createTab();
    DetachableTab addableContentEditorTab = addableContentDockableTabFactory.createTab();
    DetachableTab curveEditorTab = curveEditorDockableTabFactory.createTab();
    DetachableTab previewTab = previewDockableTabFactory.createTab();
    splitPaneElement.children.add(new LeafElement(List.of(propertyEditorTab)));
    splitPaneElement.children.add(new LeafElement(List.of(addableContentEditorTab, curveEditorTab)));
    splitPaneElement.children.add(new LeafElement(List.of(previewTab)));
    return new DetachableTabPaneLoadModel(splitPaneElement);
}
Also used : SplitPaneElement(com.helospark.tactview.ui.javafx.tiwulfx.com.panemu.tiwulfx.control.SplitPaneElement) DetachableTabPaneLoadModel(com.helospark.tactview.ui.javafx.tiwulfx.com.panemu.tiwulfx.control.DetachableTabPaneLoadModel) DetachableTab(com.helospark.tactview.ui.javafx.tiwulfx.com.panemu.tiwulfx.control.DetachableTab) LeafElement(com.helospark.tactview.ui.javafx.tiwulfx.com.panemu.tiwulfx.control.LeafElement)

Aggregations

DetachableTab (com.helospark.tactview.ui.javafx.tiwulfx.com.panemu.tiwulfx.control.DetachableTab)1 DetachableTabPaneLoadModel (com.helospark.tactview.ui.javafx.tiwulfx.com.panemu.tiwulfx.control.DetachableTabPaneLoadModel)1 LeafElement (com.helospark.tactview.ui.javafx.tiwulfx.com.panemu.tiwulfx.control.LeafElement)1 SplitPaneElement (com.helospark.tactview.ui.javafx.tiwulfx.com.panemu.tiwulfx.control.SplitPaneElement)1