BasicListUI (Java Platform SE 8 ) (original) (raw)
Modifier and Type
Method
Description
protected int
[convertRowToY](../../../../javax/swing/plaf/basic/BasicListUI.html#convertRowToY-int-)(int row)
Return the JList relative Y coordinate of the origin of the specified row or -1 if row isn't valid.
protected int
[convertYToRow](../../../../javax/swing/plaf/basic/BasicListUI.html#convertYToRow-int-)(int y0)
Convert the JList relative coordinate to the row that contains it, based on the current layout.
protected [FocusListener](../../../../java/awt/event/FocusListener.html "interface in java.awt.event")
[createFocusListener](../../../../javax/swing/plaf/basic/BasicListUI.html#createFocusListener--)()
protected [ListDataListener](../../../../javax/swing/event/ListDataListener.html "interface in javax.swing.event")
[createListDataListener](../../../../javax/swing/plaf/basic/BasicListUI.html#createListDataListener--)()
Creates an instance of ListDataListener that's added to the JLists by model as needed.
protected [ListSelectionListener](../../../../javax/swing/event/ListSelectionListener.html "interface in javax.swing.event")
[createListSelectionListener](../../../../javax/swing/plaf/basic/BasicListUI.html#createListSelectionListener--)()
Creates an instance of ListSelectionHandler that's added to the JLists by selectionModel as needed.
protected [MouseInputListener](../../../../javax/swing/event/MouseInputListener.html "interface in javax.swing.event")
[createMouseInputListener](../../../../javax/swing/plaf/basic/BasicListUI.html#createMouseInputListener--)()
Creates a delegate that implements MouseInputListener.
protected [PropertyChangeListener](../../../../java/beans/PropertyChangeListener.html "interface in java.beans")
[createPropertyChangeListener](../../../../javax/swing/plaf/basic/BasicListUI.html#createPropertyChangeListener--)()
Creates an instance of PropertyChangeHandler that's added to the JList by installUI().
static [ComponentUI](../../../../javax/swing/plaf/ComponentUI.html "class in javax.swing.plaf")
[createUI](../../../../javax/swing/plaf/basic/BasicListUI.html#createUI-javax.swing.JComponent-)([JComponent](../../../../javax/swing/JComponent.html "class in javax.swing") list)
Returns a new instance of BasicListUI.
int
[getBaseline](../../../../javax/swing/plaf/basic/BasicListUI.html#getBaseline-javax.swing.JComponent-int-int-)([JComponent](../../../../javax/swing/JComponent.html "class in javax.swing") c, int width, int height)
Returns the baseline.
[Component.BaselineResizeBehavior](../../../../java/awt/Component.BaselineResizeBehavior.html "enum in java.awt")
[getBaselineResizeBehavior](../../../../javax/swing/plaf/basic/BasicListUI.html#getBaselineResizeBehavior-javax.swing.JComponent-)([JComponent](../../../../javax/swing/JComponent.html "class in javax.swing") c)
Returns an enum indicating how the baseline of the component changes as the size changes.
[Rectangle](../../../../java/awt/Rectangle.html "class in java.awt")
[getCellBounds](../../../../javax/swing/plaf/basic/BasicListUI.html#getCellBounds-javax.swing.JList-int-int-)([JList](../../../../javax/swing/JList.html "class in javax.swing") list, int index1, int index2)
Returns the bounding rectangle, in the given list's coordinate system, for the range of cells specified by the two indices.
[Dimension](../../../../java/awt/Dimension.html "class in java.awt")
[getPreferredSize](../../../../javax/swing/plaf/basic/BasicListUI.html#getPreferredSize-javax.swing.JComponent-)([JComponent](../../../../javax/swing/JComponent.html "class in javax.swing") c)
The preferredSize of the list depends upon the layout orientation.
protected int
[getRowHeight](../../../../javax/swing/plaf/basic/BasicListUI.html#getRowHeight-int-)(int row)
Returns the height of the specified row based on the current layout.
[Point](../../../../java/awt/Point.html "class in java.awt")
[indexToLocation](../../../../javax/swing/plaf/basic/BasicListUI.html#indexToLocation-javax.swing.JList-int-)([JList](../../../../javax/swing/JList.html "class in javax.swing") list, int index)
Returns the origin in the given JList
, of the specified item, in the list's coordinate system.
protected void
[installDefaults](../../../../javax/swing/plaf/basic/BasicListUI.html#installDefaults--)()
Initializes list properties such as font, foreground, and background, and adds the CellRendererPane.
protected void
[installKeyboardActions](../../../../javax/swing/plaf/basic/BasicListUI.html#installKeyboardActions--)()
Registers the keyboard bindings on the JList
that theBasicListUI
is associated with.
protected void
[installListeners](../../../../javax/swing/plaf/basic/BasicListUI.html#installListeners--)()
Creates and installs the listeners for the JList, its model, and its selectionModel.
void
[installUI](../../../../javax/swing/plaf/basic/BasicListUI.html#installUI-javax.swing.JComponent-)([JComponent](../../../../javax/swing/JComponent.html "class in javax.swing") c)
Initializes this.list
by calling installDefaults()
,installListeners()
, and installKeyboardActions()
in order.
int
[locationToIndex](../../../../javax/swing/plaf/basic/BasicListUI.html#locationToIndex-javax.swing.JList-java.awt.Point-)([JList](../../../../javax/swing/JList.html "class in javax.swing") list,[Point](../../../../java/awt/Point.html "class in java.awt") location)
Returns the cell index in the specified JList
closest to the given location in the list's coordinate system.
protected void
[maybeUpdateLayoutState](../../../../javax/swing/plaf/basic/BasicListUI.html#maybeUpdateLayoutState--)()
If updateLayoutStateNeeded is non zero, call updateLayoutState() and reset updateLayoutStateNeeded.
void
[paint](../../../../javax/swing/plaf/basic/BasicListUI.html#paint-java.awt.Graphics-javax.swing.JComponent-)([Graphics](../../../../java/awt/Graphics.html "class in java.awt") g,[JComponent](../../../../javax/swing/JComponent.html "class in javax.swing") c)
Paint the rows that intersect the Graphics objects clipRect.
protected void
[paintCell](../../../../javax/swing/plaf/basic/BasicListUI.html#paintCell-java.awt.Graphics-int-java.awt.Rectangle-javax.swing.ListCellRenderer-javax.swing.ListModel-javax.swing.ListSelectionModel-int-)([Graphics](../../../../java/awt/Graphics.html "class in java.awt") g, int row,[Rectangle](../../../../java/awt/Rectangle.html "class in java.awt") rowBounds,[ListCellRenderer](../../../../javax/swing/ListCellRenderer.html "interface in javax.swing") cellRenderer,[ListModel](../../../../javax/swing/ListModel.html "interface in javax.swing") dataModel,[ListSelectionModel](../../../../javax/swing/ListSelectionModel.html "interface in javax.swing") selModel, int leadIndex)
Paint one List cell: compute the relevant state, get the "rubber stamp" cell renderer component, and then use the CellRendererPane to paint it.
protected void
[selectNextIndex](../../../../javax/swing/plaf/basic/BasicListUI.html#selectNextIndex--)()
Selected the previous row and force it to be visible.
protected void
[selectPreviousIndex](../../../../javax/swing/plaf/basic/BasicListUI.html#selectPreviousIndex--)()
Selected the previous row and force it to be visible.
protected void
[uninstallDefaults](../../../../javax/swing/plaf/basic/BasicListUI.html#uninstallDefaults--)()
Sets the list properties that have not been explicitly overridden tonull
.
protected void
[uninstallKeyboardActions](../../../../javax/swing/plaf/basic/BasicListUI.html#uninstallKeyboardActions--)()
Unregisters keyboard actions installed frominstallKeyboardActions
.
protected void
[uninstallListeners](../../../../javax/swing/plaf/basic/BasicListUI.html#uninstallListeners--)()
Removes the listeners from the JList, its model, and its selectionModel.
void
[uninstallUI](../../../../javax/swing/plaf/basic/BasicListUI.html#uninstallUI-javax.swing.JComponent-)([JComponent](../../../../javax/swing/JComponent.html "class in javax.swing") c)
Uninitializes this.list
by calling uninstallListeners()
,uninstallKeyboardActions()
, and uninstallDefaults()
in order.
protected void
[updateLayoutState](../../../../javax/swing/plaf/basic/BasicListUI.html#updateLayoutState--)()
Recompute the value of cellHeight or cellHeights based and cellWidth, based on the current font and the current values of fixedCellWidth, fixedCellHeight, and prototypeCellValue.