java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CompoundEdit
javax.swing.text.AbstractDocument.DefaultDocumentEvent
public class AbstractDocument.DefaultDocumentEvent
Stores document changes as the document is being modified. Can subsequently be used for change notification when done with the document modification transaction. This is used by the AbstractDocument class and its extensions for broadcasting change information to the document listeners.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface javax.swing.event.DocumentEvent |
|---|
DocumentEvent.ElementChange, DocumentEvent.EventType |
| Field Summary |
|---|
| Fields inherited from class javax.swing.undo.CompoundEdit |
|---|
edits |
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
RedoName, UndoName |
| Constructor Summary | |
|---|---|
AbstractDocument.DefaultDocumentEvent(int offs,
int len,
DocumentEvent.EventType type)
Constructs a change record. |
|
| Method Summary | |
|---|---|
boolean |
addEdit(UndoableEdit anEdit)
Adds a document edit. |
DocumentEvent.ElementChange |
getChange(Element elem)
Gets the changes for an element. |
Document |
getDocument()
Gets the document that sourced the change event. |
int |
getLength()
Returns the length of the change. |
int |
getOffset()
Returns the offset within the document of the start of the change. |
String |
getPresentationName()
Provides a localized, human readable description of this edit suitable for use in, say, a change log. |
String |
getRedoPresentationName()
Provides a localized, human readable description of the redoable form of this edit, e.g. |
DocumentEvent.EventType |
getType()
Returns the type of event. |
String |
getUndoPresentationName()
Provides a localized, human readable description of the undoable form of this edit, e.g. |
boolean |
isSignificant()
DefaultDocument events are significant. |
void |
redo()
Redoes a change. |
String |
toString()
Returns a string description of the change event. |
void |
undo()
Undoes a change. |
| Methods inherited from class javax.swing.undo.CompoundEdit |
|---|
canRedo, canUndo, die, end, isInProgress, lastEdit |
| Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
replaceEdit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDocument.DefaultDocumentEvent(int offs,
int len,
DocumentEvent.EventType type)
offs - the offset into the document of the change >= 0len - the length of the change >= 0type - the type of event (DocumentEvent.EventType)| Method Detail |
|---|
public String toString()
toString in class CompoundEditpublic boolean addEdit(UndoableEdit anEdit)
addEdit in interface UndoableEditaddEdit in class CompoundEditanEdit - a document edit record
UndoableEdit.addEdit(javax.swing.undo.UndoableEdit)
public void redo()
throws CannotRedoException
redo in interface UndoableEditredo in class CompoundEditCannotRedoException - if the change cannot be redoneAbstractUndoableEdit.canRedo()
public void undo()
throws CannotUndoException
undo in interface UndoableEditundo in class CompoundEditCannotUndoException - if the change cannot be undoneAbstractUndoableEdit.canUndo()public boolean isSignificant()
isSignificant in interface UndoableEditisSignificant in class CompoundEditUndoableEdit.isSignificant()public String getPresentationName()
getPresentationName in interface UndoableEditgetPresentationName in class CompoundEditAbstractUndoableEdit.getUndoPresentationName(),
AbstractUndoableEdit.getRedoPresentationName()public String getUndoPresentationName()
getUndoPresentationName in interface UndoableEditgetUndoPresentationName in class CompoundEditAbstractUndoableEdit.getPresentationName()public String getRedoPresentationName()
getRedoPresentationName in interface UndoableEditgetRedoPresentationName in class CompoundEditAbstractUndoableEdit.getPresentationName()public DocumentEvent.EventType getType()
getType in interface DocumentEventDocumentEvent.getType()public int getOffset()
getOffset in interface DocumentEventDocumentEvent.getOffset()public int getLength()
getLength in interface DocumentEventDocumentEvent.getLength()public Document getDocument()
getDocument in interface DocumentEventDocumentEvent.getDocument()public DocumentEvent.ElementChange getChange(Element elem)
getChange in interface DocumentEventelem - the element
Ces informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
8 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)