/* * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.javafx.scene.control.skin; import com.sun.javafx.scene.control.skin.InputField; import javafx.beans.property.DoubleProperty; import javafx.beans.property.SimpleDoubleProperty; import javafx.scene.control.Skin; /** * */ class DoubleField extends InputField { /** * The value of the DoubleField. If null, the value will be treated as "0", but * will still actually be null. */ private DoubleProperty value = new SimpleDoubleProperty(this, "value"); public final double getValue() { return value.get(); } public final void setValue(double value) { this.value.set(value); } public final DoubleProperty valueProperty() { return value; } /** * Creates a new DoubleField. The style class is set to "money-field". */ public DoubleField() { getStyleClass().setAll("double-field"); } /*************************************************************************** * * * Methods * * * **************************************************************************/ /** {@inheritDoc} */ @Override protected Skin createDefaultSkin() { return new DoubleFieldSkin(this); } }