|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.japisoft.editix.plugin.EditixDocument
public class EditixDocument
Here a facility class for working with one document.
Method Summary | |
---|---|
int |
getCaretLocation()
|
org.w3c.dom.Document |
getDOMContent()
|
java.lang.String |
getLocation()
|
java.lang.String |
getTextContent()
|
java.lang.String |
getTextSelection()
|
java.lang.String |
getType()
|
javax.swing.text.JTextComponent |
getUIComponent()
|
void |
insertTextAt(int location,
java.lang.String content)
Insert a new content at this location |
void |
replaceTextSelection(java.lang.String content)
Replace the selection by this content |
void |
setDomContent(org.w3c.dom.Document content)
|
void |
setLocation(java.lang.String location)
|
void |
setTextContent(java.lang.String content)
Replace the text content by this one. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String getType()
public java.lang.String getLocation()
public int getCaretLocation()
public void setLocation(java.lang.String location)
location
- Set a default locationpublic java.lang.String getTextContent()
null
for no current documentpublic void setTextContent(java.lang.String content)
content
- New text content.public java.lang.String getTextSelection()
public void replaceTextSelection(java.lang.String content)
public void insertTextAt(int location, java.lang.String content)
public org.w3c.dom.Document getDOMContent() throws java.lang.Exception
null
is returned for no current document
java.lang.Exception
- if the document can't be parsed to DOMpublic void setDomContent(org.w3c.dom.Document content) throws java.lang.Exception
content
- The new document content as a DOM object
java.lang.Exception
- if the document can't be serialized to a textpublic javax.swing.text.JTextComponent getUIComponent()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |