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

jidefx.scene.control.field.PopupField Maven / Gradle / Ivy

The newest version!
/*
 * @(#)PopupField.java 5/19/2013
 *
 * Copyright 2002 - 2013 JIDE Software Inc. All rights reserved.
 */

package jidefx.scene.control.field;

import javafx.beans.property.BooleanProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Pos;
import javafx.geometry.Side;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.control.Button;
import javafx.util.Callback;
import jidefx.scene.control.decoration.DecorationUtils;
import jidefx.scene.control.decoration.Decorator;
import jidefx.scene.control.decoration.PredefinedDecorators;
import jidefx.scene.control.field.popup.PopupContent;
import jidefx.scene.control.popup.BalloonPopupOutline;
import jidefx.scene.control.popup.ShapedPopup;

import java.util.Locale;

/**
 * {@code PopupField} is {@code FormattedTextField} with a popup button. Clicking on the popup button will show a
 * balloon popup to edit the value.
 *
 * @param  the data type of the value in the {@code FormattedTextField}
 */
public class PopupField extends FormattedTextField {
    private static final String STYLE_CLASS_DEFAULT = "popup-field"; //NON-NLS
    private ShapedPopup _shapedPopup;
    private Decorator




© 2015 - 2024 Weber Informatics LLC | Privacy Policy