| Modifier and Type | Class and Description |
|---|---|
| private class | EmailFieldSkin.
DomainPopup is a private class that extends PopupControl to create a custom popup used for displaying domain suggestions in the context of an EmailField component. |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final CustomTextField | |
| private final EmailFieldSkin. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | handleSuggestionPopupVisibility()
Controls the visibility of the domain suggestion popup based on specific conditions. |
| private void | |
| private void | |
| private void | |
| private void |
| customTextField | back to summary |
|---|---|
| private final CustomTextField customTextField | |
| domainPopup | back to summary |
|---|---|
| private final EmailFieldSkin. | |
| EmailFieldSkin | back to summary |
|---|---|
| public EmailFieldSkin(EmailField field) | |
| handleSuggestionPopupVisibility | back to summary |
|---|---|
| private void handleSuggestionPopupVisibility() Controls the visibility of the domain suggestion popup based on specific conditions. The popup is shown when all the following conditions are met: - There is no exact domain match with the text entered after the '@' symbol. - At least one domain in the domain list starts with the entered text (case-insensitive). - Auto domain completion is enabled. - The custom text field is currently focused. If any of these conditions are not met, the popup will be hidden. | |
| handleSuggestionSelection | back to summary |
|---|---|
| private void handleSuggestionSelection(ListView<String> listView) | |
| initializeSuggestionListView | back to summary |
|---|---|
| private void initializeSuggestionListView(ListView<String> listView) | |
| showSuggestionPopup | back to summary |
|---|---|
| private void showSuggestionPopup(int atIndex) | |
| updateTooltipVisibility | back to summary |
|---|---|
| private void updateTooltipVisibility(String invalidText, StackPane node, Tooltip invalidToolTip) | |
It has properties that automatically fix and hide the popup as needed.
| Modifier and Type | Field and Description |
|---|---|
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| DEFAULT_STYLE_CLASS | back to summary |
|---|---|
| public static final String DEFAULT_STYLE_CLASS | |
| DomainPopup | back to summary |
|---|---|
| public DomainPopup() | |
| createDefaultSkin | back to summary |
|---|---|
| protected Skin Overrides javafx. Doc from javafx. Create a new instance of the default skin for this control. This is called to create a skin for the control if
no skin is provided via CSS
| |
| Modifier and Type | Field and Description |
|---|---|
| private final EmailFieldSkin. | |
| private final StackPane |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | dispose()
Implements javafx. Called when a previously installed skin is about to be removed from its associated control. |
| public Node | |
| public EmailFieldSkin. | getSkinnable()
Implements javafx. Gets the Skinnable to which this Skin is assigned. |
| popup | back to summary |
|---|---|
| private final EmailFieldSkin. | |
| root | back to summary |
|---|---|
| private final StackPane root | |
| DomainPopupSkin | back to summary |
|---|---|
| public DomainPopupSkin(EmailFieldSkin. | |
| dispose | back to summary |
|---|---|
| public void dispose() 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
| |
| getNode | back to summary |
|---|---|
| public Node getNode() Implements javafx. Doc from javafx. Gets the Node which represents this Skin. This must never be null, except
after a call to
| |
| getSkinnable | back to summary |
|---|---|
| public EmailFieldSkin. Implements javafx. Doc from javafx. 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 The caller who constructs a Skinnable must also construct a Skin and properly establish the relationship between the Control and its Skin.
| |