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