@API(type=NOT_EXTENDABLE, src=PRIVATE) public class DITAMapTreeComponentProvider extends ro.sync.ecss.extensions.api.component.InternalComponentProvider implements ComponentProvider
Modifier and Type | Field and Description |
---|---|
protected boolean |
detectionFinished
True if the detection finished
|
protected static ro.sync.exml.MessageBundle |
messages
The messages resource bundle.
|
Constructor and Description |
---|
DITAMapTreeComponentProvider(ro.sync.ecss.extensions.api.component.ditamap.DITAMapComponentEditorManager parentEditorManager,
ro.sync.exml.editor.EditorManager mainFileOpener,
java.awt.Frame parentFrame)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addDITAMapTreeComponentListener(DITAMapTreeComponentListener listener)
Adds a component listener.
|
java.io.Reader |
createReader()
Create a reader over the editor's current page content
|
WSDITAMapEditorPage |
getDITAAccess()
Get the page access used to perform various operations on the DITA Map tree.
|
java.util.Map<java.lang.String,javax.swing.AbstractAction> |
getDITACommonActions()
Deprecated.
Please use instead the method getDITAAccess().getActionsProvider().getActions().
|
java.awt.Component |
getEditorComponent()
Get the main editor panel.
|
protected ro.sync.exml.editor.AbstractEditor |
getEditorKey() |
java.awt.Component |
getStatusComponent()
Get the status panel which shows the status of the edited document.
|
WSEditor |
getWSEditorAccess()
Get the access to the WS Editor.
|
boolean |
isModified() |
void |
load(java.net.URL url,
java.io.Reader reader)
Sets the content to edit.
|
void |
print(boolean preview)
Print the DITA Map component content.
|
void |
removeAuthorComponentListener(DITAMapTreeComponentListener listener)
Removes a component listener.
|
void |
save()
Save the content back to the original URL from where it was loaded using the internal support.
|
void |
setEditorPopUpCustomizer(DITAMapPopupMenuCustomizer popUpCustomizer)
The Pop-up customizer can be used to add/remove actions from the pop-up menu in the DITA Map tree
editor before showing it.
|
void |
setModified(boolean modified)
Sets the modified status.
|
protected static final ro.sync.exml.MessageBundle messages
protected boolean detectionFinished
public DITAMapTreeComponentProvider(ro.sync.ecss.extensions.api.component.ditamap.DITAMapComponentEditorManager parentEditorManager, ro.sync.exml.editor.EditorManager mainFileOpener, java.awt.Frame parentFrame) throws AuthorComponentException
parentEditorManager
- The parent editor managermainFileOpener
- The main file openerparentFrame
- The parent frame.AuthorComponentException
public void save()
public void load(java.net.URL url, java.io.Reader reader) throws AuthorComponentException
This does not guarantee that the set content has been interpreted, you should set an
AuthorComponentListener
and listen for documentTypeChanged()
before using
the author extension actions.
load
in interface ComponentProvider
url
- URL to load, can be null
if the reader is specified
If no XML content reader is given, the URL will be used both to obtain the
content and to solve relative references (eg: images).
If the XML content reader is also given, the URL will only be used to solve
relative references from the file.reader
- The reader.AuthorComponentException
- When there was a load problem (eg: IOException).public java.io.Reader createReader()
public void addDITAMapTreeComponentListener(DITAMapTreeComponentListener listener)
listener
- The listener.public void removeAuthorComponentListener(DITAMapTreeComponentListener listener)
listener
- The listener.public java.awt.Component getEditorComponent()
ComponentProvider
getEditorComponent
in interface ComponentProvider
public java.awt.Component getStatusComponent()
ComponentProvider
getStatusComponent
in interface ComponentProvider
@Deprecated public java.util.Map<java.lang.String,javax.swing.AbstractAction> getDITACommonActions()
public boolean isModified()
true
if the component is modified.public void setModified(boolean modified)
modified
- true
to flag as modified.public WSEditor getWSEditorAccess()
getWSEditorAccess
in interface ComponentProvider
protected ro.sync.exml.editor.AbstractEditor getEditorKey()
getEditorKey
in class ro.sync.ecss.extensions.api.component.InternalComponentProvider
public WSDITAMapEditorPage getDITAAccess()
public void setEditorPopUpCustomizer(DITAMapPopupMenuCustomizer popUpCustomizer)
popUpCustomizer
- The pop Up Customizer.public void print(boolean preview)
print
in interface ComponentProvider
preview
- true
to show the Print Preview dialog, false
to show the Print dialog.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.