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 KeyStrokedefault <PaneType extends JComponent>
PaneTypegetSwingViewWrappedPaneAsTypeOrNull(Class<PaneType> paneType) returnsgetSwingViewWrappedPane()with type casting, or nulldefault booleandefault voidloadSwingPreferences(GuiPreferences prefs, GuiSwingPrefsApplyOptions options) nothing happen in the wrapper pane.default voidnothing 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:
getActionByNamein 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:
getActionByContextin interfaceGuiSwingView.ValuePane<ValueType>
-
getSwingFocusKeyStroke
- Specified by:
getSwingFocusKeyStrokein 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:
saveSwingPreferencesin 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:
loadSwingPreferencesin interfaceGuiSwingView.ValuePane<ValueType>- Parameters:
prefs- target prefs or ancestor of the target;options- options
-