@Deprecated
public class ListPane
extends javax.swing.JList
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategyjava.awt.Container.AccessibleAWTContaineraccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor | Description |
|---|---|
ListPane() |
Deprecated.
Constructs a JList with an empty model.
|
ListPane(java.lang.Object[] listData) |
Deprecated.
Construct a JList that displays the elements in the specified
array.
|
ListPane(java.util.Vector listData) |
Deprecated.
Construct a JList that displays the elements in the specified
Vector.
|
ListPane(javax.swing.ListModel dataModel) |
Deprecated.
Construct a JList that displays the elements in the specified,
non-null model.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addSelectionInterval(int anchor,
int lead) |
Deprecated.
|
void |
ensureIndexIsVisible(int index) |
Deprecated.
If this JList is being displayed withing a JViewport and the
specified cell isn't completely visible, scroll the viewport.
|
java.awt.Rectangle |
getCellBounds(int index1,
int index2) |
Deprecated.
Returns the bounds of the specified item in JList
coordinates, null if index isn't valid.
|
java.awt.Dimension |
getMinimumSize() |
Deprecated.
|
java.awt.Dimension |
getPreferredScrollableViewportSize() |
Deprecated.
Compute the size of the viewport needed to display visibleRowCount
rows.
|
java.awt.Dimension |
getPreferredSize() |
Deprecated.
The preferredSize of a list is total height of the rows
and the maximum width of the cells.
|
int |
getScrollableBlockIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction) |
Deprecated.
|
boolean |
getScrollableTracksViewportHeight() |
Deprecated.
If this JList is displayed in a JViewport, don't change its height
when the viewports height changes.
|
boolean |
getScrollableTracksViewportWidth() |
Deprecated.
If this JList is displayed in a JViewport, don't change its width
when the viewports width changes.
|
int |
getScrollableUnitIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction) |
Deprecated.
If we're scrolling downwards (
direction is
greater than 0), and the first row is completely visible with respect
to visibleRect, then return its height. |
int |
getVisibleColumnCount() |
Deprecated.
Return the value of the visibleRowCount property.
|
java.awt.Point |
indexToLocation(int index) |
Deprecated.
Returns the origin of the specified item in JList
coordinates, null if index isn't valid.
|
boolean |
isOpaque() |
Deprecated.
JList components are always opaque.
|
int |
locationToIndex(java.awt.Point location) |
Deprecated.
Convert a point in JList coordinates to the index
of the cell at that location.
|
protected void |
paintBackground(java.awt.Graphics g) |
Deprecated.
If the list is opaque, paint its background.
|
protected void |
paintComponent(java.awt.Graphics g) |
Deprecated.
Paint the rows that intersect the Graphics objects clipRect.
|
void |
removeSelectionInterval(int index0,
int index1) |
Deprecated.
|
void |
setSelectionInterval(int anchor,
int lead) |
Deprecated.
|
void |
setVisibleColumnCount(int visibleColumnCount) |
Deprecated.
Set the preferred number of rows in the list that are visible within
the nearest JViewport ancestor, if any.
|
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, 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, transferFocusUpCycleadd, 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, validateTreeaddAncestorListener, 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, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, 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, updateaddListSelectionListener, clearSelection, createSelectionModel, fireSelectionValueChanged, getAccessibleContext, getAnchorSelectionIndex, getCellRenderer, getDragEnabled, getDropLocation, getDropMode, getFirstVisibleIndex, getFixedCellHeight, getFixedCellWidth, getLastVisibleIndex, getLayoutOrientation, getLeadSelectionIndex, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getModel, getNextMatch, getPrototypeCellValue, getSelectedIndex, getSelectedIndices, getSelectedValue, getSelectedValues, getSelectedValuesList, getSelectionBackground, getSelectionForeground, getSelectionMode, getSelectionModel, getToolTipText, getUI, getUIClassID, getValueIsAdjusting, getVisibleRowCount, isSelectedIndex, isSelectionEmpty, paramString, removeListSelectionListener, setCellRenderer, setDragEnabled, setDropMode, setFixedCellHeight, setFixedCellWidth, setLayoutOrientation, setListData, setListData, setModel, setPrototypeCellValue, setSelectedIndex, setSelectedIndices, setSelectedValue, setSelectionBackground, setSelectionForeground, setSelectionMode, setSelectionModel, setUI, setValueIsAdjusting, setVisibleRowCount, updateUIpublic ListPane(javax.swing.ListModel dataModel)
public ListPane(java.lang.Object[] listData)
public ListPane(java.util.Vector listData)
public ListPane()
public boolean isOpaque()
isOpaque in class javax.swing.JComponentpublic int getVisibleColumnCount()
JList.setVisibleRowCount(int)public void setVisibleColumnCount(int visibleColumnCount)
The default value of this property is 8.
This is a JavaBeans bound property.
JList.getVisibleRowCount(),
JComponent.getVisibleRect()public void ensureIndexIsVisible(int index)
ensureIndexIsVisible in class javax.swing.JListindex - The index of the cell to make visibleJComponent.scrollRectToVisible(java.awt.Rectangle),
JComponent.getVisibleRect()public int locationToIndex(java.awt.Point location)
locationToIndex in class javax.swing.JListlocation - The JList relative coordinates of the cellpublic java.awt.Point indexToLocation(int index)
indexToLocation in class javax.swing.JListindex - The index of the JList cell.public java.awt.Rectangle getCellBounds(int index1,
int index2)
getCellBounds in class javax.swing.JListindex1 - start index of the JList cell.index2 - end index of the JList cell.public java.awt.Dimension getPreferredScrollableViewportSize()
getPreferredScrollableViewportSize in class javax.swing.JListgetPreferredScrollableViewportSize()public int getScrollableUnitIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction)
direction is
greater than 0), and the first row is completely visible with respect
to visibleRect, then return its height. If
we're scrolling downwards and the first row is only partially visible,
return the height of the visible part of the first row. Similarly
if we're scrolling upwards we return the height of the row above
the first row, unless the first row is partially visible.getScrollableUnitIncrement in class javax.swing.JListScrollable.getScrollableUnitIncrement(java.awt.Rectangle, int, int)public int getScrollableBlockIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction)
getScrollableBlockIncrement in class javax.swing.JListScrollable.getScrollableUnitIncrement(java.awt.Rectangle, int, int)public boolean getScrollableTracksViewportWidth()
getScrollableTracksViewportWidth in class javax.swing.JListScrollable.getScrollableTracksViewportWidth()public boolean getScrollableTracksViewportHeight()
getScrollableTracksViewportHeight in class javax.swing.JListScrollable.getScrollableTracksViewportWidth()protected void paintBackground(java.awt.Graphics g)
JComponent.paint(java.awt.Graphics)protected void paintComponent(java.awt.Graphics g)
paintComponent in class javax.swing.JComponentpaintBackground(java.awt.Graphics)public java.awt.Dimension getPreferredSize()
getPreferredSize in class javax.swing.JComponentpublic java.awt.Dimension getMinimumSize()
getMinimumSize in class javax.swing.JComponentpublic void setSelectionInterval(int anchor,
int lead)
setSelectionInterval in class javax.swing.JListpublic void addSelectionInterval(int anchor,
int lead)
addSelectionInterval in class javax.swing.JListpublic void removeSelectionInterval(int index0,
int index1)
removeSelectionInterval in class javax.swing.JListBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.