| Modifier and Type | Field and Description |
|---|---|
| private BooleanProperty | |
| private List | |
| private ObjectProperty | |
| private DoubleProperty | |
| private final Map | |
| private List | |
| private History | |
| private boolean | |
| private BooleanProperty | |
| private static final Logger | |
| private boolean | |
| private boolean | |
| private boolean | |
| private SearchHandler | |
| private StringProperty | |
| private StorageHandler | |
| private ObjectProperty |
| Access | Constructor and Description |
|---|---|
| public | PreferencesFxModel(StorageHandler
the storageHandler, SearchHandler StorageHandler to use for saving and loadingthe searchHandler, History SearchHandler to use for handling the searchesthe history, Category[] History in which to save the changes and handle undo / redothe categories to be displayed, along with the groups and settings categories)Initializes a new model. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addEventHandler(EventType<PreferencesFxEvent>
the type of the events to receive by the handler eventType, EventHandler<? super PreferencesFxEvent> the handler to register eventHandler)Registers an event handler. |
| private void | |
| public BooleanProperty | |
| private void | |
| public void | |
| private void | |
| public ReadOnlyObjectProperty | |
| public DoubleProperty | |
| private void | |
| public boolean | |
| public List | |
| public Category | |
| public double | |
| public List | |
| public History | |
| public boolean | |
| public SearchHandler | |
| public String | |
| public StorageHandler | |
| public TranslationService | |
| private void | initializeCategoryTranslation()
Sets up a binding of the TranslationService on the model, so that the Category's title gets translated properly according to the TranslationService used. |
| public BooleanProperty | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public Category | Returns: last selected CategoryLoads the last selected Category before exiting the Preferences window. |
| public void | loadSettingValues()
Load all of the values of the settings using a |
| public void | removeEventHandler(EventType<PreferencesFxEvent>
the event type from which to unregister eventType, EventHandler<? super PreferencesFxEvent> the handler to unregister eventHandler)Unregisters a previously registered event handler. |
| public void | |
| public void | |
| private void | |
| public StringProperty | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public ObjectProperty |
| buttonsVisible | back to summary |
|---|---|
| private BooleanProperty buttonsVisible | |
| categories | back to summary |
|---|---|
| private List<Category> categories | |
| displayedCategory | back to summary |
|---|---|
| private ObjectProperty<Category> displayedCategory | |
| dividerPosition | back to summary |
|---|---|
| private DoubleProperty dividerPosition | |
| eventHandlers | back to summary |
|---|---|
| private final Map<EventType<PreferencesFxEvent>, List<EventHandler<? super PreferencesFxEvent>>> eventHandlers | |
| flatCategoriesLst | back to summary |
|---|---|
| private List<Category> flatCategoriesLst | |
| history | back to summary |
|---|---|
| private History history | |
| historyDebugState | back to summary |
|---|---|
| private boolean historyDebugState | |
| instantPersistent | back to summary |
|---|---|
| private BooleanProperty instantPersistent | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| oneCategoryLayout | back to summary |
|---|---|
| private boolean oneCategoryLayout | |
| persistWindowState | back to summary |
|---|---|
| private boolean persistWindowState | |
| saveSettings | back to summary |
|---|---|
| private boolean saveSettings | |
| searchHandler | back to summary |
|---|---|
| private SearchHandler searchHandler | |
| searchText | back to summary |
|---|---|
| private StringProperty searchText | |
| storageHandler | back to summary |
|---|---|
| private StorageHandler storageHandler | |
| translationService | back to summary |
|---|---|
| private ObjectProperty<TranslationService> translationService | |
| PreferencesFxModel | back to summary |
|---|---|
| public PreferencesFxModel(StorageHandler storageHandler, SearchHandler searchHandler, History history, Category[] categories) Initializes a new model.
| |
| addEventHandler | back to summary |
|---|---|
| public void addEventHandler(EventType<PreferencesFxEvent> eventType, EventHandler<? super PreferencesFxEvent> eventHandler) Registers an event handler. The handler is called when a
| |
| applyFieldChanges | back to summary |
|---|---|
| private void applyFieldChanges() | |
| buttonsVisibleProperty | back to summary |
|---|---|
| public BooleanProperty buttonsVisibleProperty() | |
| createBreadcrumbs | back to summary |
|---|---|
| private void createBreadcrumbs(List<Category> categories) | |
| discardChanges | back to summary |
|---|---|
| public void discardChanges() Undos all changes made, clears the history and saves the settings.
Typically called when the cancel button of the | |
| discardFieldChanges | back to summary |
|---|---|
| private void discardFieldChanges() | |
| displayedCategoryProperty | back to summary |
|---|---|
| public ReadOnlyObjectProperty | |
| dividerPositionProperty | back to summary |
|---|---|
| public DoubleProperty dividerPositionProperty() | |
| fireEvent | back to summary |
|---|---|
| private void fireEvent(PreferencesFxEvent event) | |
| getButtonsVisible | back to summary |
|---|---|
| public boolean getButtonsVisible() | |
| getCategories | back to summary |
|---|---|
| public List | |
| getDisplayedCategory | back to summary |
|---|---|
| public Category getDisplayedCategory() | |
| getDividerPosition | back to summary |
|---|---|
| public double getDividerPosition() | |
| getFlatCategoriesLst | back to summary |
|---|---|
| public List | |
| getHistory | back to summary |
|---|---|
| public History getHistory() | |
| getHistoryDebugState | back to summary |
|---|---|
| public boolean getHistoryDebugState() | |
| getSearchHandler | back to summary |
|---|---|
| public SearchHandler getSearchHandler() | |
| getSearchText | back to summary |
|---|---|
| public String getSearchText() | |
| getStorageHandler | back to summary |
|---|---|
| public StorageHandler getStorageHandler() | |
| getTranslationService | back to summary |
|---|---|
| public TranslationService getTranslationService() | |
| initializeCategoryTranslation | back to summary |
|---|---|
| private void initializeCategoryTranslation() Sets up a binding of the TranslationService on the model, so that the Category's title gets translated properly according to the TranslationService used. | |
| instantPersistentProperty | back to summary |
|---|---|
| public BooleanProperty instantPersistentProperty() | |
| isInstantPersistent | back to summary |
|---|---|
| public boolean isInstantPersistent() | |
| isOneCategoryLayout | back to summary |
|---|---|
| public boolean isOneCategoryLayout() | |
| isPersistWindowState | back to summary |
|---|---|
| public boolean isPersistWindowState() | |
| isSaveSettings | back to summary |
|---|---|
| public boolean isSaveSettings() | |
| loadSelectedCategory | back to summary |
|---|---|
| public Category loadSelectedCategory() Loads the last selected Category before exiting the Preferences window.
| |
| loadSettingValues | back to summary |
|---|---|
| public void loadSettingValues() Load all of the values of the settings using a | |
| removeEventHandler | back to summary |
|---|---|
| public void removeEventHandler(EventType<PreferencesFxEvent> eventType, EventHandler<? super PreferencesFxEvent> eventHandler) Unregisters a previously registered event handler. One handler might have been registered for different event types, so the caller needs to specify the particular event type from which to unregister the handler.
| |
| saveSelectedCategory | back to summary |
|---|---|
| public void saveSelectedCategory() Saves the current selected Category. | |
| saveSettings | back to summary |
|---|---|
| public void saveSettings() Saves the settings, when | |
| saveSettingValues | back to summary |
|---|---|
| private void saveSettingValues() Saves all of the values of the settings using a | |
| searchTextProperty | back to summary |
|---|---|
| public StringProperty searchTextProperty() | |
| setButtonsVisible | back to summary |
|---|---|
| public void setButtonsVisible(boolean buttonsVisible) | |
| setDisplayedCategory | back to summary |
|---|---|
| public void setDisplayedCategory(Category displayedCategory) | |
| setDividerPosition | back to summary |
|---|---|
| public void setDividerPosition(double dividerPosition) | |
| setHistoryDebugState | back to summary |
|---|---|
| public void setHistoryDebugState(boolean historyDebugState) | |
| setInstantPersistent | back to summary |
|---|---|
| public void setInstantPersistent(boolean instantPersistent) | |
| setPersistWindowState | back to summary |
|---|---|
| public void setPersistWindowState(boolean persistWindowState) | |
| setSaveSettings | back to summary |
|---|---|
| public void setSaveSettings(boolean saveSettings) | |
| setSearchText | back to summary |
|---|---|
| public void setSearchText(String searchText) | |
| setTranslationService | back to summary |
|---|---|
| public void setTranslationService(TranslationService translationService) | |
| translationServiceProperty | back to summary |
|---|---|
| public ObjectProperty | |