void
addDocumentListener(DocumentListener listener)
Adds a document listener for notification of any changes.
void
addUndoableEditListener(UndoableEditListener listener)
Adds an undo listener for notification of any changes.
protected Element
createBranchElement(Element parent, AttributeSet a)
Creates a document branch element, that can contain other elements.
protected Element
createLeafElement(Element parent, AttributeSet a, int p0, int p1)
Creates a document leaf element.
Position
createPosition(int offs)
Returns a position that will track change as the document is altered.
void
dump(PrintStream out)
Gives a diagnostic dump.
protected void
fireChangedUpdate(DocumentEvent e)
Notifies all listeners that have registered interest for notification on this event type.
protected void
fireInsertUpdate(DocumentEvent e)
Notifies all listeners that have registered interest for notification on this event type.
protected void
fireRemoveUpdate(DocumentEvent e)
Notifies all listeners that have registered interest for notification on this event type.
protected void
fireUndoableEditUpdate(UndoableEditEvent e)
Notifies all listeners that have registered interest for notification on this event type.
int
getAsynchronousLoadPriority()
Gets the asynchronous loading priority.
protected AbstractDocument.AttributeContext
getAttributeContext()
Fetches the context for managing attributes.
Element
getBidiRootElement()
Returns the root element of the bidirectional structure for this document.
protected AbstractDocument.Content
getContent()
Gets the content for the document.
protected Thread
getCurrentWriter()
Fetches the current writing thread if there is one.
abstract Element
getDefaultRootElement()
Returns the root element that views should be based upon unless some other mechanism for assigning views to element structures is provided.
DocumentFilter
getDocumentFilter()
Returns the DocumentFilter
that is responsible for filtering of insertion/removal.
DocumentListener[]
getDocumentListeners()
Returns an array of all the document listeners registered on this document.
Dictionary<Object,Object>
getDocumentProperties()
Supports managing a set of properties.
Position
getEndPosition()
Returns a position that represents the end of the document.
int
getLength()
Returns the length of the data.
<T extends EventListener>
T[]
getListeners(Class<T> listenerType)
Returns an array of all the objects currently registered as FooListener
s upon this document.
abstract Element
getParagraphElement(int pos)
Get the paragraph element containing the given position.
Object
getProperty(Object key)
A convenience method for looking up a property value.
Element[]
getRootElements()
Gets all root elements defined.
Position
getStartPosition()
Returns a position that represents the start of the document.
String
getText(int offset, int length)
Gets a sequence of text from the document.
void
getText(int offset, int length, Segment txt)
Fetches the text contained within the given portion of the document.
UndoableEditListener[]
getUndoableEditListeners()
Returns an array of all the undoable edit listeners registered on this document.
void
insertString(int offs, String str, AttributeSet a)
Inserts some content into the document.
protected void
insertUpdate(AbstractDocument.DefaultDocumentEvent chng, AttributeSet attr)
Updates document structure as a result of text insertion.
protected void
postRemoveUpdate(AbstractDocument.DefaultDocumentEvent chng)
Updates any document structure as a result of text removal.
void
putProperty(Object key, Object value)
A convenience method for storing up a property value.
void
readLock()
Acquires a lock to begin reading some state from the document.
void
readUnlock()
Does a read unlock.
void
remove(int offs, int len)
Removes some content from the document.
void
removeDocumentListener(DocumentListener listener)
Removes a document listener.
void
removeUndoableEditListener(UndoableEditListener listener)
Removes an undo listener.
protected void
removeUpdate(AbstractDocument.DefaultDocumentEvent chng)
Updates any document structure as a result of text removal.
void
render(Runnable r)
This allows the model to be safely rendered in the presence of currency, if the model supports being updated asynchronously.
void
replace(int offset, int length, String text, AttributeSet attrs)
Deletes the region of text from offset
to offset + length
, and replaces it with text
.
void
setAsynchronousLoadPriority(int p)
Sets the asynchronous loading priority.
void
setDocumentFilter(DocumentFilter filter)
Sets the DocumentFilter
.
void
setDocumentProperties(Dictionary<Object,Object> x)
Replaces the document properties dictionary for this document.
protected void
writeLock()
Acquires a lock to begin mutating the document this lock protects.
protected void
writeUnlock()
Releases a write lock previously obtained via writeLock
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4