com.raritantechnologies.searchApp.swing
Class SwingResult

java.lang.Object
  extended bycom.raritantechnologies.searchApp.BasicResult
      extended bycom.raritantechnologies.searchApp.swing.SwingResult
All Implemented Interfaces:
javax.swing.text.Document, IResult, javax.swing.text.StyledDocument

public abstract class SwingResult
extends BasicResult
implements javax.swing.text.StyledDocument

RTI Result Object that mirrors a Swing Document object.


Field Summary
 
Fields inherited from class com.raritantechnologies.searchApp.BasicResult
fieldValues
 
Fields inherited from interface javax.swing.text.Document
StreamDescriptionProperty, TitleProperty
 
Constructor Summary
SwingResult()
           
 
Method Summary
 void addDocumentListener(javax.swing.event.DocumentListener listener)
           
 javax.swing.text.Style addStyle(java.lang.String nm, javax.swing.text.Style parent)
           
 void addUndoableEditListener(javax.swing.event.UndoableEditListener listener)
           
 javax.swing.text.Position createPosition(int offs)
           
 java.awt.Color getBackground(javax.swing.text.AttributeSet attr)
           
 javax.swing.text.Element getCharacterElement(int pos)
           
 javax.swing.text.Element getDefaultRootElement()
           
 javax.swing.text.Position getEndPosition()
           
 java.awt.Font getFont(javax.swing.text.AttributeSet attr)
           
 java.awt.Color getForeground(javax.swing.text.AttributeSet attr)
           
 int getLength()
           
 javax.swing.text.Style getLogicalStyle(int p)
           
 javax.swing.text.Element getParagraphElement(int pos)
           
 java.lang.Object getProperty(java.lang.Object key)
           
 javax.swing.text.Element[] getRootElements()
           
 javax.swing.text.Position getStartPosition()
           
 javax.swing.text.Style getStyle(java.lang.String nm)
           
 java.lang.String getText(int offset, int length)
           
 void getText(int offset, int length, javax.swing.text.Segment txt)
           
 void insertString(int offset, java.lang.String str, javax.swing.text.AttributeSet attrSet)
           
 void putProperty(java.lang.Object key, java.lang.Object value)
           
 void remove(int offs, int len)
           
 void removeDocumentListener(javax.swing.event.DocumentListener listener)
           
 void removeStyle(java.lang.String nm)
           
 void removeUndoableEditListener(javax.swing.event.UndoableEditListener listener)
           
 void render(java.lang.Runnable r)
           
 void setCharacterAttributes(int offset, int length, javax.swing.text.AttributeSet attrSet, boolean replace)
           
 void setLogicalStyle(int pos, javax.swing.text.Style s)
           
 void setParagraphAttributes(int offset, int length, javax.swing.text.AttributeSet attrSet, boolean replace)
           
 
Methods inherited from class com.raritantechnologies.searchApp.BasicResult
addNestedResult, addNestedResults, addTree, addValue, clearValue, getDOM, getFieldNames, getFullTextFormats, getIDField, getNestedFieldNames, getNestedResults, getResultSet, getSearchSource, getSearchSourceName, getTitleField, getTree, getTreeNames, getURLField, getValue, getValue, getValues, getXML, getXML, getXML, getXML, hasMultipleValues, hasNestedResults, setIDField, setNestedResults, setSearchSourceName, setTitleField, setURLField, setValue, setValues, setWrapCData, writeFullText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingResult

public SwingResult()
Method Detail

getLength

public int getLength()
Specified by:
getLength in interface javax.swing.text.Document

addDocumentListener

public void addDocumentListener(javax.swing.event.DocumentListener listener)
Specified by:
addDocumentListener in interface javax.swing.text.Document

removeDocumentListener

public void removeDocumentListener(javax.swing.event.DocumentListener listener)
Specified by:
removeDocumentListener in interface javax.swing.text.Document

addUndoableEditListener

public void addUndoableEditListener(javax.swing.event.UndoableEditListener listener)
Specified by:
addUndoableEditListener in interface javax.swing.text.Document

removeUndoableEditListener

public void removeUndoableEditListener(javax.swing.event.UndoableEditListener listener)
Specified by:
removeUndoableEditListener in interface javax.swing.text.Document

