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

Informations générales

Héritage

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

Définition

public class TextComponent extends java.awt.Component
implements javax.accessibility.Accessible

Description

A venir.

Liste des attributs

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

Liste des constructeurs

Constructeurs Constructeurs dépréciés
ConstructeurDescription

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

Propriétés Propriétés dépréciées
QualificateursTypeNomR/W
public AccessibleContext accessibleContext R/-
public Color background R/W
public synchronized int caretPosition R/W
public synchronized boolean editable R/W
public InputMethodRequests inputMethodRequests R/-
public synchronized String selectedText R/-
public synchronized int selectionEnd R/W
public synchronized int selectionStart R/W
public synchronized String text R/W
public synchronized TextListener[] textListeners 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 addNotify()
public synchronized void addTextListener( TextListener l )
public void enableInputMethods( boolean enable )
public AccessibleContext getAccessibleContext()
public Color getBackground()
public synchronized int getCaretPosition()
public InputMethodRequests getInputMethodRequests()
public <T> T[] getListeners( Class<T> listenerType )
public synchronized String getSelectedText()
public synchronized int getSelectionEnd()
public synchronized int getSelectionStart()
public synchronized String getText()
public synchronized TextListener[] getTextListeners()
public boolean isEditable()
protected String paramString()
protected void processEvent( AWTEvent e )
protected void processTextEvent( TextEvent e )
public void removeNotify()
public synchronized void removeTextListener( TextListener l )
public synchronized void select( int selectionStart, int selectionEnd )
public synchronized void selectAll()
public void setBackground( Color c )
public synchronized void setCaretPosition( int position )
public synchronized void setEditable( boolean b )
public synchronized void setSelectionEnd( int selectionEnd )
public synchronized void setSelectionStart( int selectionStart )
public synchronized void setText( String t )

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