![JAR search and dependency download from the Maven repository](/logo.png)
jidefx.scene.control.combobox.Dimension2DComboBox Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jidefx-fields Show documentation
Show all versions of jidefx-fields Show documentation
JideFX Common Layer is a collection of several extend feature for JavaFX
The newest version!
/*
* @(#)Dimension2DComboBox.java 5/19/2013
*
* Copyright 2002 - 2013 JIDE Software Inc. All rights reserved.
*/
package jidefx.scene.control.combobox;
import javafx.geometry.Dimension2D;
import jidefx.scene.control.field.Dimension2DField;
import jidefx.scene.control.field.FormattedTextField;
/**
* A {@code FormattedComboBox} for {@link Dimension2D}.
*/
public class Dimension2DComboBox extends ValuesComboBox {
public Dimension2DComboBox() {
this(new Dimension2D(0, 0));
}
public Dimension2DComboBox(Dimension2D value) {
super(value);
}
@Override
protected FormattedTextField createFormattedTextField() {
return new Dimension2DField();
}
@Override
protected void initializeComboBox() {
super.initializeComboBox();
setPopupContentFactory(((Dimension2DField) getEditor()).getPopupContentFactory());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy