@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public interface AuthorAccessDeprecated
AuthorAccess
and should no longer be used.Modifier and Type | Method and Description |
---|---|
void |
addAuthorListener(AuthorListener listener)
Deprecated.
|
java.io.File |
chooseFile(java.lang.String title,
java.lang.String[] allowedExtensions,
java.lang.String filterDescr)
Deprecated.
|
java.io.File |
chooseFile(java.lang.String title,
java.lang.String[] allowedExtensions,
java.lang.String filterDescr,
boolean openForSave)
Deprecated.
|
java.net.URL |
chooseURL(java.lang.String title,
java.lang.String[] allowedExtensions,
java.lang.String filterDescr)
Deprecated.
|
java.lang.String |
correctURL(java.lang.String url)
Deprecated.
Use
UtilAccess.correctURL(String) instead. |
void |
deleteSelection()
Deprecated.
Use
WSAuthorEditorPageBase.deleteSelection() instead. |
java.lang.String |
escapeAttributeValue(java.lang.String attributeValue)
Deprecated.
Use
AuthorUtilAccess.escapeAttributeValue(String) instead. |
java.lang.Object[] |
evaluateXPath(java.lang.String xpathExpression,
boolean ignoreTexts,
boolean ignoreCData,
boolean ignoreComments)
Deprecated.
|
AuthorNode[] |
findNodesByXPath(java.lang.String xpathExpression,
boolean ignoreTexts,
boolean ignoreCData,
boolean ignoreComments)
Deprecated.
|
int |
getCaretOffset()
Deprecated.
Use
instead. For example if you
have an AuthorAccess object then use authorAccess.getEditorAccess().getCaretOffset(). |
AuthorChangeTrackingController |
getChangeTrackingController()
Deprecated.
Use
instead. |
java.net.URL |
getEditorLocation()
Deprecated.
Use
WSEditorBase.getEditorLocation() instead. |
java.lang.Object |
getParentFrame()
Deprecated.
Use
WorkspaceUtilities.getParentFrame() instead. |
java.lang.String |
getSelectedText()
Deprecated.
Use
instead. |
int |
getSelectionEnd()
Deprecated.
Use
instead. |
int |
getSelectionStart()
Deprecated.
Use
instead. |
AuthorElement |
getTableCellAbove(AuthorElement cellElement)
Deprecated.
Use
AuthorTableAccess.getTableCellAbove(AuthorElement) instead. |
AuthorElement |
getTableCellAt(int row,
int column,
AuthorElement tableElement)
Deprecated.
|
AuthorElement |
getTableCellBelow(AuthorElement cellElement)
Deprecated.
Use
AuthorTableAccess.getTableCellBelow(AuthorElement) instead. |
int[] |
getTableCellIndex(AuthorElement authorElement)
Deprecated.
Use
AuthorTableAccess.getTableCellIndex(AuthorElement) instead. |
int[] |
getTableColSpanIndices(AuthorElement cellElement)
Deprecated.
|
int |
getTableNumberOfColumns(AuthorElement tableElement)
Deprecated.
|
AuthorElement |
getTableRow(int index,
AuthorElement tableElement)
Deprecated.
Use
AuthorTableAccess.getTableRow(int, AuthorElement) instead. |
int |
getTableRowCount(AuthorElement tableElement)
Deprecated.
Use
AuthorTableAccess.getTableRowCount(AuthorElement) instead. |
int[] |
getWordAtCaret()
Deprecated.
Use
WSTextBasedEditorPage.getWordAtCaret() instead. |
boolean |
hasSelection()
Deprecated.
Use
WSAuthorEditorPageBase.hasSelection() instead. |
boolean |
inInlineContext(int offset)
Deprecated.
Use
AuthorDocumentController.inInlineContext(int) instead. |
void |
insertMultipleElements(AuthorElement parentElement,
java.lang.String[] elementNames,
int[] offsets,
java.lang.String namespace)
Deprecated.
|
void |
insertText(java.lang.String text,
int offset)
Deprecated.
Use
AuthorDocumentController.insertText(int, String) instead. |
void |
insertXMLFragment(java.lang.String xmlFragment,
int offset)
Deprecated.
|
void |
insertXMLFragment(java.lang.String xmlFragment,
java.lang.String xpathLocation,
java.lang.String relativePosition)
Deprecated.
|
boolean |
isStandalone()
Deprecated.
Use
Workspace.isStandalone() instead. |
boolean |
isTrackingChanges()
Deprecated.
Use
ChangeTrackingController.isTrackingChanges() instead. |
java.io.File |
locateFile(java.net.URL url)
Deprecated.
Use
UtilAccess.locateFile(URL) instead. |
java.lang.String |
makeRelative(java.net.URL baseURL,
java.net.URL childURL)
Deprecated.
Use
UtilAccess.makeRelative(URL, URL) instead. |
void |
multipleDelete(AuthorElement parentElement,
int[] startOffsets,
int[] endOffsets)
Deprecated.
|
org.xml.sax.XMLReader |
newNonValidatingXMLReader()
Deprecated.
Use
AuthorUtilAccess.newNonValidatingXMLReader() instead. |
void |
removeAuthorListener(AuthorListener listener)
Deprecated.
|
void |
removeClonedElementAttribute(AuthorElement element,
java.lang.String attrName)
Deprecated.
Use
AuthorElement.removeAttribute(String) instead. |
java.net.URL |
resolvePath(java.net.URL baseURL,
java.lang.String relativeLocation,
boolean entityResolve,
boolean uriResolve)
Deprecated.
|
void |
select(int startOffset,
int endOffset)
Deprecated.
Use
WSAuthorEditorPageBase.select(int, int) instead. |
void |
selectWord()
Deprecated.
Use
WSTextBasedEditorPage.selectWord() instead. |
void |
setCaretPosition(int offset)
Deprecated.
Use
WSTextBasedEditorPage.setCaretPosition(int) instead. |
void |
setClonedElementAttribute(AuthorElement element,
java.lang.String name,
AttrValue attributeValue)
Deprecated.
Use
AuthorElement.setAttribute(String, AttrValue) instead. |
int |
showConfirmDialog(java.lang.String title,
java.lang.String message,
java.lang.String[] buttonNames,
int[] buttonIds)
Deprecated.
|
void |
showErrorMessage(java.lang.String message)
Deprecated.
Use
WorkspaceUtilities.showErrorMessage(String) instead. |
void |
surroundInFragment(java.lang.String xmlFragment,
int startOffset,
int endOffset)
Deprecated.
|
void |
surroundInText(java.lang.String header,
java.lang.String footer,
int startOffset,
int endOffset)
Deprecated.
|
void |
toggleTrackChanges()
Deprecated.
Use
ChangeTrackingController.toggleTrackChanges() instead. |
AuthorViewToModelInfo |
viewToModel(int x,
int y)
Deprecated.
Use
WSAuthorEditorPageBase.viewToModel(int, int) instead. |
@Deprecated int getSelectionStart()
WSAuthorEditorPageBase.getSelectionStart()
instead.@Deprecated int getSelectionEnd()
WSAuthorEditorPageBase.getSelectionEnd()
instead.@Deprecated java.lang.String getSelectedText()
WSAuthorEditorPageBase.getSelectedText()
instead.@Deprecated int getCaretOffset()
WSTextBasedEditorPage.getCaretOffset()
instead. For example if you
have an AuthorAccess object then use authorAccess.getEditorAccess().getCaretOffset().@Deprecated void insertText(java.lang.String text, int offset)
AuthorDocumentController.insertText(int, String)
instead.text
- The text to insert.offset
- The offset of the insertion point, 0 based.@Deprecated void insertXMLFragment(java.lang.String xmlFragment, int offset) throws AuthorOperationException
AuthorDocumentController.insertXMLFragment(String, int)
instead.xmlFragment
- The XML fragment.offset
- The offset of the insertion point, 0 based.AuthorOperationException
- If it could not be inserted.@Deprecated void insertXMLFragment(java.lang.String xmlFragment, java.lang.String xpathLocation, java.lang.String relativePosition) throws AuthorOperationException
AuthorDocumentController.insertXMLFragment(String, String, String)
instead.xpathLocation
is not specified then the XML fragment
will be inserted at the caret position(relativePosition is ignored).
After the operation is performed the caret will be positioned at the end of the inserted XML fragment.
xmlFragment
- The XML fragment.xpathLocation
- The xpath location.relativePosition
- The position relative to the node identified by the xpath location.
Can be one of the constants: AuthorConstants.POSITION_BEFORE, AuthorConstants.POSITION_AFTER,
AuthorConstants.POSITION_INSIDE.AuthorOperationException
- If it could not be inserted.@Deprecated void deleteSelection()
WSAuthorEditorPageBase.deleteSelection()
instead.@Deprecated boolean hasSelection()
WSAuthorEditorPageBase.hasSelection()
instead.true
If there is a selection, false
otherwise.@Deprecated void selectWord()
WSTextBasedEditorPage.selectWord()
instead.@Deprecated void surroundInFragment(java.lang.String xmlFragment, int startOffset, int endOffset) throws AuthorOperationException
AuthorDocumentController.surroundInFragment(String, int, int)
instead.xmlFragment
.
If endOffset < startOffset the xmlFragment
will be inserted at startOffset
.xmlFragment
- The XML fragment which will surround the given offsets.
The first XML fragment leaf(deepest on the first branch) will be the surround point.startOffset
- The start offset of the fragment to be surrounded, 0 based and inclusive.endOffset
- The end offset of the fragment to be surrounded, 0 based and inclusive.AuthorOperationException
- If the fragment between the offsets could not be surrounded.@Deprecated void surroundInText(java.lang.String header, java.lang.String footer, int startOffset, int endOffset)
AuthorDocumentController.surroundInText(String, String, int, int)
instead.header
- The header to be inserted before the surrounded text.footer
- The footer to be inserted after the surrounded text.startOffset
- The start offset of the text to be surrounded, 0 based.endOffset
- The end offset of the text to be surrounded, zero based.@Deprecated void setCaretPosition(int offset)
WSTextBasedEditorPage.setCaretPosition(int)
instead.offset
- The offset where the caret should be positioned, 0 based.@Deprecated void select(int startOffset, int endOffset)
WSAuthorEditorPageBase.select(int, int)
instead.startOffset
- Inclusive start offsetendOffset
- Exclusive end offset@Deprecated int[] getWordAtCaret()
WSTextBasedEditorPage.getWordAtCaret()
instead.null
if the offsets couldn't be obtained.@Deprecated java.lang.Object getParentFrame()
WorkspaceUtilities.getParentFrame()
instead.or @link java.awt.Frame (when running as a JApplet)
) of the Oxygen application or the parent shell(Shell)
if this is the Eclipse implementation.@Deprecated java.lang.String makeRelative(java.net.URL baseURL, java.net.URL childURL)
UtilAccess.makeRelative(URL, URL)
instead.The child path is relatively expressed to the base file. If is not possible, the child URL is returned.
Ex: Base: "file://c:/projects/exml/base.prx", Child "file://c:/projects/exml/test/someTest.xml"
Result: "test/someTest.xml"
baseURL
- The base URL.childURL
- The child URL.childURL
if a relative path
cannot be computed.@Deprecated java.lang.String escapeAttributeValue(java.lang.String attributeValue)
AuthorUtilAccess.escapeAttributeValue(String)
instead.attributeValue
- The attribute value.@Deprecated java.net.URL getEditorLocation()
WSEditorBase.getEditorLocation()
instead.@Deprecated java.io.File locateFile(java.net.URL url)
UtilAccess.locateFile(URL)
instead.url
- The URL to be checked.null
if URL is remote.@Deprecated java.io.File chooseFile(java.lang.String title, java.lang.String[] allowedExtensions, java.lang.String filterDescr, boolean openForSave)
WorkspaceUtilities.chooseFile(String, String[], String, boolean)
instead.title
- The file chooser title.allowedExtensions
- Allowed file extensions.filterDescr
- Description for this file filter.openForSave
- True to show the file chooser for saving, false to use it for openingnull
if user canceled the dialog...@Deprecated java.io.File chooseFile(java.lang.String title, java.lang.String[] allowedExtensions, java.lang.String filterDescr)
WorkspaceUtilities.chooseURL(String, String[], String)
instead.title
- The file chooser title.allowedExtensions
- Allowed file extensions.filterDescr
- Description for this file filter.null
if user canceled the dialog...@Deprecated java.net.URL chooseURL(java.lang.String title, java.lang.String[] allowedExtensions, java.lang.String filterDescr)
WorkspaceUtilities.chooseURL(String, String[], String)
instead.title
- The file chooser title.allowedExtensions
- Allowed extensions.filterDescr
- Description for this file filter.null
if user canceled the dialog...@Deprecated AuthorElement getTableCellAbove(AuthorElement cellElement)
AuthorTableAccess.getTableCellAbove(AuthorElement)
instead.cellElement
- The table cell element.null
.@Deprecated AuthorElement getTableCellBelow(AuthorElement cellElement)
AuthorTableAccess.getTableCellBelow(AuthorElement)
instead.cellElement
- The table cell element.null
.@Deprecated int[] getTableCellIndex(AuthorElement authorElement)
AuthorTableAccess.getTableCellIndex(AuthorElement)
instead.authorElement
- The element.null
.@Deprecated AuthorElement getTableCellAt(int row, int column, AuthorElement tableElement)
AuthorTableAccess.getTableCellAt(int, int, AuthorElement)
instead.row
- The row, 0 based.column
- The column, 0 based.tableElement
- The table element.null
if it could not be
found.@Deprecated AuthorElement getTableRow(int index, AuthorElement tableElement)
AuthorTableAccess.getTableRow(int, AuthorElement)
instead.index
- The index of the row to find, 0 based.tableElement
- The table element.null
.@Deprecated int getTableRowCount(AuthorElement tableElement)
AuthorTableAccess.getTableRowCount(AuthorElement)
instead.tableElement
- The table element.@Deprecated int getTableNumberOfColumns(AuthorElement tableElement)
AuthorTableAccess.getTableNumberOfColumns(AuthorElement)
instead.tableElement
- The table element.@Deprecated int[] getTableColSpanIndices(AuthorElement cellElement)
AuthorTableAccess.getTableColSpanIndices(AuthorElement)
instead.cellElement
- The table cell element.null
.@Deprecated boolean isStandalone()
Workspace.isStandalone()
instead.true
if this is the standalone Oxygen version,
false
if this is the Oxygen Eclipse plugin version.@Deprecated boolean inInlineContext(int offset) throws javax.swing.text.BadLocationException
AuthorDocumentController.inInlineContext(int)
instead.offset
is inline or not.
For example a text paragraph determines an inline context,
and for an offset inside this paragraph the method will return true
.
For an offset between two paragraphs(block boxes) the method will returns false
.offset
- The offset in the document, zero based.true
if the given offset is inside an inline context.
false
otherwise.javax.swing.text.BadLocationException
- When the offset does not exists in document model.@Deprecated void insertMultipleElements(AuthorElement parentElement, java.lang.String[] elementNames, int[] offsets, java.lang.String namespace)
AuthorDocumentController.insertMultipleElements(AuthorElement, String[], int[], String)
instead.parentElement
- The element that will be the parent of the inserted elements.elementNames
- The element names to be inserted.offsets
- The absolute offsets where the elements will be inserted.namespace
- The namespace of the new inserted elements. null
for default namespace.@Deprecated void multipleDelete(AuthorElement parentElement, int[] startOffsets, int[] endOffsets)
AuthorDocumentController.multipleDelete(AuthorElement, int[], int[])
instead.parentElement
- The element that contains all the deleted intervals.startOffsets
- The start offset for each interval. Must be in document order.endOffsets
- The end offset for each interval. Must be in document order.@Deprecated void removeClonedElementAttribute(AuthorElement element, java.lang.String attrName)
AuthorElement.removeAttribute(String)
instead.element
- Element node.attrName
- The attribute name to remove.@Deprecated void setClonedElementAttribute(AuthorElement element, java.lang.String name, AttrValue attributeValue)
AuthorElement.setAttribute(String, AttrValue)
instead.element
- Element node.name
- Name of the attribute to be set.attributeValue
- The attribute value to set. Must not be null
.@Deprecated int showConfirmDialog(java.lang.String title, java.lang.String message, java.lang.String[] buttonNames, int[] buttonIds)
WorkspaceUtilities.showConfirmDialog(String, String, String[], int[])
instead.title
- The dialog title.message
- The message to be presented to the user.buttonNames
- The names of the buttons representing the choices.buttonIds
- The id for each button. Used to identify which button was pressed.
All ids must be greater or equal to 0.@Deprecated org.xml.sax.XMLReader newNonValidatingXMLReader()
AuthorUtilAccess.newNonValidatingXMLReader()
instead.@Deprecated java.lang.String correctURL(java.lang.String url)
UtilAccess.correctURL(String)
instead.url
- The URL to be corrected.@Deprecated void showErrorMessage(java.lang.String message)
WorkspaceUtilities.showErrorMessage(String)
instead.message
- The error message to be presented.@Deprecated java.net.URL resolvePath(java.net.URL baseURL, java.lang.String relativeLocation, boolean entityResolve, boolean uriResolve)
AuthorUtilAccess.resolvePath(URL, String, boolean, boolean)
instead.baseURL
- The URL of the current opened XML file.relativeLocation
- The relative href.entityResolve
- True to pass through catalog entity resolveruriResolve
- True to pass through catalog URI resolver.@Deprecated AuthorNode[] findNodesByXPath(java.lang.String xpathExpression, boolean ignoreTexts, boolean ignoreCData, boolean ignoreComments) throws AuthorOperationException
AuthorDocumentController.findNodesByXPath(String, boolean, boolean, boolean)
instead.
//node()
will return an array with all the AuthorNode's in the document.
count(//node())
will return an empty array.xpathExpression
- The XPath expression.ignoreTexts
- If true
Author text nodes will not be returned.ignoreCData
- If true
Author CDATA sections will not be returned.ignoreComments
- If true
Author comments will not be returned.AuthorOperationException
- If the XPath expression failed to be evaluated.@Deprecated java.lang.Object[] evaluateXPath(java.lang.String xpathExpression, boolean ignoreTexts, boolean ignoreCData, boolean ignoreComments) throws AuthorOperationException
AuthorDocumentController.evaluateXPath(String, boolean, boolean, boolean)
instead.
//node()
will return an array with all the Author DOM Node wrappers in the document.
count(//node())
will return an array having a single component representing the number of nodes in the document.
//node(), count(//node())
will return an array containing all the Author DOM Node wrappers in the document and having as last component
the total number of nodes.xpathExpression
- The XPath expression.ignoreTexts
- If true
DOM text nodes will not be returned.ignoreCData
- If true
DOM CDATA sections will not be returned.ignoreComments
- If true
DOM comments will not be returned.AuthorOperationException
- If the XPath expression failed to be evaluated.@Deprecated void addAuthorListener(AuthorListener listener)
AuthorDocumentController.addAuthorListener(AuthorListener)
intead.listener
- The listener to be added.@Deprecated void removeAuthorListener(AuthorListener listener)
AuthorDocumentController.removeAuthorListener(AuthorListener)
intead.listener
- The listener to be removed.@Deprecated AuthorViewToModelInfo viewToModel(int x, int y)
WSAuthorEditorPageBase.viewToModel(int, int)
instead.x
- The "x" coordinate relative to the viewport origin.y
- The "y" coordinate relative to the viewport origin.@Deprecated boolean isTrackingChanges()
ChangeTrackingController.isTrackingChanges()
instead.true
if the current editor is in change tracking modetrue
if the current editor is in change tracking mode@Deprecated void toggleTrackChanges()
ChangeTrackingController.toggleTrackChanges()
instead.@Deprecated AuthorChangeTrackingController getChangeTrackingController()
AuthorAccess.getReviewController()
instead.null
.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.