Top Fields Constructors Methods
impl.org.controlsfx.skin

public Class AutoCompletePopupSkin<T>

extends Object
implements Skin<AutoCompletePopup<T>>
Class Inheritance
All Implemented Interfaces
javafx.scene.control.Skin
Imports
javafx.beans.binding.Bindings, javafx.event.Event, javafx.scene.Node, javafx.scene.control.ListView, .ListCell, .Skin, javafx.scene.control.cell.TextFieldListCell, javafx.scene.input.MouseButton, javafx.util.StringConverter, .Callback, org.controlsfx.control.textfield.AutoCompletionBinding

Field Summary

Modifier and TypeField and Description
private final AutoCompletePopup<T>
pack-priv final int
private final ListView<T>

Constructor Summary

AccessConstructor and Description
public
public
AutoCompletePopupSkin(AutoCompletePopup<T>
The popup to be skinned
control
,
StringConverter<T>
An alternate StringConverter to use. This way, you can show autocomplete suggestions that when applied will fill in a different text than displayed. For example, you may preview Files.newBufferedReader(Path: path) - Bufferedreader but only fill in Files.newBufferedReader(
displayConverter
)

public
AutoCompletePopupSkin(AutoCompletePopup<T>
The popup to be skinned
control
,
Callback<ListView<T>, ListCell<T>>
Set a custom cell factory for the suggestions.
cellFactory
)

Method Summary

Modifier and TypeMethod and Description
public void
dispose()

Implements javafx.scene.control.Skin.dispose.

Called when a previously installed skin is about to be removed from its associated control.

public Node
getNode()

Implements javafx.scene.control.Skin.getNode.

Gets the Node which represents this Skin.

public AutoCompletePopup<T>
getSkinnable()

Implements javafx.scene.control.Skin.getSkinnable.

Gets the Skinnable to which this Skin is assigned.

private void
onSuggestionChoosen(T suggestion)

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

controlback to summary
private final AutoCompletePopup<T> control
LIST_CELL_HEIGHTback to summary
pack-priv final int LIST_CELL_HEIGHT
suggestionListback to summary
private final ListView<T> suggestionList

Constructor Detail

AutoCompletePopupSkinback to summary
public AutoCompletePopupSkin(AutoCompletePopup<T> control)
AutoCompletePopupSkinback to summary
public AutoCompletePopupSkin(AutoCompletePopup<T> control, StringConverter<T> displayConverter)
Parameters
control:AutoCompletePopup<T>

The popup to be skinned

displayConverter:StringConverter<T>

An alternate StringConverter to use. This way, you can show autocomplete suggestions that when applied will fill in a different text than displayed. For example, you may preview Files.newBufferedReader(Path: path) - Bufferedreader but only fill in Files.newBufferedReader(

AutoCompletePopupSkinback to summary
public AutoCompletePopupSkin(AutoCompletePopup<T> control, Callback<ListView<T>, ListCell<T>> cellFactory)
Parameters
control:AutoCompletePopup<T>

The popup to be skinned

cellFactory:Callback<ListView<T>, ListCell<T>>

Set a custom cell factory for the suggestions.

Method Detail

disposeback to summary
public void dispose()

Implements javafx.scene.control.Skin.dispose.

Doc from javafx.scene.control.Skin.dispose.

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, getSkinnable() and getNode() should return null.

Calling dispose() more than once has no effect.

Annotations
@Override
getNodeback to summary
public Node getNode()

Implements javafx.scene.control.Skin.getNode.

Doc from javafx.scene.control.Skin.getNode.

Gets the Node which represents this Skin. This must never be null, except after a call to dispose(), and must never change except when changing to null.

Annotations
@Override
getSkinnableback to summary
public AutoCompletePopup<T> getSkinnable()

Implements javafx.scene.control.Skin.getSkinnable.

Doc from javafx.scene.control.Skin.getSkinnable.

Gets the Skinnable to which this Skin is assigned. A Skin must be created for one and only one Skinnable. This value will only ever go from a non-null to null value when the Skin is removed from the Skinnable, and only as a consequence of a call to dispose().

The caller who constructs a Skinnable must also construct a Skin and properly establish the relationship between the Control and its Skin.

Annotations
@Override
onSuggestionChoosenback to summary
private void onSuggestionChoosen(T suggestion)
registerEventListenerback to summary
private void registerEventListener()