Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module : java.desktop - Package : javax.swing
Version documentée : Java SE 17

Classe « JList<E> »

Informations générales

Héritage

java.lang.Object
    java.awt.Component
        java.awt.Container
            javax.swing.JComponent
                javax.swing.JList

Interfaces implémentées

javax.accessibility.Accessible
javax.swing.Scrollable

Définition

public class JList<E> extends javax.swing.JComponent
implements javax.accessibility.Accessible,
javax.swing.Scrollable

Description

A venir.

Liste des attributs

Tous les attributs Attributs d'instance Attributs statiques Attributs dépréciés
QualificateursTypeNomDescription
public static int HORIZONTAL_WRAP
public static int VERTICAL
public static int VERTICAL_WRAP

Liste des constructeurs

Constructeurs Constructeurs dépréciés
ConstructeurDescription
JList()
JList( Vector<? extends E> listData )
JList( E[] listData )
JList( ListModel<E> dataModel )

Liste des propriétés (getters/setters)

Propriétés Propriétés dépréciées
QualificateursTypeNomR/W
public AccessibleContext accessibleContext R/-
public int anchorSelectionIndex R/-
public ListCellRenderer cellRenderer R/W
public boolean dragEnabled R/W
public DropLocation dropLocation R/-
public DropMode dropMode R/W
public int firstVisibleIndex R/-
public int fixedCellHeight R/W
public int fixedCellWidth R/W
public int lastVisibleIndex R/-
public int layoutOrientation R/W
public int leadSelectionIndex R/-
public Object[] listData -/W
public ListSelectionListener[] listSelectionListeners R/-
public int maxSelectionIndex R/-
public int minSelectionIndex R/-
public ListModel model R/W
public Dimension preferredScrollableViewportSize R/-
public Object prototypeCellValue R/W
public boolean scrollableTracksViewportHeight R/-
public boolean scrollableTracksViewportWidth R/-
public int selectedIndex R/W
public int[] selectedIndices R/W
public Object selectedValue R/-
public Object[] selectedValues R/-
public List selectedValuesList R/-
public Color selectionBackground R/W
public boolean selectionEmpty R/-
public Color selectionForeground R/W
public int selectionMode R/W
public ListSelectionModel selectionModel R/W
public ComponentUI uI R/-
public String uIClassID R/-
public boolean valueIsAdjusting R/W
public int visibleRowCount R/W

Propriétés héritées de la classe javax.swing.JComponent

actionMap, alignmentX, alignmentY, ancestorListeners, autoscrolls, background, baselineResizeBehavior, border, componentPopupMenu, debugGraphicsOptions, defaultLocale, doubleBuffered, enabled, font, foreground, graphics, height, inheritsPopupMenu, inputMap, inputVerifier, insets, managingFocus, maximumSize, minimumSize, nextFocusableComponent, opaque, optimizedDrawingEnabled, paintingForPrint, paintingOrigin, paintingTile, preferredSize, registeredKeyStrokes, requestFocusEnabled, rootPane, toolTipText, topLevelAncestor, transferHandler, uI, uIClassID, validateRoot, verifyInputWhenFocusTarget, vetoableChangeListeners, visible, visibleRect, width, x, y

Propriétés héritées de la classe java.awt.Container

alignmentX, alignmentY, componentCount, components, containerListeners, focusCycleRoot, focusTraversalPolicy, focusTraversalPolicyProvider, focusTraversalPolicySet, font, insets, layout, maximumSize, minimumSize, preferredSize, validateRoot

Propriétés héritées de la classe java.awt.Component

accessibleContext, alignmentX, alignmentY, background, backgroundSet, baselineResizeBehavior, bounds, colorModel, componentListeners, componentOrientation, cursor, cursorSet, displayable, doubleBuffered, dropTarget, enabled, focusCycleRootAncestor, focusListeners, focusOwner, focusTraversable, focusTraversalKeysEnabled, focusable, font, fontSet, foreground, foregroundSet, graphics, graphicsConfiguration, height, hierarchyBoundsListeners, hierarchyListeners, ignoreRepaint, inputContext, inputMethodListeners, inputMethodRequests, keyListeners, lightweight, locale, location, locationOnScreen, maximumSize, maximumSizeSet, minimumSize, minimumSizeSet, mixingCutoutShape, mouseListeners, mouseMotionListeners, mousePosition, mouseWheelListeners, name, opaque, parent, preferredSize, preferredSizeSet, propertyChangeListeners, showing, size, toolkit, treeLock, valid, visible, width, x, y

