|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--SlaveText
This class represents a text that is the "slave" of a "master" text.
(How Hegelian, no?) Within Arboreal, slave texts are laid out horizontally
in the lower portion of the same ArborPanel as their master.
| Constructor Summary | |
SlaveText(ArborPanel panel,
java.net.URL slaveURL,
java.net.URL mapURL)
|
|
| Method Summary | |
void |
acquireEditLock()
Acquires an edit lock, preventing other views from editing the content. |
void |
addContentUpdateListener(ContentUpdateListener listener)
Registers an object to receive ContentUpdateEvents. |
void |
exposeEditRegister(java.util.List editRegister)
Exposes the editRegister, so that clients may examine it. |
void |
exposeNodeRemapping(java.util.Map nodeRemapping)
Make a node remapping table available to clients. |
void |
fireContentUpdateEvent(int eventID)
Sends a ContentUpdateEvent to all listeners. |
ArborPanel |
getArborPanel()
Returns the parent ArborPanel. |
java.lang.String |
getAuthor()
Returns the author specified in the document metadata. |
ContentRenderPane |
getContent()
Returns the associated ContentRenderPane. |
java.net.URL |
getDocBase()
Returns the base URL for loading documents. |
DocSpec |
getDocSpec()
Returns the DocSpec. |
org.w3c.dom.Document |
getDocument()
Returns the already-parsed document. |
java.util.List |
getEditRegister()
Retrieves the exposed editRegister. |
EntityHelper |
getEntityHelper()
Returns the EntityHelper associated with the document. |
java.lang.String |
getLanguage()
Returns the primary language for the document. |
java.lang.String |
getLocator()
Returns the locator for this document. |
TextMapping |
getMapping()
Returns the TextMapping for this text. |
void |
getMetadata(org.w3c.dom.Document doc,
java.lang.String xmlFilename)
Extracts metadata from the XML document. |
org.w3c.dom.Node[] |
getNodes()
Returns the displayed nodes. |
QueryTable |
getQueryTable()
Returns the QueryTable associated with the slave document. |
java.io.File |
getSaveFile()
Returns the File to which the DOM should be saved. |
java.net.URL |
getScriptBase()
Returns the base URL for running scripts. |
java.lang.String |
getTitle()
Returns the title specified in the document metadata. |
UndoState |
getUndoState()
Returns a saved UndoState. |
java.lang.String |
getXMLFilename()
Returns the filename for the XML document. |
boolean |
hasEditLock()
Returns true if an edit lock has been acquired on the content. |
boolean |
isDirty()
Returns true if the document (DOM) is "dirty" -- that is, if any changes have been made. |
void |
makeNewPathWindow()
Spawns a new frame displaying the selected content. |
void |
mapNodes(java.util.List sources)
Sets nodes to show from a list of elements that get mapped through a TextMapping. |
org.w3c.dom.Document |
parseDocument()
Parse the XML document. |
void |
releaseEditLock()
Releases an edit lock, allowing other views to acquire a lock. |
org.w3c.dom.Node |
remapNode(org.w3c.dom.Node source)
Allows clients to obtain the remapping for a node. |
void |
removeContentUpdateListener(ContentUpdateListener listener)
Unregisters an object for receiving ContentUpdateEvents. |
void |
renderContent()
|
void |
setDirty(boolean value)
Sets the "dirty" propery -- that is, whether unsaved changes have been made. |
void |
setSaveFile(java.io.File file)
Sets the File to which the DOM should be saved. |
void |
setUndoState(UndoState undoState)
Stores an UndoState. |
void |
showNodes(org.w3c.dom.Node[] nodes)
Sets the nodes to show. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SlaveText(ArborPanel panel,
java.net.URL slaveURL,
java.net.URL mapURL)
throws TextParseException,
MappingParseException
| Method Detail |
public org.w3c.dom.Document parseDocument()
throws TextParseException
public org.w3c.dom.Document getDocument()
getDocument in interface ContentOwner
public void getMetadata(org.w3c.dom.Document doc,
java.lang.String xmlFilename)
doc - XML documentxmlFilename - filename for XML documentpublic ContentRenderPane getContent()
ContentRenderPane.getContent in interface ContentOwnerpublic void renderContent()
public void showNodes(org.w3c.dom.Node[] nodes)
nodes - nodes to showpublic void mapNodes(java.util.List sources)
TextMapping.sources - source nodes to be mappedpublic TextMapping getMapping()
TextMapping for this text.public org.w3c.dom.Node[] getNodes()
public java.net.URL getDocBase()
getDocBase in interface ContentOwnerpublic DocSpec getDocSpec()
DocSpec.getDocSpec in interface ContentOwnerpublic java.net.URL getScriptBase()
getScriptBase in interface ContentOwnerpublic java.lang.String getXMLFilename()
getXMLFilename in interface ContentOwnerpublic java.lang.String getLanguage()
getLanguage in interface ContentOwnerpublic java.lang.String getAuthor()
getAuthor in interface ContentOwnerpublic java.lang.String getTitle()
getTitle in interface ContentOwnerpublic java.lang.String getLocator()
getLocator in interface ContentOwnerpublic ArborPanel getArborPanel()
ArborPanel.getArborPanel in interface ContentOwnerArborPanelpublic QueryTable getQueryTable()
QueryTable associated with the slave document.getQueryTable in interface ContentOwnerpublic EntityHelper getEntityHelper()
EntityHelper associated with the document.getEntityHelper in interface ContentOwnerpublic void setDirty(boolean value)
setDirty in interface ContentOwnervalue - true if changes madepublic boolean isDirty()
isDirty in interface ContentOwnerpublic java.io.File getSaveFile()
File to which the DOM should be saved.getSaveFile in interface ContentOwnerpublic void setSaveFile(java.io.File file)
File to which the DOM should be saved.setSaveFile in interface ContentOwnerfile - save filepublic void addContentUpdateListener(ContentUpdateListener listener)
ContentUpdateEvents.addContentUpdateListener in interface MultipleViewslistener - listener for ContentUpdateEventspublic void removeContentUpdateListener(ContentUpdateListener listener)
ContentUpdateEvents.removeContentUpdateListener in interface MultipleViewslistener - listener for ContentUpdateEventspublic void fireContentUpdateEvent(int eventID)
ContentUpdateEvent to all listeners.
This method is part of the MultipleViews interface.fireContentUpdateEvent in interface MultipleViewseventID - see constants in ContentUpdateEventpublic void makeNewPathWindow()
MultipleViews interface.makeNewPathWindow in interface MultipleViewspublic void exposeNodeRemapping(java.util.Map nodeRemapping)
ContentUpdateEvent.
This method is part of the MultipleViews interface.exposeNodeRemapping in interface MultipleViewsnodeRemapping - node to node mappingpublic org.w3c.dom.Node remapNode(org.w3c.dom.Node source)
MultipleViews interface.remapNode in interface MultipleViewssource - source node
public void acquireEditLock()
throws IllegalEditException
MultipleViews interface.acquireEditLock in interface MultipleViews
public void releaseEditLock()
throws IllegalEditException
MultipleViews interface.releaseEditLock in interface MultipleViewspublic boolean hasEditLock()
MultipleViews interface.hasEditLock in interface MultipleViewspublic void exposeEditRegister(java.util.List editRegister)
editRegister, so that clients may examine it.
This method is part of the MultipleViews interface.exposeEditRegister in interface MultipleViewseditRegister - edit registerpublic java.util.List getEditRegister()
editRegister.
This method is part of the MultipleViews interface.getEditRegister in interface MultipleViewspublic void setUndoState(UndoState undoState)
UndoState.setUndoState in interface ContentOwnerundoState - undo state informationpublic UndoState getUndoState()
UndoState.getUndoState in interface ContentOwnerpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||