|
Data Request Broker 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.text.AbstractDocument
javax.swing.text.DefaultStyledDocument
fr.gael.drb.query.XQueryDocument
public class XQueryDocument
XQuery document class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.text.DefaultStyledDocument |
|---|
DefaultStyledDocument.AttributeUndoableEdit, DefaultStyledDocument.ElementBuffer, DefaultStyledDocument.ElementSpec, DefaultStyledDocument.SectionElement |
| Nested classes/interfaces inherited from class javax.swing.text.AbstractDocument |
|---|
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElement |
| Field Summary | |
|---|---|
protected MutableAttributeSet |
baseStyle
Base style. |
protected MutableAttributeSet |
commentStyle
Comment style. |
protected MutableAttributeSet |
staticExceptionStyle
Style of a static exception. |
protected Timer |
timer
Timer to update the document. |
protected MutableAttributeSet |
typeExceptionStyle
Style of a type exception. |
protected fr.gael.drb.query.XQueryDocument.DocumentUpdater |
updater
Document syntax updater. |
| Fields inherited from class javax.swing.text.DefaultStyledDocument |
|---|
buffer, BUFFER_SIZE_DEFAULT |
| Fields inherited from class javax.swing.text.AbstractDocument |
|---|
BAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementName |
| Fields inherited from interface javax.swing.text.Document |
|---|
StreamDescriptionProperty, TitleProperty |
| Constructor Summary | |
|---|---|
XQueryDocument()
builds an empty XQueryDocument with default styles. |
|
| Method Summary | |
|---|---|
MutableAttributeSet |
getBaseStyle()
Base style accessor. |
String |
getComment()
Accessor of a comment on the current text. |
Vector |
getCompletion(int offset)
Builds the completion item array with the allowed item just after the specified offset in the text. |
void |
initFont()
Initializes the font. |
void |
insertString(int offs,
String str,
AttributeSet attr)
Updates document structure as a result of text insertion. |
protected void |
parseUpdate(int offs,
int len)
Updates document structure as a result of text change. |
protected void |
parseUpdateOld(int offs,
int len)
Updates document structure as a result of text change. |
void |
remove(int offs,
int len)
Updates document structure as a result of text removal. |
void |
setDefaultFontSize(float font_size)
Sets the default font size. |
| Methods inherited from class javax.swing.text.DefaultStyledDocument |
|---|
addDocumentListener, addStyle, create, createDefaultRoot, getBackground, getCharacterElement, getDefaultRootElement, getFont, getForeground, getLogicalStyle, getParagraphElement, getStyle, getStyleNames, insert, insertUpdate, removeDocumentListener, removeStyle, removeUpdate, setCharacterAttributes, setLogicalStyle, setParagraphAttributes, styleChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.text.Document |
|---|
addUndoableEditListener, createPosition, getEndPosition, getLength, getProperty, getRootElements, getStartPosition, getText, getText, putProperty, removeUndoableEditListener, render |
| Field Detail |
|---|
protected MutableAttributeSet commentStyle
protected MutableAttributeSet typeExceptionStyle
protected MutableAttributeSet staticExceptionStyle
protected MutableAttributeSet baseStyle
protected Timer timer
protected fr.gael.drb.query.XQueryDocument.DocumentUpdater updater
| Constructor Detail |
|---|
public XQueryDocument()
| Method Detail |
|---|
public void initFont()
public MutableAttributeSet getBaseStyle()
public void setDefaultFontSize(float font_size)
font_size - the default font size to be used.
public void insertString(int offs,
String str,
AttributeSet attr)
throws BadLocationException
insertString in interface DocumentinsertString in class AbstractDocumentoffs - insertion offset.str - string to be inserted.attr - the attribute set.
BadLocationException - in case of error.
public void remove(int offs,
int len)
throws BadLocationException
remove in interface Documentremove in class AbstractDocumentoffs - remove offset.len - the length to be removed.
BadLocationException - in case of error.
protected void parseUpdate(int offs,
int len)
offs - the offset.len - the length.
protected void parseUpdateOld(int offs,
int len)
offs - the offset.len - the length.public String getComment()
public Vector getCompletion(int offset)
offset - the insertion offset.
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||