Package com.illumon.iris.gui.widget
Class TogglingSelectionListUi
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ListUI
javax.swing.plaf.basic.BasicListUI
com.illumon.iris.gui.widget.TogglingSelectionListUi
public class TogglingSelectionListUi extends BasicListUI
A UI overload for
JList
s that changes the default selection behavior. Instead of a click changing the entire
selection, item selection is toggled when a click happens on any single item. It also allows for click-drag selection.-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicListUI
BasicListUI.FocusHandler, BasicListUI.ListDataHandler, BasicListUI.ListSelectionHandler, BasicListUI.MouseInputHandler, BasicListUI.PropertyChangeHandler
-
Field Summary
Fields inherited from class javax.swing.plaf.basic.BasicListUI
cellHeight, cellHeights, cellRendererChanged, cellWidth, fixedCellHeightChanged, fixedCellWidthChanged, focusListener, fontChanged, list, listDataListener, listSelectionListener, modelChanged, mouseInputListener, propertyChangeListener, prototypeCellValueChanged, rendererPane, selectionModelChanged, updateLayoutStateNeeded
-
Constructor Summary
Constructors Constructor Description TogglingSelectionListUi()
-
Method Summary
Modifier and Type Method Description protected MouseInputListener
createMouseInputListener()
Methods inherited from class javax.swing.plaf.basic.BasicListUI
convertRowToY, convertYToRow, createFocusListener, createListDataListener, createListSelectionListener, createPropertyChangeListener, createUI, getBaseline, getBaselineResizeBehavior, getCellBounds, getPreferredSize, getRowHeight, indexToLocation, installDefaults, installKeyboardActions, installListeners, installUI, locationToIndex, maybeUpdateLayoutState, paint, paintCell, selectNextIndex, selectPreviousIndex, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, updateLayoutState
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, update
-
Constructor Details
-
TogglingSelectionListUi
public TogglingSelectionListUi()
-
-
Method Details
-
createMouseInputListener
- Overrides:
createMouseInputListener
in classBasicListUI
-