java.lang.Object
javafx.scene.control.SkinBase<MFXTextField>
io.github.palexdev.materialfx.skins.MFXTextFieldSkin
io.github.palexdev.materialfx.skins.MFXComboBoxSkin<T>
- All Implemented Interfaces:
Skin<MFXTextField>
- Direct Known Subclasses:
MFXFilterComboBoxSkin
Skin associated with every
MFXComboBox by default.
Extends MFXTextFieldSkin since most features are inherited from
MFXTextField and adds the necessary properties/behaviors to add the
popup listview.
SimpleVirtualFlow to make things easier, so that I don't have to worry about
synchronization between the combobox' selection model and the listview' selection model-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidanimateIcon(Node icon, boolean showing) Animates the trailing icon using theMFXComboBox.animationProviderProperty().protected MFXPopupResponsible for creating the combo box's popup.protected NodeResponsible for creating the popup's content.voiddispose()Convenience method to castSkinBase.getSkinnable()toMFXComboBox.protected voidprotected voidupdateValue(T item) Responsible for updating the combo's text with the given item.Methods inherited from class io.github.palexdev.materialfx.skins.MFXTextFieldSkin
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefWidth, layoutChildren, updateTextColorMethods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computePrefHeight, consumeMouseEvents, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, registerInvalidationListener, registerListChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners, unregisterInvalidationListeners, unregisterListChangeListeners
-
Field Details
-
popup
-
virtualFlow
-
-
Constructor Details
-
MFXComboBoxSkin
-
-
Method Details
-
setBehavior
protected void setBehavior() -
updateValue
Responsible for updating the combo's text with the given item.The item is converted using the combo's
MFXComboBox.converterProperty(). In case it's null uses toString().The caret is always positioned at the end of the text after the update.
-
animateIcon
Animates the trailing icon using theMFXComboBox.animationProviderProperty(). -
createPopup
Responsible for creating the combo box's popup. -
createPopupContent
Responsible for creating the popup's content. -
getComboBox
Convenience method to castSkinBase.getSkinnable()toMFXComboBox. -
dispose
public void dispose()
-