Propriétés héritées de la classe java.lang.Object

class

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes concrètes Méthodes abstraites Méthodes dépréciées
QualificateursType de retourPrototype de la méthodeDescription
public void addListSelectionListener( ListSelectionListener listener )
public void addSelectionInterval( int anchor, int lead )
public void clearSelection()
protected ListSelectionModel createSelectionModel()
public void ensureIndexIsVisible( int index )
protected void fireSelectionValueChanged( int firstIndex, int lastIndex, boolean isAdjusting )
public AccessibleContext getAccessibleContext()
public int getAnchorSelectionIndex()
public Rectangle getCellBounds( int index0, int index1 )
public ListCellRenderer<? super E> getCellRenderer()
public boolean getDragEnabled()
public DropLocation getDropLocation()
public DropMode getDropMode()
public int getFirstVisibleIndex()
public int getFixedCellHeight()
public int getFixedCellWidth()
public int getLastVisibleIndex()
public int getLayoutOrientation()
public int getLeadSelectionIndex()
public ListSelectionListener[] getListSelectionListeners()
public int getMaxSelectionIndex()
public int getMinSelectionIndex()
public ListModel<E> getModel()
public int getNextMatch( String prefix, int startIndex, Bias bias )
public Dimension getPreferredScrollableViewportSize()
public E getPrototypeCellValue()
public int getScrollableBlockIncrement( Rectangle visibleRect, int orientation, int direction )
public boolean getScrollableTracksViewportHeight()
public boolean getScrollableTracksViewportWidth()
public int getScrollableUnitIncrement( Rectangle visibleRect, int orientation, int direction )
public int getSelectedIndex()
public int[] getSelectedIndices()
public E getSelectedValue()
public Object[] getSelectedValues()
public List<E> getSelectedValuesList()
public Color getSelectionBackground()
public Color getSelectionForeground()
public int getSelectionMode()
public ListSelectionModel getSelectionModel()
public String getToolTipText( MouseEvent event )
public ListUI getUI()
public String getUIClassID()
public boolean getValueIsAdjusting()
public int getVisibleRowCount()
public Point indexToLocation( int index )
public boolean isSelectedIndex( int index )
public boolean isSelectionEmpty()
public int locationToIndex( Point location )
protected String paramString()
public void removeListSelectionListener( ListSelectionListener listener )
public void removeSelectionInterval( int index0, int index1 )
public void setCellRenderer( ListCellRenderer<? super E> cellRenderer )
public void setDragEnabled( boolean b )
public void setDropMode( DropMode dropMode )
public void setFixedCellHeight( int height )
public void setFixedCellWidth( int width )
public void setLayoutOrientation( int layoutOrientation )
public void setListData( E[] listData )
public void setListData( Vector<? extends E> listData )
public void setModel( ListModel<E> model )
public void setPrototypeCellValue( E prototypeCellValue )
public void setSelectedIndex( int index )
public void setSelectedIndices( int[] indices )
public void setSelectedValue( Object anObject, boolean shouldScroll )
public void setSelectionBackground( Color selectionBackground )
public void setSelectionForeground( Color selectionForeground )
public void setSelectionInterval( int anchor, int lead )
public void setSelectionMode( int selectionMode )
public void setSelectionModel( ListSelectionModel selectionModel )
public void setUI( ListUI ui )
public void setValueIsAdjusting( boolean b )
public void setVisibleRowCount( int visibleRowCount )
public void updateUI()

Méthodes héritées de la classe 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

Méthodes héritées de la classe java.awt.Container

add, add, add, add, add, addContainerListener, addImpl, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponentZOrder, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree

Méthodes héritées de la classe java.awt.Component

action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFocusable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFocusable, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setMixingCutoutShape, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate

Méthodes héritées de la classe java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait