java.lang.Object
org.autogui.swing.GuiSwingRootPane.GuiSwingRootPaneCreator
- Direct Known Subclasses:
GuiSwingWindow.GuiSwingWindowCreator
- Enclosing class:
GuiSwingRootPane
a creator of
GuiSwingRootPane,
can be obtained by GuiSwingRootPane.creator().
the default settings:
GuiSwingKeyBinding: obtained byGuiSwingKeyBinding.createWithDefaultExcluded()GuiTypeBuilder: the strict-mode obtained by new GuiTypeBuilder()- logStatus: true, which means it installs a
GuiSwingLogManagerwith redirecting consoles (byGuiSwingRootPane.updateSwingLogManager()), and inserts a status-bar for displaying log-messages GuiSwingView: obtained byGuiSwingMapperSet.getDefaultMapperSet()SettingsWindow: a new windowGuiPreferences: nothing, which means automatically sets preferences backed by java.util.prefs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GuiSwingKeyBindingprotected booleanprotected GuiSwingPrefsApplyOptionsprotected Function<GuiMappingContext, GuiPreferences> protected SettingsWindowprotected GuiTypeBuilderprotected GuiSwingView -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateWithContext(GuiMappingContext context) getView()booleanwithKeyBinding(GuiSwingKeyBinding keyBinding) set aGuiSwingKeyBindingwithout automatic bindings created fromGuiSwingKeyBinding.createWithoutAutomaticBindings().withLogStatus(boolean enableLog) disable overwriting log-manager and no-insertion of status-bar for displaying logswithPreferences(Function<GuiMappingContext, GuiPreferences> prefsCreator) set preferences setting function to storing values on memory byGuiPreferences.GuiValueStoreOnMemorywithPrefsApplyOptions(GuiSwingPrefsApplyOptions prefsApplyOptions) withSettingWindow(SettingsWindow settingsWindow) withTypeBuilder(GuiTypeBuilder typeBuilder) set a type builder ofGuiTypeBuilder.GuiTypeBuilderRelaxedwithView(GuiSwingView view)
-
Field Details
-
keyBinding
-
typeBuilder
-
logStatus
protected boolean logStatus -
settingsWindow
-
view
-
prefsCreator
-
prefsApplyOptions
- Since:
- 1.4
-
-
Constructor Details
-
GuiSwingRootPaneCreator
public GuiSwingRootPaneCreator()
-
-
Method Details
-
withKeyBindingWithoutAutomaticBindings
set aGuiSwingKeyBindingwithout automatic bindings created fromGuiSwingKeyBinding.createWithoutAutomaticBindings(). This means that it does not traverse created panes for searching default key-bindings.It can manually set key-bindings by
GuiSwingKeyBindingmethods such asGuiSwingKeyBinding.putTraverseHighPrecedence(Class, Predicate, KeyStroke, Consumer),GuiSwingKeyBinding.putTraverseHighPrecedenceAction(Class, Predicate, KeyStroke, Action), andGuiSwingKeyBinding.putTraverseHighPrecedencePaneFocus(Class, Predicate, KeyStroke).- Returns:
- this
-
withKeyBinding
-
withTypeBuilderRelaxed
set a type builder ofGuiTypeBuilder.GuiTypeBuilderRelaxed- Returns:
- this
-
withTypeBuilder
-
withLogStatusDisabled
disable overwriting log-manager and no-insertion of status-bar for displaying logs- Returns:
- this
-
withLogStatus
-
withPreferencesOnMemory
set preferences setting function to storing values on memory byGuiPreferences.GuiValueStoreOnMemory- Returns:
- this
-
withPreferences
public GuiSwingRootPane.GuiSwingRootPaneCreator withPreferences(Function<GuiMappingContext, GuiPreferences> prefsCreator) -
withSettingWindow
-
withView
-
withPrefsApplyOptions
public GuiSwingRootPane.GuiSwingRootPaneCreator withPrefsApplyOptions(GuiSwingPrefsApplyOptions prefsApplyOptions) - Parameters:
prefsApplyOptions- options- Returns:
- this
- Since:
- 1.4
-
create
-
createWithContext
-
getKeyBinding
-
getTypeBuilder
-
isLogStatus
public boolean isLogStatus() -
getSettingsWindow
-
getView
-
getPrefsApplyOptions
- Returns:
- options or null (default)
- Since:
- 1.4
-
getPrefsCreator
-