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

Classe « AbstractDocument »

Informations générales

Héritage

java.lang.Object
    javax.swing.text.AbstractDocument

Interfaces implémentées

java.io.Serializable
javax.swing.text.Document

Définition

public abstract class AbstractDocument extends java.lang.Object
implements java.io.Serializable,
javax.swing.text.Document

Description

A venir.

Liste des attributs

Tous les attributs Attributs d'instance Attributs statiques Attributs dépréciés
QualificateursTypeNomDescription
protected static String BAD_LOCATION
public static String BidiElementName
public static String ContentElementName
public static String ElementNameAttribute
public static String ParagraphElementName
public static String SectionElementName
protected EventListenerList listenerList

Liste des constructeurs

Constructeurs Constructeurs dépréciés
ConstructeurDescription
AbstractDocument( Content data )
AbstractDocument( Content data, AttributeContext context )

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

Propriétés Propriétés dépréciées
QualificateursTypeNomR/W
public int asynchronousLoadPriority R/W
protected AttributeContext attributeContext R/-
public Element bidiRootElement R/-
protected Content content R/-
protected synchronized Thread currentWriter R/-
public abstract Element defaultRootElement R/-
public DocumentFilter documentFilter R/W
public DocumentListener[] documentListeners R/-
public Dictionary documentProperties R/W
public Position endPosition R/-
public int length R/-
public Element[] rootElements R/-
public Position startPosition R/-
public UndoableEditListener[] undoableEditListeners R/-

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 addDocumentListener( DocumentListener listener )
public void addUndoableEditListener( UndoableEditListener listener )
protected Element createBranchElement( Element parent, AttributeSet a )
protected Element createLeafElement( Element parent, AttributeSet a, int p0, int p1 )
public synchronized Position createPosition( int offs )
public void dump( PrintStream out )
protected void fireChangedUpdate( DocumentEvent e )
protected void fireInsertUpdate( DocumentEvent e )
protected void fireRemoveUpdate( DocumentEvent e )
protected void fireUndoableEditUpdate( UndoableEditEvent e )
public int getAsynchronousLoadPriority()
protected AttributeContext getAttributeContext()
public Element getBidiRootElement()
protected Content getContent()
protected synchronized Thread getCurrentWriter()
public abstract Element getDefaultRootElement()
public DocumentFilter getDocumentFilter()
public DocumentListener[] getDocumentListeners()
public Dictionary<java.lang.Object, java.lang.Object> getDocumentProperties()
public Position getEndPosition()
public int getLength()
public <T> T[] getListeners( Class<T> listenerType )
public abstract Element getParagraphElement( int pos )
public Object getProperty( Object key )
public Element[] getRootElements()
public Position getStartPosition()
public String getText( int offset, int length )
public void getText( int offset, int length, Segment txt )
public UndoableEditListener[] getUndoableEditListeners()
public void insertString( int offs, String str, AttributeSet a )
protected void insertUpdate( DefaultDocumentEvent chng, AttributeSet attr )
protected void postRemoveUpdate( DefaultDocumentEvent chng )
public void putProperty( Object key, Object value )
public synchronized void readLock()
public synchronized void readUnlock()
public void remove( int offs, int len )
public void removeDocumentListener( DocumentListener listener )
public void removeUndoableEditListener( UndoableEditListener listener )
protected void removeUpdate( DefaultDocumentEvent chng )
public void render( Runnable r )
public void replace( int offset, int length, String text, AttributeSet attrs )
public void setAsynchronousLoadPriority( int p )
public void setDocumentFilter( DocumentFilter filter )
public void setDocumentProperties( Dictionary<java.lang.Object, java.lang.Object> x )
protected synchronized void writeLock()
protected synchronized void writeUnlock()

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

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