public abstract class ComboBoxPopupControl<T> extends ComboBoxBaseSkin<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
ComboBoxPopupControl.FakeFocusTextField
*
Support classes *
*
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMBO_BOX_STYLE_CLASS |
private ComboBoxBase<T> |
comboBoxBase |
private java.lang.String |
initialTextFieldValue |
protected PopupControl |
popup |
private boolean |
popupNeedsReconfiguring |
private TextField |
textField |
private EventHandler<DragEvent> |
textFieldDragEventHandler |
private EventHandler<MouseEvent> |
textFieldMouseEventHandler
*
TextField Listeners *
*
|
arrow, arrowButtonIS_TOUCH_SUPPORTED| Constructor and Description |
|---|
ComboBoxPopupControl(ComboBoxBase<T> comboBoxBase,
ComboBoxBaseBehavior<T> behavior) |
| Modifier and Type | Method and Description |
|---|---|
private void |
createPopup() |
private void |
forwardToParent(KeyEvent event) |
protected abstract StringConverter<T> |
getConverter()
Subclasses are responsible for getting the converter.
|
protected TextField |
getEditableInputNode() |
protected abstract TextField |
getEditor()
Subclasses are responsible for getting the editor.
|
protected PopupControl |
getPopup() |
protected abstract Node |
getPopupContent()
This method should return the Node that will be displayed when the user
clicks on the ComboBox 'button' area.
|
private Point2D |
getPrefPopupPosition() |
private void |
handleKeyEvent(KeyEvent ke,
boolean doConsume) |
void |
hide()
This method will be called when the ComboBox popup should be hidden.
|
private void |
positionAndShowPopup() |
(package private) void |
reconfigurePopup() |
protected void |
setTextFromTextFieldIntoComboBoxValue() |
void |
show()
This method will be called when the ComboBox popup should be displayed.
|
private void |
sizePopup() |
protected void |
updateDisplayNode() |
protected void |
updateEditable() |
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computePrefHeight, computePrefWidth, focusLost, getDisplayNode, getMode, handleControlPropertyChanged, layoutChildren, setMode, updateDisplayAreadispose, getBehavior, registerChangeListener, unregisterChangeListenercomputeMinHeight, computeMinWidth, consumeMouseEvents, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpaceprotected PopupControl popup
public static final java.lang.String COMBO_BOX_STYLE_CLASS
private boolean popupNeedsReconfiguring
private final ComboBoxBase<T> comboBoxBase
private TextField textField
private EventHandler<MouseEvent> textFieldMouseEventHandler
private EventHandler<DragEvent> textFieldDragEventHandler
private java.lang.String initialTextFieldValue
public ComboBoxPopupControl(ComboBoxBase<T> comboBoxBase, ComboBoxBaseBehavior<T> behavior)
protected abstract Node getPopupContent()
protected PopupControl getPopup()
public void show()
ComboBoxBaseSkinshow in class ComboBoxBaseSkin<T>public void hide()
ComboBoxBaseSkinhide in class ComboBoxBaseSkin<T>private Point2D getPrefPopupPosition()
private void positionAndShowPopup()
private void sizePopup()
private void createPopup()
void reconfigurePopup()
protected abstract TextField getEditor()
protected abstract StringConverter<T> getConverter()
protected TextField getEditableInputNode()
protected void setTextFromTextFieldIntoComboBoxValue()
protected void updateDisplayNode()
private void handleKeyEvent(KeyEvent ke, boolean doConsume)
private void forwardToParent(KeyEvent event)
protected void updateEditable()