PreferencesFormBuilder
obtained from form() and delegates the PreferencesTab lifecycle to its
view model.
A tab is not itself a node: the form the builder assembles is the tab's content, handed over with
setContent. Were the tab a container of its own, every tab would nest that form in a
second pane with the same spacing, and it would be ambiguous which of the two owns the layout.
| Modifier and Type | Field and Description |
|---|---|
| private @Nullable Node | |
| protected final DialogService | |
| private @Nullable PreferencesFormBuilder | |
| protected final GuiPreferences | |
| protected final TaskExecutor | |
| protected T |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected PreferencesFormBuilder | |
| public Node | |
| public List | getRestartWarnings()
Implements org. This method should be called after storing the preferences, This calls the appropriate method in the ViewModel. |
| public List | getSearchableElements()
Overrides default org. The visible texts of the tab with the nodes they caption; the preferences search matches these and highlights the node. |
| protected void | setContent(@NonNull Node content)
Hands the assembled form over as the tab's content; called once, from the tab's constructor. |
| public void | setValues()
Implements org. This method is called when the dialog is opened, or if it is made visible after being hidden. |
| public void | storeSettings()
Implements org. This method is called when the user presses OK in the Preferences dialog. |
| public boolean | validateSettings()
Implements org. This method is called before the |
| content | back to summary |
|---|---|
| private @Nullable Node content | |
| dialogService | back to summary |
|---|---|
| protected final DialogService dialogService | |
| form | back to summary |
|---|---|
| private @Nullable PreferencesFormBuilder form The builder created via | |
| preferences | back to summary |
|---|---|
| protected final GuiPreferences preferences | |
| taskExecutor | back to summary |
|---|---|
| protected final TaskExecutor taskExecutor | |
| viewModel | back to summary |
|---|---|
| protected T viewModel | |
| AbstractPreferenceTabView | back to summary |
|---|---|
| protected AbstractPreferenceTabView() | |
| form | back to summary |
|---|---|
| protected PreferencesFormBuilder form() Creates the tab's builder, pre-wired with the services needed for section help buttons. A tab describes itself with one form, so calling this twice would leave the first form's texts unreachable to the preferences search. | |
| getContent | back to summary |
|---|---|
| public Node getContent() Implements org.
| |
| getRestartWarnings | back to summary |
|---|---|
| public List Implements org. Doc from org. This method should be called after storing the preferences, This calls the appropriate method in the ViewModel.
| |
| getSearchableElements | back to summary |
|---|---|
| public List Overrides default org. Doc from org. The visible texts of the tab with the nodes they caption; the preferences search matches these and highlights the node.
| |
| setContent | back to summary |
|---|---|
| protected void setContent(@NonNull Node content) Hands the assembled form over as the tab's content; called once, from the tab's constructor. | |
| setValues | back to summary |
|---|---|
| public void setValues() Implements org. Doc from org. This method is called when the dialog is opened, or if it is made visible after being hidden. This calls the appropriate method in the ViewModel.
| |
| storeSettings | back to summary |
|---|---|
| public void storeSettings() Implements org. Doc from org. This method is called when the user presses OK in the Preferences dialog. This calls the appropriate method in the ViewModel.
| |
| validateSettings | back to summary |
|---|---|
| public boolean validateSettings() Implements org. Doc from org. This method is called before the
| |