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
GuiSwingLogManager
with 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
Modifier and TypeFieldDescriptionprotected GuiSwingKeyBinding
protected boolean
protected GuiSwingPreferences.PrefsApplyOptions
protected Function<GuiMappingContext,
GuiPreferences> protected SettingsWindow
protected GuiTypeBuilder
protected GuiSwingView
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateWithContext
(GuiMappingContext context) getView()
boolean
withKeyBinding
(GuiSwingKeyBinding keyBinding) set aGuiSwingKeyBinding
without 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.GuiValueStoreOnMemory
withPrefsApplyOptions
(GuiSwingPreferences.PrefsApplyOptions prefsApplyOptions) withSettingWindow
(SettingsWindow settingsWindow) withTypeBuilder
(GuiTypeBuilder typeBuilder) set a type builder ofGuiTypeBuilder.GuiTypeBuilderRelaxed
withView
(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 aGuiSwingKeyBinding
without 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
GuiSwingKeyBinding
methods 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(GuiSwingPreferences.PrefsApplyOptions 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
-