java.lang.Object
org.autogui.swing.GuiSwingRootPane.GuiSwingRootPaneCreator
org.autogui.swing.GuiSwingWindow.GuiSwingWindowCreator
- All Implemented Interfaces:
Function<Object,
GuiSwingWindow>
- Enclosing class:
GuiSwingWindow
public static class GuiSwingWindow.GuiSwingWindowCreator
extends GuiSwingRootPane.GuiSwingRootPaneCreator
implements Function<Object,GuiSwingWindow>
-
Field Summary
Fields inherited from class org.autogui.swing.GuiSwingRootPane.GuiSwingRootPaneCreator
keyBinding, logStatus, prefsApplyOptions, prefsCreator, settingsWindow, typeBuilder, view
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateWindowWithContext
(GuiMappingContext context) 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
(GuiSwingPrefsApplyOptions prefsApplyOptions) withSettingWindow
(SettingsWindow settingsWindow) withTypeBuilder
(GuiTypeBuilder typeBuilder) set a type builder ofGuiTypeBuilder.GuiTypeBuilderRelaxed
withView
(GuiSwingView view) Methods inherited from class org.autogui.swing.GuiSwingRootPane.GuiSwingRootPaneCreator
create, createWithContext, getKeyBinding, getPrefsApplyOptions, getPrefsCreator, getSettingsWindow, getTypeBuilder, getView, isLogStatus
-
Constructor Details
-
GuiSwingWindowCreator
public GuiSwingWindowCreator()
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceFunction<Object,
GuiSwingWindow>
-
createWindow
-
createWindowWithContext
-
withKeyBindingWithoutAutomaticBindings
Description copied from class:GuiSwingRootPane.GuiSwingRootPaneCreator
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)
.- Overrides:
withKeyBindingWithoutAutomaticBindings
in classGuiSwingRootPane.GuiSwingRootPaneCreator
- Returns:
- this
-
withKeyBinding
- Overrides:
withKeyBinding
in classGuiSwingRootPane.GuiSwingRootPaneCreator
-
withTypeBuilderRelaxed
Description copied from class:GuiSwingRootPane.GuiSwingRootPaneCreator
set a type builder ofGuiTypeBuilder.GuiTypeBuilderRelaxed
- Overrides:
withTypeBuilderRelaxed
in classGuiSwingRootPane.GuiSwingRootPaneCreator
- Returns:
- this
-
withTypeBuilder
- Overrides:
withTypeBuilder
in classGuiSwingRootPane.GuiSwingRootPaneCreator
-
withLogStatusDisabled
Description copied from class:GuiSwingRootPane.GuiSwingRootPaneCreator
disable overwriting log-manager and no-insertion of status-bar for displaying logs- Overrides:
withLogStatusDisabled
in classGuiSwingRootPane.GuiSwingRootPaneCreator
- Returns:
- this
-
withLogStatus
- Overrides:
withLogStatus
in classGuiSwingRootPane.GuiSwingRootPaneCreator
-
withPreferencesOnMemory
Description copied from class:GuiSwingRootPane.GuiSwingRootPaneCreator
set preferences setting function to storing values on memory byGuiPreferences.GuiValueStoreOnMemory
- Overrides:
withPreferencesOnMemory
in classGuiSwingRootPane.GuiSwingRootPaneCreator
- Returns:
- this
-
withPreferences
public GuiSwingWindow.GuiSwingWindowCreator withPreferences(Function<GuiMappingContext, GuiPreferences> prefsCreator) - Overrides:
withPreferences
in classGuiSwingRootPane.GuiSwingRootPaneCreator
-
withSettingWindow
- Overrides:
withSettingWindow
in classGuiSwingRootPane.GuiSwingRootPaneCreator
-
withView
- Overrides:
withView
in classGuiSwingRootPane.GuiSwingRootPaneCreator
-
withPrefsApplyOptions
public GuiSwingWindow.GuiSwingWindowCreator withPrefsApplyOptions(GuiSwingPrefsApplyOptions prefsApplyOptions) - Overrides:
withPrefsApplyOptions
in classGuiSwingRootPane.GuiSwingRootPaneCreator
- Parameters:
prefsApplyOptions
- options- Returns:
- this
-