Module org.autogui
Package org.autogui.swing.prefs
Class GuiSwingPrefsEditor.ValueListMapPane<Key,Value>
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
org.autogui.swing.util.ValueListPane<Map.Entry<Key,Value>,GuiSwingPrefsEditor.ValueListMapItemPane<Key,Value>>
org.autogui.swing.prefs.GuiSwingPrefsEditor.ValueListMapPane<Key,Value>
- All Implemented Interfaces:
ImageObserver,MenuContainer,Serializable
- Direct Known Subclasses:
GuiSwingPrefsEditor.ValueListMapPaneForTableColumnOrder,GuiSwingPrefsEditor.ValueListMapPaneForTableColumnWidthStatic
- Enclosing class:
GuiSwingPrefsEditor
public abstract static class GuiSwingPrefsEditor.ValueListMapPane<Key,Value>
extends ValueListPane<Map.Entry<Key,Value>,GuiSwingPrefsEditor.ValueListMapItemPane<Key,Value>>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.autogui.swing.util.ValueListPane
ValueListPane.ValueListAddAction, ValueListPane.ValueListContentPane<ValueType,PaneType extends JComponent>, ValueListPane.ValueListDownAction, ValueListPane.ValueListElementPane<ValueType, PaneType extends JComponent>, ValueListPane.ValueListElementTransferable, ValueListPane.ValueListElementTransferHandler, ValueListPane.ValueListModel<ValueType, PaneType extends JComponent>, ValueListPane.ValueListModelAdapter, ValueListPane.ValueListModelUpdater, ValueListPane.ValueListRemoveAction, ValueListPane.ValueListUpAction Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Runnableprotected GuiSwingPrefsEditor.MapList<Key, Value> Fields inherited from class org.autogui.swing.util.ValueListPane
addAction, downAction, globalFocusChangeListener, list, listWrapper, model, removeAction, upActionFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsourceAdded(int newIndex, Map.Entry<Key, Value> v) called after the source-element is added: the default-impl is nothingvoidsourceRemoved(int[] removedIndices, List<Map.Entry<Key, Value>> removed) called after removing elements from the source: the default-impl is nothingvoidsourceUpdated(int index, Map.Entry<Key, Value> v) Note: the default constructors does not call the method at initialization.voidbooleanupdateSourceValueToElementPane(int i, Map.Entry<Key, Value> value, ValueListPane.ValueListElementPane<Map.Entry<Key, Value>, GuiSwingPrefsEditor.ValueListMapItemPane<Key, Value>> pane) re-assign the i-th element-value to the target pane; the method is always called even if the i is not changed.Methods inherited from class org.autogui.swing.util.ValueListPane
addNewElement, afterUpdateElements, close, editSource, focusCchange, getList, getModel, getValueListElementFlavor, init, initFocusRepainter, initLayout, initList, initTool, initToolActions, isParent, matchOrParent, moveDownSelectedElements, moveElements, moveSelectedElements, moveSourceValues, moveUpSelectedElements, newElementPane, newSourceValue, removeAll, removeElements, removeSelectedElements, removeSourceValue, scrollWrapper, selectionFlip, selectionRangeTo, selectionSet, sourceMoved, syncElements, updateSelectedElements, upperElementMethods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUIMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
source
-
sourceWrapper
-
saveRunner
-
-
Constructor Details
-
ValueListMapPane
-
-
Method Details
-
takeSource
Description copied from class:ValueListPaneNote: the default constructors does not call the method at initialization. the constructors of sub-classes need toValueListPane.syncElements()for initializing elements- Specified by:
takeSourcein classValueListPane<Map.Entry<Key,Value>, GuiSwingPrefsEditor.ValueListMapItemPane<Key, Value>> - Returns:
- the direct reference to the source-list. it needs to be stable and modifiable
-
updateSource
public void updateSource() -
takeSourceMap
-
updateSourceValueToElementPane
public boolean updateSourceValueToElementPane(int i, Map.Entry<Key, Value> value, ValueListPane.ValueListElementPane<Map.Entry<Key, Value>, GuiSwingPrefsEditor.ValueListMapItemPane<Key, Value>> pane) Description copied from class:ValueListPanere-assign the i-th element-value to the target pane; the method is always called even if the i is not changed.- Specified by:
updateSourceValueToElementPanein classValueListPane<Map.Entry<Key,Value>, GuiSwingPrefsEditor.ValueListMapItemPane<Key, Value>> - Parameters:
i- the index of the elementvalue- the value of the elementpane- the i-th element-pane- Returns:
- true if the value of the pane is updated by the given (i,value).
-
sourceAdded
Description copied from class:ValueListPanecalled after the source-element is added: the default-impl is nothing- Overrides:
sourceAddedin classValueListPane<Map.Entry<Key,Value>, GuiSwingPrefsEditor.ValueListMapItemPane<Key, Value>> - Parameters:
newIndex- the new-element indexv- the added value
-
sourceRemoved
Description copied from class:ValueListPanecalled after removing elements from the source: the default-impl is nothing- Overrides:
sourceRemovedin classValueListPane<Map.Entry<Key,Value>, GuiSwingPrefsEditor.ValueListMapItemPane<Key, Value>> - Parameters:
removedIndices- removed indicesremoved- removed values
-
sourceUpdated
-