Module org.autogui
Package org.autogui.swing.prefs
Class GuiSwingPrefsEditor.ValueListPaneFileDialogList
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
org.autogui.swing.util.ValueListPane<String,LambdaProperty.LambdaFilePathPane>
org.autogui.swing.prefs.GuiSwingPrefsEditor.ValueListPaneFileDialogList
- All Implemented Interfaces:
ImageObserver
,MenuContainer
,Serializable
- Enclosing class:
GuiSwingPrefsEditor
public static class GuiSwingPrefsEditor.ValueListPaneFileDialogList
extends ValueListPane<String,LambdaProperty.LambdaFilePathPane>
- 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.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
FieldsFields inherited from class org.autogui.swing.util.ValueListPane
addAction, downAction, globalFocusChangeListener, list, listWrapper, model, removeAction, upAction
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Constructor Summary
ConstructorsConstructorDescriptionValueListPaneFileDialogList
(GuiSwingPrefsSupports.PreferencesForFileDialog prefsObj, Runnable saveRunner) -
Method Summary
Modifier and TypeMethodDescriptionnewElementPane
(int i, ValueListPane.ValueListElementPane<String, LambdaProperty.LambdaFilePathPane> elementPane) Note: for a combo-box, the returning element-pane should be opaque=true.newSourceValue
(int i) boolean
removeSourceValue
(int i, String value) checks removing of the i-th element; the default is just returns truevoid
setValue
(ValueListPane.ValueListElementPane<String, LambdaProperty.LambdaFilePathPane> elementPane, String v) void
sourceAdded
(int newIndex, String v) called after the source-element is added: the default-impl is nothingvoid
sourceRemoved
(int[] removedIndices, List<String> removed) called after removing elements from the source: the default-impl is nothingNote: the default constructors does not call the method at initialization.boolean
updateSourceValueToElementPane
(int i, String value, ValueListPane.ValueListElementPane<String, LambdaProperty.LambdaFilePathPane> 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, removeAll, removeElements, removeSelectedElements, scrollWrapper, selectionFlip, selectionRangeTo, selectionSet, sourceMoved, syncElements, updateSelectedElements, upperElement
Methods 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, updateUI
Methods 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, validateTree
Methods 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
-
prefsObj
-
saveRunner
-
-
Constructor Details
-
ValueListPaneFileDialogList
public ValueListPaneFileDialogList(GuiSwingPrefsSupports.PreferencesForFileDialog prefsObj, Runnable saveRunner)
-
-
Method Details
-
takeSource
Description copied from class:ValueListPane
Note: the default constructors does not call the method at initialization. the constructors of sub-classes need toValueListPane.syncElements()
for initializing elements- Specified by:
takeSource
in classValueListPane<String,
LambdaProperty.LambdaFilePathPane> - Returns:
- the direct reference to the source-list. it needs to be stable and modifiable
-
newElementPane
public LambdaProperty.LambdaFilePathPane newElementPane(int i, ValueListPane.ValueListElementPane<String, LambdaProperty.LambdaFilePathPane> elementPane) Description copied from class:ValueListPane
Note: for a combo-box, the returning element-pane should be opaque=true. 1) The property will affect to the frequency of repainting. 2) The repainting will lead to the ancestor change by the cell-rendering mechanism. 3) The change will fire the default event-handler of the combo-box that hides pop-up.- Specified by:
newElementPane
in classValueListPane<String,
LambdaProperty.LambdaFilePathPane> - Parameters:
i
- the initial index for the paneelementPane
- the wrapper element-pane for the creating pane- Returns:
- a new-element pane which will be initialized by
ValueListPane.updateSourceValueToElementPane(int, Object, ValueListElementPane)
later
-
setValue
public void setValue(ValueListPane.ValueListElementPane<String, LambdaProperty.LambdaFilePathPane> elementPane, String v) -
newSourceValue
- Specified by:
newSourceValue
in classValueListPane<String,
LambdaProperty.LambdaFilePathPane> - Parameters:
i
- the index for the creating element- Returns:
- a new i-th element-value, or null it cannot add a new element
-
removeSourceValue
Description copied from class:ValueListPane
checks removing of the i-th element; the default is just returns true- Overrides:
removeSourceValue
in classValueListPane<String,
LambdaProperty.LambdaFilePathPane> - Parameters:
i
- the index for the removing elementvalue
- the removed value- Returns:
- true if the value can be removed
-
updateSourceValueToElementPane
public boolean updateSourceValueToElementPane(int i, String value, ValueListPane.ValueListElementPane<String, LambdaProperty.LambdaFilePathPane> pane) Description copied from class:ValueListPane
re-assign the i-th element-value to the target pane; the method is always called even if the i is not changed.- Specified by:
updateSourceValueToElementPane
in classValueListPane<String,
LambdaProperty.LambdaFilePathPane> - 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:ValueListPane
called after the source-element is added: the default-impl is nothing- Overrides:
sourceAdded
in classValueListPane<String,
LambdaProperty.LambdaFilePathPane> - Parameters:
newIndex
- the new-element indexv
- the added value
-
sourceRemoved
Description copied from class:ValueListPane
called after removing elements from the source: the default-impl is nothing- Overrides:
sourceRemoved
in classValueListPane<String,
LambdaProperty.LambdaFilePathPane> - Parameters:
removedIndices
- removed indicesremoved
- removed values
-