Module org.autogui
Package org.autogui.swing
Interface GuiSwingViewWrapper.ValuePaneWrapper<ValueType>
- Type Parameters:
ValueType
- the value type
- All Superinterfaces:
GuiSwingView.ValuePane<ValueType>
- All Known Implementing Classes:
GuiSwingTableColumn.ValueWrappingPaneForEditor
,GuiSwingTableColumnString.MultilineColumnTextPane.MultilineColumnScrollPane
,GuiSwingTableColumnString.MultilineColumnWrappingPane
,GuiSwingViewPropertyPane.NamedPropertyPane
,GuiSwingViewPropertyPane.PropertyPane
,GuiSwingViewPropertyPane.PropertyWrapperPane
,GuiSwingViewWrapper.ValueScrollPane
,GuiSwingViewWrapper.ValueWrappingPane
- Enclosing class:
GuiSwingViewWrapper
public static interface GuiSwingViewWrapper.ValuePaneWrapper<ValueType>
extends GuiSwingView.ValuePane<ValueType>
indicating the pane wraps another
GuiSwingView.ValuePane
-
Method Summary
Modifier and TypeMethodDescriptiongetActionByContext
(GuiMappingContext context) getActionByName
(String name) default KeyStroke
default <PaneType extends JComponent>
PaneTypegetSwingViewWrappedPaneAsTypeOrNull
(Class<PaneType> paneType) returnsgetSwingViewWrappedPane()
with type casting, or nulldefault boolean
default void
loadSwingPreferences
(GuiPreferences prefs, GuiSwingPrefsApplyOptions options) nothing happen in the wrapper pane.default void
nothing happen in the wrapper pane.Methods inherited from interface org.autogui.swing.GuiSwingView.ValuePane
addSwingEditFinishHandler, asSwingViewComponent, executeContextTask, getChildByName, getDescendantActionByContext, getDescendantByContext, getDescendantByValue, getDescendantByValueIf, getPrefsJsonSupported, getSpecifier, getSwingMenuBuilder, getSwingStaticMenuItems, getSwingViewContext, getSwingViewValue, isSwingCurrentValueSupported, isSwingEditable, loadSwingPreferences, prepareForRefresh, refreshByContext, requestSwingViewFocus, setKeyStrokeString, setPrefsJsonSupported, setSwingViewHistoryValue, setSwingViewValue, setSwingViewValue, setSwingViewValueForTable, setSwingViewValueWithUpdate, setSwingViewValueWithUpdate, shutdownSwingView, updateSwingViewSource, updateSwingViewSourceFromRoot, wrapSwingNamed, wrapSwingPane, wrapSwingProperty, wrapSwingScrollPane
-
Method Details
-
getSwingViewWrappedPane
GuiSwingView.ValuePane<Object> getSwingViewWrappedPane()- Returns:
- a wrapped child pane or null. the returned pane might have the same context of this, or different one like "property(value)"
-
getSwingViewWrappedPaneAsTypeOrNull
default <PaneType extends JComponent> PaneType getSwingViewWrappedPaneAsTypeOrNull(Class<PaneType> paneType) returnsgetSwingViewWrappedPane()
with type casting, or null- Type Parameters:
PaneType
- the result type- Parameters:
paneType
- the class of the result type- Returns:
- null or
GuiSwingView.ValuePane.asSwingViewComponent()
- Since:
- 1.6
-
isSwingViewWrappedPaneSameContext
default boolean isSwingViewWrappedPaneSameContext() -
getActionByName
- Specified by:
getActionByName
in interfaceGuiSwingView.ValuePane<ValueType>
- Parameters:
name
- the context name of the action- Returns:
- an action defined in the context of the pane. as the default implementation,
it searches
GuiSwingView.ValuePane.getSwingStaticMenuItems()
-
getActionByContext
- Specified by:
getActionByContext
in interfaceGuiSwingView.ValuePane<ValueType>
-
getSwingFocusKeyStroke
- Specified by:
getSwingFocusKeyStroke
in interfaceGuiSwingView.ValuePane<ValueType>
- Returns:
- creates a key-stroke from it's context. for wrapping panes, returns null
-
saveSwingPreferences
nothing happen in the wrapper pane. the wrapped pane do the task- Specified by:
saveSwingPreferences
in interfaceGuiSwingView.ValuePane<ValueType>
- Parameters:
prefs
- target prefs or ancestor of the target;
-
loadSwingPreferences
nothing happen in the wrapper pane. the wrapped pane do the task- Specified by:
loadSwingPreferences
in interfaceGuiSwingView.ValuePane<ValueType>
- Parameters:
prefs
- target prefs or ancestor of the target;options
- options
-