getProperty

public java.lang.Object getProperty(java.lang.Object key)
Specified by:
getProperty in interface javax.swing.text.Document

putProperty

public void putProperty(java.lang.Object key,
                        java.lang.Object value)
Specified by:
putProperty in interface javax.swing.text.Document

remove

public void remove(int offs,
                   int len)
            throws javax.swing.text.BadLocationException
Specified by:
remove in interface javax.swing.text.Document
Throws:
javax.swing.text.BadLocationException

insertString

public void insertString(int offset,
                         java.lang.String str,
                         javax.swing.text.AttributeSet attrSet)
                  throws javax.swing.text.BadLocationException
Specified by:
insertString in interface javax.swing.text.Document
Throws:
javax.swing.text.BadLocationException

getText

public java.lang.String getText(int offset,
                                int length)
                         throws javax.swing.text.BadLocationException
Specified by:
getText in interface javax.swing.text.Document
Throws:
javax.swing.text.BadLocationException

getText

public void getText(int offset,
                    int length,
                    javax.swing.text.Segment txt)
             throws javax.swing.text.BadLocationException
Specified by:
getText in interface javax.swing.text.Document
Throws:
javax.swing.text.BadLocationException

getStartPosition

public javax.swing.text.Position getStartPosition()
Specified by:
getStartPosition in interface javax.swing.text.Document

getEndPosition

public javax.swing.text.Position getEndPosition()
Specified by:
getEndPosition in interface javax.swing.text.Document

createPosition

public javax.swing.text.Position createPosition(int offs)
                                         throws javax.swing.text.BadLocationException
Specified by:
createPosition in interface javax.swing.text.Document
Throws:
javax.swing.text.BadLocationException

getRootElements

public javax.swing.text.Element[] getRootElements()
Specified by:
getRootElements in interface javax.swing.text.Document

getDefaultRootElement

public javax.swing.text.Element getDefaultRootElement()
Specified by:
getDefaultRootElement in interface javax.swing.text.Document

render

public void render(java.lang.Runnable r)
Specified by:
render in interface javax.swing.text.Document

addStyle

public javax.swing.text.Style addStyle(java.lang.String nm,
                                       javax.swing.text.Style parent)
Specified by:
addStyle in interface javax.swing.text.StyledDocument

removeStyle

public void removeStyle(java.lang.String nm)
Specified by:
removeStyle in interface javax.swing.text.StyledDocument

getStyle

public javax.swing.text.Style getStyle(java.lang.String nm)
Specified by:
getStyle in interface javax.swing.text.StyledDocument

setCharacterAttributes

public void setCharacterAttributes(int offset,
                                   int length,
                                   javax.swing.text.AttributeSet attrSet,
                                   boolean replace)
Specified by:
setCharacterAttributes in interface javax.swing.text.StyledDocument

setParagraphAttributes

public void setParagraphAttributes(int offset,
                                   int length,
                                   javax.swing.text.AttributeSet attrSet,
                                   boolean replace)
Specified by:
setParagraphAttributes in interface javax.swing.text.StyledDocument

setLogicalStyle

public void setLogicalStyle(int pos,
                            javax.swing.text.Style s)
Specified by:
setLogicalStyle in interface javax.swing.text.StyledDocument

getLogicalStyle

public javax.swing.text.Style getLogicalStyle(int p)
Specified by:
getLogicalStyle in interface javax.swing.text.StyledDocument

getParagraphElement

public javax.swing.text.Element getParagraphElement(int pos)
Specified by:
getParagraphElement in interface javax.swing.text.StyledDocument

getCharacterElement

public javax.swing.text.Element getCharacterElement(int pos)
Specified by:
getCharacterElement in interface javax.swing.text.StyledDocument

getForeground

public java.awt.Color getForeground(javax.swing.text.AttributeSet attr)
Specified by:
getForeground in interface javax.swing.text.StyledDocument

getBackground

public java.awt.Color getBackground(javax.swing.text.AttributeSet attr)
Specified by:
getBackground in interface javax.swing.text.StyledDocument

getFont

public java.awt.Font getFont(javax.swing.text.AttributeSet attr)
Specified by:
getFont in interface javax.swing.text.StyledDocument