Class AbstractPreferenceStyler

    • Field Detail

      • preferencesToChange

        protected final javafx.collections.ObservableMap<java.lang.String,​PreferenceValue> preferencesToChange
        Preferences to change.
      • backgroundColour

        protected final javafx.scene.paint.Color backgroundColour
        Background Color.
    • Constructor Detail

      • AbstractPreferenceStyler

        public AbstractPreferenceStyler​(javafx.collections.ObservableMap<java.lang.String,​PreferenceValue> preferencesToChange,
                                        EnvironmentBridge envBridge,
                                        javafx.scene.paint.Color backgroundColour)
        Instantiate.
        Parameters:
        preferencesToChange - Loaded with the preferences changes.
        envBridge - EnvironmentBridge.
        backgroundColour - Background Color.
    • Method Detail

      • defaultString

        protected java.lang.String defaultString​(java.lang.String value,
                                                 java.lang.String defaultValue)
        Defaults the value if blank.
        Parameters:
        value - Value to check if blank.
        defaultValue - Default value to use if value is blank.
        Returns:
        Value if not blank, otherwise default value.
      • createVisual

        public javafx.scene.layout.Pane createVisual​(java.lang.Runnable close)
        Description copied from interface: PreferenceStyler
        Creates a visual for the editing the style.
        Specified by:
        createVisual in interface PreferenceStyler
        Parameters:
        close - Removes the view.
        Returns:
        Visual for editing the style.