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 : java.awt
Version documentée : Java SE 17

Classe « List »

Informations générales

Héritage

java.lang.Object
    java.awt.Component
        java.awt.List

Interfaces implémentées

java.awt.ItemSelectable
javax.accessibility.Accessible

Définition

public class List extends java.awt.Component
implements java.awt.ItemSelectable,
javax.accessibility.Accessible

Description

A venir.

Liste des attributs

Tous les attributs Attributs d'instance Attributs statiques Attributs dépréciés
QualificateursTypeNomDescription

Liste des constructeurs

Constructeurs Constructeurs dépréciés
ConstructeurDescription
List()
List( int rows )
List( int rows, boolean multipleMode )

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

Propriétés Propriétés dépréciées
QualificateursTypeNomR/W
public AccessibleContext accessibleContext R/-
public synchronized ActionListener[] actionListeners R/-
public int itemCount R/-
public synchronized ItemListener[] itemListeners R/-
public synchronized String[] items R/-
public Dimension minimumSize R/-
public boolean multipleMode R/W
public synchronized boolean multipleSelections -/W
public Dimension preferredSize R/-
public int rows R/-
public synchronized int selectedIndex R/-
public synchronized int[] selectedIndexes R/-
public synchronized String selectedItem R/-
public synchronized String[] selectedItems R/-
public Object[] selectedObjects R/-
public int visibleIndex R/-

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 add( String item )
public void add( String item, int index )
public synchronized void addActionListener( ActionListener l )
public void addItem( String item )
public synchronized void addItem( String item, int index )
public synchronized void addItemListener( ItemListener l )
public void addNotify()
public boolean allowsMultipleSelections()
public synchronized void clear()
public int countItems()
public void delItem( int position )
public synchronized void delItems( int start, int end )
public synchronized void deselect( int index )
public AccessibleContext getAccessibleContext()
public synchronized ActionListener[] getActionListeners()
public String getItem( int index )
public int getItemCount()
public synchronized ItemListener[] getItemListeners()
public synchronized String[] getItems()
public <T> T[] getListeners( Class<T> listenerType )
public Dimension getMinimumSize()
public Dimension getMinimumSize( int rows )
public Dimension getPreferredSize( int rows )
public Dimension getPreferredSize()
public int getRows()
public synchronized int getSelectedIndex()
public synchronized int[] getSelectedIndexes()
public synchronized String getSelectedItem()
public synchronized String[] getSelectedItems()
public Object[] getSelectedObjects()
public int getVisibleIndex()
public boolean isIndexSelected( int index )
public boolean isMultipleMode()
public boolean isSelected( int index )
public synchronized void makeVisible( int index )
public Dimension minimumSize( int rows )
public Dimension minimumSize()
protected String paramString()
public Dimension preferredSize()
public Dimension preferredSize( int rows )
protected void processActionEvent( ActionEvent e )
protected void processEvent( AWTEvent e )
protected void processItemEvent( ItemEvent e )
public void remove( int position )
public synchronized void remove( String item )
public synchronized void removeActionListener( ActionListener l )
public void removeAll()
public synchronized void removeItemListener( ItemListener l )
public void removeNotify()
public synchronized void replaceItem( String newValue, int index )
public void select( int index )
public void setMultipleMode( boolean b )
public synchronized void setMultipleSelections( boolean b )

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