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

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

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

import javafx.beans.property.ObjectProperty;
import javafx.beans.property.StringProperty;
import javafx.scene.Node;

/**
 * Represents a dock child that the user can drag from one {@link Track} to
 * another {@link Track}.
 */
public interface Dockable extends DockChild {
    /**
     * The name of the {@link #graphicProperty()} ()}.
     */
    String GRAPHIC_PROPERTY = "graphic";
    /**
     * The name of the {@link #textProperty()} ()}.
     */
    String TEXT_PROPERTY = "text";

    /**
     * The graphic of this dockable.
     * 

* The user uses the graphic to drag and drop the dockable. * * @return the graphic */ ObjectProperty graphicProperty(); default Node getGraphic() { return graphicProperty().get(); } default void setGraphic(Node value) { graphicProperty().set(value); } /** * The text of this dockable. *

* The user uses the text to identify the dockable. * * @return the graphic */ StringProperty textProperty(); default String getText() { return textProperty().get(); } default void setText(String value) { textProperty().set(value); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy