ComboBoxBaseSkin
to include API related to showing ComboBox-like controls as popups.
| Modifier and Type | Field and Description |
|---|---|
| private final ComboBoxBase | |
| private String | |
| private EventHandler | |
| pack-priv PopupControl | |
| private boolean | |
| private TextField | |
| private EventHandler | |
| private EventHandler |
| Access | Constructor and Description |
|---|---|
| public | ComboBoxPopupControl(ComboBoxBase<T>
The control that this skin should be installed onto. 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 | |
| public void | dispose()
Overrides javafx. Implements javafx. Called when a previously installed skin is about to be removed from its associated control. |
| protected abstract StringConverter | |
| pack-priv TextField | |
| protected abstract TextField | |
| pack-priv PopupControl | |
| protected abstract Node | Returns: the Node that will be displayed when the user clicks on the ComboBox 'button' areaThis method should return the Node that will be displayed when the user clicks on the ComboBox 'button' area. |
| private Point2D | |
| private void | |
| public void | hide()
Implements abstract javafx. This method will be called when the ComboBox popup should be hidden. |
| public void | |
| private void | |
| pack-priv void | |
| private void | |
| pack-priv void | |
| public void | show()
Implements abstract javafx. This method will be called when the ComboBox popup should be displayed. |
| private void | |
| pack-priv void | |
| pack-priv void |
| comboBoxBase | back to summary |
|---|---|
| private final ComboBoxBase<T> comboBoxBase | |
| initialTextFieldValue | back to summary |
|---|---|
| private String initialTextFieldValue | |
| inputMethodTextChangedHandler | back to summary |
|---|---|
| private EventHandler<? super InputMethodEvent> inputMethodTextChangedHandler | |
| popup | back to summary |
|---|---|
| pack-priv PopupControl popup | |
| popupNeedsReconfiguring | back to summary |
|---|---|
| private boolean popupNeedsReconfiguring | |
| textField | back to summary |
|---|---|
| private TextField textField | |
| textFieldDragEventHandler | back to summary |
|---|---|
| private EventHandler<DragEvent> textFieldDragEventHandler | |
| textFieldMouseEventHandler | back to summary |
|---|---|
| private EventHandler<MouseEvent> textFieldMouseEventHandler | |
| ComboBoxPopupControl | back to summary |
|---|---|
| public ComboBoxPopupControl(ComboBoxBase<T> 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.
| |
| createPopup | back to summary |
|---|---|
| private void createPopup() | |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides javafx. Implements javafx. Doc from javafx. Called when a previously installed skin is about to be removed from its associated control.
This allows the skin to do clean up, like removing listeners and bindings, and undo any changes
to the control's properties.
After this method completes,
Calling
| |
| getConverter | back to summary |
|---|---|
| protected abstract StringConverter Subclasses are responsible for getting the converter. This will be removed in FX 9 when the converter property is moved up to ComboBoxBase with JDK-8130354.
| |
| getEditableInputNode | back to summary |
|---|---|
| pack-priv TextField getEditableInputNode() | |
| getEditor | back to summary |
|---|---|
| protected abstract TextField getEditor() Subclasses are responsible for getting the editor. This will be removed in FX 9 when the editor property is moved up to ComboBoxBase with JDK-8130354 Note: ComboBoxListViewSkin should return null if editable is false, even if the ComboBox does have an editor set.
| |
| getPopup | back to summary |
|---|---|
| pack-priv PopupControl getPopup() | |
| getPopupContent | back to summary |
|---|---|
| protected abstract Node getPopupContent() This method should return the Node that will be displayed when the user clicks on the ComboBox 'button' area.
| |
| getPrefPopupPosition | back to summary |
|---|---|
| private Point2D getPrefPopupPosition() | |
| handleKeyEvent | back to summary |
|---|---|
| private void handleKeyEvent(KeyEvent ke, boolean doConsume) | |
| hide | back to summary |
|---|---|
| public void hide() Implements abstract javafx. Doc from javafx. This method will be called when the ComboBox popup should be hidden. It is up to specific skin implementations to determine how this is handled.
| |
| install | back to summary |
|---|---|
| public void install() Overrides default javafx. Doc from javafx. Called once when Application code must not call this method. The default implementation of this method does nothing.
| |
| positionAndShowPopup | back to summary |
|---|---|
| private void positionAndShowPopup() | |
| reconfigurePopup | back to summary |
|---|---|
| pack-priv void reconfigurePopup() | |
| removeTextFieldEventFilters | back to summary |
|---|---|
| private void removeTextFieldEventFilters() | |
| setTextFromTextFieldIntoComboBoxValue | back to summary |
|---|---|
| pack-priv void setTextFromTextFieldIntoComboBoxValue() | |
| show | back to summary |
|---|---|
| public void show() Implements abstract javafx. Doc from javafx. This method will be called when the ComboBox popup should be displayed. It is up to specific skin implementations to determine how this is handled.
| |
| sizePopup | back to summary |
|---|---|
| private void sizePopup(boolean first) | |
| updateDisplayNode | back to summary |
|---|---|
| pack-priv void updateDisplayNode() | |
| updateEditable | back to summary |
|---|---|
| pack-priv void updateEditable() | |