Package org.jdesktop.swingx.plaf.synth
Class SynthXListUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ListUI
org.jdesktop.swingx.plaf.YListUI
org.jdesktop.swingx.plaf.basic.BasicYListUI
org.jdesktop.swingx.plaf.basic.core.BasicXListUI
org.jdesktop.swingx.plaf.synth.SynthXListUI
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
,SynthConstants
,SynthUI
Extends BasicXListUI for synth,
copied from javax.swing.plaf.synth.SynthListUI, which extends BasicListUI
- Author:
- Jeanette Winzenburg
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jdesktop.swingx.plaf.basic.core.BasicXListUI
BasicXListUI.Actions, BasicXListUI.Handler
Nested classes/interfaces inherited from class org.jdesktop.swingx.plaf.basic.BasicYListUI
BasicYListUI.FocusHandler, BasicYListUI.ListDataHandler, BasicYListUI.ListSelectionHandler, BasicYListUI.MouseInputHandler, BasicYListUI.PropertyChangeHandler
-
Field Summary
Fields inherited from class org.jdesktop.swingx.plaf.basic.BasicYListUI
BASELINE_COMPONENT_KEY, CHANGE_LEAD, CHANGE_SELECTION, defaultTransferHandler, DROP_LINE_THICKNESS, EXTEND_SELECTION, handler
Fields inherited from class org.jdesktop.swingx.plaf.YListUI
cellHeight, cellHeights, cellRendererChanged, cellWidth, columnCount, componentOrientationChanged, fixedCellHeightChanged, fixedCellWidthChanged, focusListener, fontChanged, heightChanged, isFileList, isLeftToRight, layoutOrientation, layoutOrientationChanged, list, listDataListener, listHeight, listSelectionListener, listWidth, modelChanged, mouseInputListener, preferredHeight, propertyChangeListener, prototypeCellValueChanged, rendererPane, rowsPerColumn, selectionModelChanged, timeFactor, updateLayoutStateNeeded, widthChanged
Fields inherited from interface javax.swing.plaf.synth.SynthConstants
DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUI
Factory: Returns a new instance of SynthXListUI.protected void
this method is called at installUI() time.protected void
this method is called at installUI() time.protected void
this method is called at installUI() time.protected void
Installs a SynthBorder from the current style, if ui-installable.void
void
paintBorder
(SynthContext context, Graphics g, int x, int y, int w, int h) void
Methods inherited from class org.jdesktop.swingx.plaf.basic.core.BasicXListUI
createListDataListener, createListSelectionListener, createPropertyChangeListener, getElementAt, getElementCount, getHandler, getSortUI, getViewModel, installSortUI, invalidateCellSizeCache, loadActionMap, maybeUpdateLayoutState, processedBySortUI, processedBySortUI, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallSortUI, uninstallUI, updateIsFileList, updateSortUI
Methods inherited from class org.jdesktop.swingx.plaf.basic.BasicYListUI
checkBaselinePrecondition, createFocusListener, createMouseInputListener, getBaseline, getBaselineResizeBehavior, getCellBounds, getDropLineRect, getPreferredSize, paint, paintCell, paintDropLine, paintImpl, redrawList, selectNextIndex, selectPreviousIndex
Methods inherited from class org.jdesktop.swingx.plaf.YListUI
convertLocationToColumn, convertLocationToRow, convertModelToColumn, convertModelToRow, convertRowToY, convertYToRow, getCellBounds, getHeight, getModelIndex, getRowCount, indexToLocation, locationToIndex, updateLayoutState
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, update
-
Constructor Details
-
SynthXListUI
-
-
Method Details
-
createUI
Factory: Returns a new instance of SynthXListUI. SynthXListUI delegates are allocated one per JList.- Returns:
- A new ListUI implementation for the Synth look and feel.
-
paintBorder
- Specified by:
paintBorder
in interfaceSynthUI
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
installUI
Initializes
super.list
withJComponent c
by calling protected void installDefaults() protected void installListeners() protected void installKeyboardActions()Initializes
super.list
withJComponent c
by calling protected void installDefaults() protected void installListeners() protected void installKeyboardActions()Also installs
ListSortUI()
- Overrides:
installUI
in classBasicXListUI
-
installDefaults
protected void installDefaults()this method is called at installUI() time.- Overrides:
installDefaults
in classBasicXListUI
- See Also:
-
installListeners
protected void installListeners()this method is called at installUI() time.- Overrides:
installListeners
in classBasicXListUI
- See Also:
-
installKeyboardActions
protected void installKeyboardActions()this method is called at installUI() time.- Overrides:
installKeyboardActions
in classBasicXListUI
- See Also:
-
installSynthBorder
protected void installSynthBorder()Installs a SynthBorder from the current style, if ui-installable. -
getContext
- Specified by:
getContext
in interfaceSynthUI
-