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

com.dua3.fx.controls.InputPane Maven / Gradle / Ivy

The newest version!
package com.dua3.fx.controls;

import javafx.scene.Node;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.util.Collections;
import java.util.Map;


public class InputPane extends InputDialogPane> {

    /**
     * Logger
     */
    protected static final Logger LOG = LogManager.getLogger(InputPane.class);

    private final InputGrid inputGrid;

    public InputPane(InputGrid inputGrid) {
        this.inputGrid = inputGrid;
        valid.bind(inputGrid.validProperty());
        setContent(inputGrid);
    }

    @Override
    public Map get() {
        Node content = getContent();
        if (content instanceof InputGrid) {
            return ((InputGrid) content).get();
        } else {
            return Collections.emptyMap();
        }
    }

    @Override
    public void init() {
        inputGrid.init();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy