Class PreferencesEditor<R extends Model>
- java.lang.Object
-
- net.officefloor.gef.ide.preferences.PreferencesEditor<R>
-
public class PreferencesEditor<R extends Model> extends java.lang.ObjectEditor for preferences.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description PreferencesEditor(AbstractAdaptedIdeEditor<R,?,?> editor, EnvironmentBridge envBridge)Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply()Applies the preferences.voidcancel()Cancels the changes to the preferences.javafx.beans.property.ReadOnlyProperty<java.lang.Boolean>dirtyProperty()Indicates whether dirty (requires saving).javafx.scene.layout.PaneloadView(java.util.function.Consumer<javafx.scene.layout.Pane> loader)Loads the view.voidresetToDefaults()Resets all preferences to their defaults.
-
-
-
Constructor Detail
-
PreferencesEditor
public PreferencesEditor(AbstractAdaptedIdeEditor<R,?,?> editor, EnvironmentBridge envBridge)
Instantiate.- Parameters:
editor-AbstractAdaptedIdeEditorto configure preferences.envBridge-EnvironmentBridge.
-
-
Method Detail
-
dirtyProperty
public javafx.beans.property.ReadOnlyProperty<java.lang.Boolean> dirtyProperty()
Indicates whether dirty (requires saving).- Returns:
Propertyto track whether requires saving.
-
resetToDefaults
public void resetToDefaults()
Resets all preferences to their defaults.
-
apply
public void apply()
Applies the preferences.
-
cancel
public void cancel()
Cancels the changes to the preferences.
-
loadView
public javafx.scene.layout.Pane loadView(java.util.function.Consumer<javafx.scene.layout.Pane> loader)
Loads the view.- Parameters:
loader- Receives the visual for the entire preview editor.- Returns:
- Editor view enable decorating.
-
-