T
- The type of the ComboBox-like control.public abstract class ComboBoxPopupControl<T> extends ComboBoxBaseSkin<T>
ComboBoxBaseSkin
to include API related to showing ComboBox-like controls as popups.Modifier and Type | Field and Description |
---|---|
private <any> |
comboBoxBase |
private java.lang.String |
initialTextFieldValue |
(package private) PopupControl |
popup
*
Private fields *
*
|
private boolean |
popupNeedsReconfiguring |
private TextField |
textField |
private <any> |
textFieldDragEventHandler |
private <any> |
textFieldMouseEventHandler
*
TextField Listeners *
*
|
arrow, arrowButton
Constructor and Description |
---|
ComboBoxPopupControl(<any> control)
Creates a new instance of ComboBoxPopupControl, although note that this
instance does not handle any behavior / input mappings - this needs to be
handled appropriately by subclasses.
|
Modifier and Type | Method and Description |
---|---|
private void |
createPopup() |
protected abstract <any> |
getConverter()
Subclasses are responsible for getting the converter.
|
(package private) TextField |
getEditableInputNode() |
protected abstract TextField |
getEditor()
Subclasses are responsible for getting the editor.
|
(package private) PopupControl |
getPopup()
*
Private implementation *
*
|
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() |
(package private) void |
setTextFromTextFieldIntoComboBoxValue() |
void |
show()
This method will be called when the ComboBox popup should be displayed.
|
private void |
sizePopup() |
(package private) void |
updateDisplayNode() |
(package private) void |
updateEditable() |
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computePrefHeight, computePrefWidth, focusLost, getBehavior, getDisplayNode, getMode, layoutChildren, setMode, updateDisplayArea
PopupControl popup
private boolean popupNeedsReconfiguring
private final <any> comboBoxBase
private TextField textField
private java.lang.String initialTextFieldValue
private <any> textFieldMouseEventHandler
private <any> textFieldDragEventHandler
public ComboBoxPopupControl(<any> control)
control
- The control that this skin should be installed onto.protected abstract Node getPopupContent()
protected abstract TextField getEditor()
protected abstract <any> getConverter()
public void show()
show
in class ComboBoxBaseSkin<T>
public void hide()
hide
in class ComboBoxBaseSkin<T>
PopupControl getPopup()
TextField getEditableInputNode()
void setTextFromTextFieldIntoComboBoxValue()
void updateDisplayNode()
void updateEditable()
private Point2D getPrefPopupPosition()
private void positionAndShowPopup()
private void sizePopup()
private void createPopup()
void reconfigurePopup()
private void handleKeyEvent(KeyEvent ke, boolean doConsume)