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 « TextField »

Informations générales

Héritage

java.lang.Object
    java.awt.Component
        java.awt.TextComponent
            java.awt.TextField

Définition

public class TextField extends java.awt.TextComponent

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
TextField()
TextField( int columns )
TextField( String text )
TextField( String text, int columns )

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 columns R/W
public char echoChar R/W
public synchronized char echoCharacter -/W
public Dimension minimumSize R/-
public Dimension preferredSize R/-
public String text -/W

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

accessibleContext, background, caretPosition, editable, inputMethodRequests, selectedText, selectionEnd, selectionStart, text, textListeners

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 synchronized void addActionListener( ActionListener l )
public void addNotify()
public boolean echoCharIsSet()
public AccessibleContext getAccessibleContext()
public synchronized ActionListener[] getActionListeners()
public int getColumns()
public char getEchoChar()
public <T> T[] getListeners( Class<T> listenerType )
public Dimension getMinimumSize( int columns )
public Dimension getMinimumSize()
public Dimension getPreferredSize( int columns )
public Dimension getPreferredSize()
public Dimension minimumSize()
public Dimension minimumSize( int columns )
protected String paramString()
public Dimension preferredSize()
public Dimension preferredSize( int columns )
protected void processActionEvent( ActionEvent e )
protected void processEvent( AWTEvent e )
public synchronized void removeActionListener( ActionListener l )
public void setColumns( int columns )
public void setEchoChar( char c )
public synchronized void setEchoCharacter( char c )
public void setText( String t )

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

addNotify, addTextListener, enableInputMethods, getAccessibleContext, getBackground, getCaretPosition, getInputMethodRequests, getListeners, getSelectedText, getSelectionEnd, getSelectionStart, getText, getTextListeners, isEditable, paramString, processEvent, processTextEvent, removeNotify, removeTextListener, select, selectAll, setBackground, setCaretPosition, setEditable, setSelectionEnd, setSelectionStart, setText

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