jidefx.scene.control.combobox.Rectangle2DComboBox 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!
/*
* @(#)Rectangle2DComboBox.java 5/19/2013
*
* Copyright 2002 - 2013 JIDE Software Inc. All rights reserved.
*/
package jidefx.scene.control.combobox;
import javafx.geometry.Rectangle2D;
import jidefx.scene.control.field.FormattedTextField;
import jidefx.scene.control.field.Rectangle2DField;
/**
* A {@code FormattedComboBox} for {@link Rectangle2D}.
*/
public class Rectangle2DComboBox extends ValuesComboBox {
public Rectangle2DComboBox() {
this(new Rectangle2D(0, 0, 0, 0));
}
public Rectangle2DComboBox(Rectangle2D value) {
super(value);
}
@Override
protected FormattedTextField createFormattedTextField() {
return new Rectangle2DField();
}
@Override
protected void initializeComboBox() {
super.initializeComboBox();
setPopupContentFactory(((Rectangle2DField) getEditor()).getPopupContentFactory());
}
}