EnhancedPasswordField with an optional row of icon buttons in its
right slot. EnhancedPasswordField is third-party, so the fluent subject is this wrapper;
field() hands back the field once configuration is done — it does no work of its own,
it just stops field from being reachable before the withers have run:
PasswordFieldEditor.create(viewModel.apiKeyProperty()) .withRevealButton() .withClearButton() .field();
Every button follows the field's own disabled state, so disabling the field disables the row.
| Modifier and Type | Field and Description |
|---|---|
| private final HBox | |
| private final EnhancedPasswordField |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static PasswordFieldEditor | |
| public EnhancedPasswordField | |
| public PasswordFieldEditor | |
| public PasswordFieldEditor | |
| public PasswordFieldEditor |
| buttons | back to summary |
|---|---|
| private final HBox buttons | |
| field | back to summary |
|---|---|
| private final EnhancedPasswordField field | |
| PasswordFieldEditor | back to summary |
|---|---|
| private PasswordFieldEditor(StringProperty value) | |
| create | back to summary |
|---|---|
| public static PasswordFieldEditor create(StringProperty value) | |
| field | back to summary |
|---|---|
| public EnhancedPasswordField field() | |
| withClearButton | back to summary |
|---|---|
| public PasswordFieldEditor withClearButton() Empties the field and returns focus to it. | |
| withIconButton | back to summary |
|---|---|
| public PasswordFieldEditor withIconButton(JabRefIcon icon, Consumer<EnhancedPasswordField> action) | |
| withRevealButton | back to summary |
|---|---|
| public PasswordFieldEditor withRevealButton() Toggles between masked and plain text. | |