All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jhotdraw8.fxcontrols.dock.SimpleDockable Maven / Gradle / Ivy

The newest version!
/*
 * @(#)SimpleDockable.java
 * Copyright © 2023 The authors and contributors of JHotDraw. MIT License.
 */
package org.jhotdraw8.fxcontrols.dock;

import javafx.scene.Node;
import javafx.scene.text.Text;

public class SimpleDockable extends AbstractDockable {
    private final Node node;

    public SimpleDockable(Node content) {
        this(null, content);
    }

    public SimpleDockable(String text, Node content) {
        this.node = content;
        setText(text);
        final Text textualIcon = new Text("❏");
        setGraphic(textualIcon);
    }


    @Override
    public Node getNode() {
        return node;
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy