|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPanel
|
+--ArborPanel
This is the main panel (consisting of a split pane with a tree view and a
flattened view of a part of the XML document -- the so-called
ContentRenderPane) used by both the application and applet
versions of "Arboreal."
| Inner classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
| Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
| Field Summary | |
static java.awt.Font |
defaultFont
|
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
ArborPanel(int initWidth,
int initHeight,
int split)
Constructor. |
|
| 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 |
addToCatalog()
Adds the master text to the catalog (and to the catalog DOM, which can be serialized). |
void |
addToView(javax.swing.tree.TreePath[] newPaths)
Adds newPaths to the current selection in the
JTree. |
void |
addToView(javax.swing.tree.TreePath[] newPaths,
boolean keepHighlight)
Adds newPaths to the current selection in the
JTree. |
void |
adjustTree(int level,
boolean render)
Sets the number of levels shown in the tree. |
void |
cleanup()
Cleans up, when it's time for us to give up the ghost. |
void |
clearLinked()
Clears the mode where linked texts are displayed in a split pane. |
void |
commitEdits()
Commits edits on any clients with active edits. |
void |
copyLink()
Copies xlinks for the selected nodes to the system clipboard. |
void |
copyToClipboard()
This method makes the current selection available to the system clipboard. |
void |
doWindowLayout()
Makes necessary changes to the layout of the bottom pane when a slave text is opened or dropped. |
void |
dropSlaveText(SlaveText slave)
Drops a slave text and its associated ContentRenderPane. |
void |
expandPaths(java.util.Enumeration expandPaths)
Expands the enumerated paths in the tree. |
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. |
void |
fireContentUpdateEventIfLocatorPresent(java.lang.String locator)
Fires a ContentUpdateEvent if locator is
represented either as the master text or as a slave text. |
void |
focusGained(java.awt.event.FocusEvent e)
This method is part of the FocusListener interface. |
void |
focusLost(java.awt.event.FocusEvent e)
This method is part of the FocusListener interface. |
void |
forceRedraw()
Forces redraw. |
void |
gc()
Forces garbage collection and displays memory diagnostics. |
ArborAgent |
getArborAgent()
Returns the ArborAgent (ArborApplication or
ArborApplet) responsible for this ArborPanel. |
ArborPanel |
getArborPanel()
This method is part of the ContentOwner interface. |
java.lang.String |
getAuthor()
Returns the author specified in the document metadata. |
java.awt.datatransfer.Clipboard |
getClipboard()
Returns the system clipboard. |
ContentRenderPane |
getContent()
Returns the primary ContentRenderPane. |
static java.awt.Font |
getDefaultFont()
Returns the default font. |
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. |
ContentRenderPane |
getFocusedContent()
Returns the focused content pane (or null). |
java.lang.String |
getLanguage()
Returns the primary language for the document. |
javax.swing.tree.TreePath |
getLeadPath()
Returns the lead path. |
static java.lang.String |
getLinksForPaths(ContentOwner text,
javax.swing.tree.TreePath[] pathArray)
Returns a string containing links for a set of paths. |
java.lang.String |
getLocator()
Returns the locator for this document. |
void |
getMetadata(org.w3c.dom.Document doc,
java.lang.String xmlFilename)
Extracts metadata from the XML document. |
org.apache.oro.text.perl.Perl5Util |
getPerlRE()
Returns our instance of the ORO Perl5 regular expression utility class. |
QueryTable |
getQueryTable()
Returns the QueryTable associated with the main document. |
DOMTreeCellRenderer |
getRenderer()
Returns the DOMTreeCellRenderer. |
int[] |
getRowsForPaths(javax.swing.tree.TreePath[] paths)
Returns an array of rows corresponding to the TreePaths paths. |
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. |
SearchTool |
getSearchTool()
Returns the SearchTool. |
javax.swing.tree.TreePath[] |
getSelectedPaths()
Returns the selected paths. |
java.util.List |
getSlaves()
Returns the list of slave texts. |
int |
getSplit()
Returns the direction of the main split. |
java.lang.String |
getTitle()
Returns the title specified in the document metadata. |
javax.swing.JTree |
getTree()
Returns the JTree in this ArborPanel. |
DOMTreeModel |
getTreeModel()
Returns the JTree model. |
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. |
void |
initDocument(org.w3c.dom.Document doc,
java.net.URL docBase,
java.lang.String xmlFilename)
Initializes a loaded document. |
void |
invertSelection()
Inverts the selection, i.e. |
boolean |
isDirty()
Returns true if the document (DOM) is "dirty" -- that is, if any changes have been made. |
void |
levelDialog()
This method displays the "Show levels" dialog, which allows the user to expand the tree up to depth d, where 0 < d <= DocSpec.MAX_LEVEL. |
void |
loadDocument(org.w3c.dom.Document doc,
java.net.URL docBase,
java.lang.String xmlFilename)
Imports a document and displays its contents in the JTree. |
void |
loadDocument(org.w3c.dom.Document doc,
java.net.URL docBase,
java.lang.String xmlFilename,
java.util.Map entityMap)
Imports a document and displays its contents in the JTree. |
void |
loadLinked()
Sets up the mode where linked texts are displayed in a split pane. |
void |
loadSlaveText()
Allows the user to load a slave text. |
void |
loadText(java.net.URL docBase,
java.lang.String xmlFilename)
Parses a master text from a URL. |
void |
makeNewPathWindow()
Spawns a new frame displaying the selected content. |
static javax.swing.tree.TreePath |
makePath(org.w3c.dom.Node n)
Returns a path that specifies the location of a given DOM node for the JTree. |
void |
makeVisible(javax.swing.tree.TreePath path)
Ensures that a particular path in the tree is visible. |
void |
openLinks()
Allows the users to view the targets of all links present in the selection in the corresponding JTree(s). |
void |
redrawTree()
Destroys all information cached by the JTree. |
void |
refresh()
Refreshes the master text and related content. |
void |
registerEdit()
Registers a client with active edits. |
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(ContentRenderPane c)
Renders the current paths in the ContentRenderPane. |
void |
renderContent(ContentRenderPane c,
javax.swing.tree.TreePath[] paths,
HighlightState highlightState)
Renders paths in the ContentRenderPane. |
void |
repaintHighlights()
Repaints highlights in all content panes. |
void |
selectParent()
Selects the parent of all paths in the current selection; this selection method is additive. |
void |
selectSubtree()
Selects the subtree below all paths in the current selection; this selection method is additive. |
void |
selectXPath()
Allows the user to select part of the tree with an XPath expression. |
void |
setDirty(boolean value)
Sets the "dirty" propery -- that is, whether unsaved changes have been made. |
void |
setDisplay()
Allows the user to set the display filter options. |
void |
setDisplayingHit(boolean value)
Sets whether the panel is displaying a search hit. |
void |
setFontSize(int size)
This method sets the font size in the various rendering panes. |
void |
setSaveFile(java.io.File file)
Sets the File to which the DOM should be saved. |
void |
setUndoState(UndoState undoState)
Stores an UndoState. |
void |
setView(javax.swing.tree.TreePath[] newPaths)
Selects newPaths in the JTree. |
void |
setView(javax.swing.tree.TreePath[] newPaths,
boolean keepHighlight)
Selects newPaths in the JTree. |
void |
setView(javax.swing.tree.TreePath[] newPaths,
ContentRenderPane newContent)
Selects newPaths in the JTree and inserts
newContent as the primary ContentRenderPane. |
void |
setViewAndPreserveExpansionState(javax.swing.tree.TreePath[] newPaths)
Selects newPaths in the JTree. |
void |
showInfo(ContentOwner owner,
java.awt.Container parent)
Displays information for the main text. |
javax.swing.tree.TreePath[] |
sortPaths(javax.swing.tree.TreePath[] unsortedPaths)
Sorts an array of paths in the order in which they appear in the tree rows. |
void |
status(java.lang.String message,
int priority)
Displays a status message. |
void |
switchSplit(int split)
Switches the main split direction (vertical or horizontal). |
void |
synchronizeShowTags()
Ensures that the tag state of all panes is synchronized. |
void |
toggleShowTags()
Toggles show-tags mode for the main view of the master and all slaves. |
void |
toggleTreeView()
Toggles the tree view (XML or rendered). |
java.lang.String |
toString()
|
void |
treeCollapsed(javax.swing.event.TreeExpansionEvent evt)
This method is part of the TreeExpansionListener
interface. |
void |
treeExpanded(javax.swing.event.TreeExpansionEvent evt)
This method is part of the TreeExpansionListener
interface. |
void |
undoEdits()
Requests an "undo" on any clients with active edits. |
void |
unregisterEdit()
Unregisters a client with active edits. |
void |
updatePaths(org.w3c.dom.Node source,
org.w3c.dom.Node target)
Updates the path information when a DOM node has been changed. |
void |
valueChanged(javax.swing.event.TreeSelectionEvent evt)
This method is part of the TreeSelectionListener
interface. |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUIClassID, paramString, updateUI |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static java.awt.Font defaultFont
| Constructor Detail |
public ArborPanel(int initWidth,
int initHeight,
int split)
initHeight - initial height for this panel| Method Detail |
public void switchSplit(int split)
split - VERTICAL or HORIZONTALpublic int getSplit()
public static java.awt.Font getDefaultFont()
public void forceRedraw()
public void loadText(java.net.URL docBase,
java.lang.String xmlFilename)
throws java.lang.Exception
docBase - the base URL for fetching documentsxmlFilename - filename for the master XML text
public void loadDocument(org.w3c.dom.Document doc,
java.net.URL docBase,
java.lang.String xmlFilename)
JTree.doc - DOMdocBase - the base URL for fetching documentsxmlFilename - filename for the master XML text
public void loadDocument(org.w3c.dom.Document doc,
java.net.URL docBase,
java.lang.String xmlFilename,
java.util.Map entityMap)
JTree.doc - DOMdocBase - the base URL for fetching documentsxmlFilename - filename for the master XML textentityMap - entity substitution map
public void initDocument(org.w3c.dom.Document doc,
java.net.URL docBase,
java.lang.String xmlFilename)
doc - DOMdocBase - the base URL for fetching documentsxmlFilename - filename for the master XML textpublic void refresh()
public java.lang.String getXMLFilename()
getXMLFilename in interface ContentOwnerpublic org.w3c.dom.Document getDocument()
getDocument in interface ContentOwnerpublic java.net.URL getDocBase()
getDocBase in interface ContentOwnerpublic DocSpec getDocSpec()
DocSpec.getDocSpec in interface ContentOwnerpublic java.net.URL getScriptBase()
getScriptBase in interface ContentOwner
public void getMetadata(org.w3c.dom.Document doc,
java.lang.String xmlFilename)
doc - XML documentxmlFilename - filename for XML documentpublic 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 void treeExpanded(javax.swing.event.TreeExpansionEvent evt)
TreeExpansionListener
interface.treeExpanded in interface javax.swing.event.TreeExpansionListenerpublic void treeCollapsed(javax.swing.event.TreeExpansionEvent evt)
TreeExpansionListener
interface.treeCollapsed in interface javax.swing.event.TreeExpansionListenerpublic void valueChanged(javax.swing.event.TreeSelectionEvent evt)
TreeSelectionListener
interface.Note to self: should I add some to logic to shorten the rendering operation in the case that we're merely adding paths?
valueChanged in interface javax.swing.event.TreeSelectionListenerpublic javax.swing.tree.TreePath[] sortPaths(javax.swing.tree.TreePath[] unsortedPaths)
unsortedPaths - array of paths to sortpublic void invertSelection()
public void focusGained(java.awt.event.FocusEvent e)
FocusListener interface.focusGained in interface java.awt.event.FocusListenerpublic void focusLost(java.awt.event.FocusEvent e)
FocusListener interface.focusLost in interface java.awt.event.FocusListenerpublic ContentRenderPane getFocusedContent()
public void renderContent(ContentRenderPane c,
javax.swing.tree.TreePath[] paths,
HighlightState highlightState)
paths in the ContentRenderPane.c - a content panepaths - array of paths to renderhighlightState - a highlight state to applypublic void renderContent(ContentRenderPane c)
ContentRenderPane.c - a content panepublic void setFontSize(int size)
size - font size (in points)public void copyToClipboard()
public static java.lang.String getLinksForPaths(ContentOwner text,
javax.swing.tree.TreePath[] pathArray)
text - content ownerpathArray - array of TreePathspublic void copyLink()
public void openLinks()
JTree(s).public void selectSubtree()
public void selectParent()
public void levelDialog()
public void adjustTree(int level,
boolean render)
level - highest level to show (zero-based)render - true if content should be renderedpublic void expandPaths(java.util.Enumeration expandPaths)
expandPaths - tree paths to be expandedpublic ContentRenderPane getContent()
ContentRenderPane.getContent in interface ContentOwnerpublic SearchTool getSearchTool()
SearchTool.public void setDisplayingHit(boolean value)
value - true if displaying a hitpublic java.util.List getSlaves()
public DOMTreeModel getTreeModel()
JTree model.JTree modelpublic javax.swing.JTree getTree()
JTree in this ArborPanel.JTreepublic javax.swing.tree.TreePath[] getSelectedPaths()
public javax.swing.tree.TreePath getLeadPath()
public void gc()
public void makeNewPathWindow()
MultipleViews interface.makeNewPathWindow in interface MultipleViewspublic void loadSlaveText()
public void dropSlaveText(SlaveText slave)
ContentRenderPane.slave - slave text to be droppedpublic void doWindowLayout()
public void toggleShowTags()
public void toggleTreeView()
public void selectXPath()
public ArborPanel getArborPanel()
ContentOwner interface.getArborPanel in interface ContentOwnerArborPanelpublic void addContentUpdateListener(ContentUpdateListener listener)
ContentUpdateEvents.
This method is part of the MultipleViews interface.addContentUpdateListener in interface MultipleViewslistener - listener for ContentUpdateEventspublic void removeContentUpdateListener(ContentUpdateListener listener)
ContentUpdateEvents.
This method is part of the MultipleViews interface.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 fireContentUpdateEventIfLocatorPresent(java.lang.String locator)
ContentUpdateEvent if locator is
represented either as the master text or as a slave text.
This method is part of the MultipleViews interface.
TODO: I would love to remove this method!!!
locator - locator for textpublic void repaintHighlights()
public void setDisplay()
public void redrawTree()
DOMTreeModel.We also set a right-to-left orientation for the component, if needed.
public DOMTreeCellRenderer getRenderer()
DOMTreeCellRenderer.
public void updatePaths(org.w3c.dom.Node source,
org.w3c.dom.Node target)
source - node that was changedtarget - new nodepublic 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 ArborAgent getArborAgent()
ArborAgent (ArborApplication or
ArborApplet) responsible for this ArborPanel.ArborAgent
public void showInfo(ContentOwner owner,
java.awt.Container parent)
owner - ContentOwnerparent - parent for this dialogpublic void loadLinked()
public void clearLinked()
public static javax.swing.tree.TreePath makePath(org.w3c.dom.Node n)
n
public void setView(javax.swing.tree.TreePath[] newPaths,
ContentRenderPane newContent)
newPaths in the JTree and inserts
newContent as the primary ContentRenderPane.newPaths - tree selection pathsnewContent - primary ContentRenderPanepublic void setView(javax.swing.tree.TreePath[] newPaths)
newPaths in the JTree. The content
of the ContentRenderPane is regenerated.newPaths - tree selection pathspublic void setViewAndPreserveExpansionState(javax.swing.tree.TreePath[] newPaths)
newPaths in the JTree. The content
of the ContentRenderPane is regenerated. Branches in the
tree that are already expanded are not collapsed.newPaths - tree selection pathssetView(TreePath[] newPaths)
public void setView(javax.swing.tree.TreePath[] newPaths,
boolean keepHighlight)
newPaths in the JTree. The content
of the ContentRenderPane is regenerated.newPaths - tree selection pathskeepHighlight - true if highlight should be preserved
public void addToView(javax.swing.tree.TreePath[] newPaths,
boolean keepHighlight)
newPaths to the current selection in the
JTree. All content is regenerated.newPaths - tree selection pathskeepHighlight - true if highlight should be preservedpublic void addToView(javax.swing.tree.TreePath[] newPaths)
newPaths to the current selection in the
JTree. All content is regenerated. The highlight is
not preserved.newPaths - tree selection pathspublic void setUndoState(UndoState undoState)
UndoState.setUndoState in interface ContentOwnerundoState - undo state informationpublic UndoState getUndoState()
UndoState.getUndoState in interface ContentOwnerpublic void makeVisible(javax.swing.tree.TreePath path)
path - path to make visiblepublic QueryTable getQueryTable()
QueryTable associated with the main document.getQueryTable in interface ContentOwnerpublic EntityHelper getEntityHelper()
EntityHelper associated with the document.getEntityHelper in interface ContentOwnerpublic void addToCatalog()
public void status(java.lang.String message,
int priority)
message - messagepriority - priority levelpublic org.apache.oro.text.perl.Perl5Util getPerlRE()
public java.awt.datatransfer.Clipboard getClipboard()
public int[] getRowsForPaths(javax.swing.tree.TreePath[] paths)
paths.public void synchronizeShowTags()
public void cleanup()
public 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 registerEdit()
public void unregisterEdit()
public void undoEdits()
public void commitEdits()
public java.lang.String toString()
toString in class java.awt.Component
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||