Class AuthorComponentProvider

java.lang.Object
ro.sync.ecss.extensions.api.component.InternalComponentProvider
ro.sync.ecss.extensions.api.component.AbstractComponentProvider
ro.sync.ecss.extensions.api.component.AuthorComponentProvider
All Implemented Interfaces:
ComponentProvider, EditorComponentProvider, DisplayModeConstants

@API(type=NOT_EXTENDABLE, src=PRIVATE) public class AuthorComponentProvider extends AbstractComponentProvider
A component encapsulating all the visual editing part. Developers can set the XML and CSS files, and access the document through the AuthorAccess API.
  • Method Details

    • createEditor

      protected ro.sync.exml.editor.AbstractEditor createEditor(ro.sync.exml.workspace.impl.component.BaseComponentEditorManager parentEditorManager, Frame parentFrame, String[] allowedPages, String initialPage, String contentType) throws AuthorComponentException
      Description copied from class: AbstractComponentProvider
      Create an editor
      Specified by:
      createEditor in class AbstractComponentProvider
      Parameters:
      parentEditorManager - The view manager.
      parentFrame - View's parent frame.
      allowedPages - The enumeration of allowed pages.
      initialPage - The initial page. Can be null
      contentType - The content type of the editor.
      Returns:
      The new created editor.
      Throws:
      AuthorComponentException
      See Also:
    • setEditorPopUpCustomizer

      @Deprecated public void setEditorPopUpCustomizer(PopupMenuCustomizer popUpCustomizer)
      Deprecated.
      Please use instead the method ((WSAuthorEditorPage)getWSEditorAccess().getCurrentPage())addPopUpMenuCustomizer(AuthorPopupMenuCustomizer popUpCustomizer)
      The Pop-up customizer can be used to add/remove actions from the pop-up menu in the Author page editor before showing it. If everything is removed then the menu will not be shown.
      Parameters:
      popUpCustomizer - The pop Up Customizer.
    • setOutlinerPopUpCustomizer

      @Deprecated public void setOutlinerPopUpCustomizer(PopupMenuCustomizer popUpCustomizer)
      Deprecated.
      Please use instead the method ((WSAuthorComponentEditorPage)getWSEditorAccess().getCurrentPage()).setOutlinerPopUpCustomizer();
      The Pop-up customizer can be used to add/remove actions from the pop-up menu in the Author Outliner view before showing it. If everything is removed then the menu will not be shown.
      Parameters:
      popUpCustomizer - The pop Up Customizer.
    • showBreadCrumb

      @Deprecated public void showBreadCrumb(boolean showBreadCrumb)
      Deprecated.
      Please use instead the method ((WSAuthorComponentEditorPage)getWSEditorAccess().getCurrentPage()).showBreadCrumbPanel();
      Show or hide the Bread Crumb panel in Author component.
      Parameters:
      showBreadCrumb - true to show the Bread Crumb.
      Since:
      14.1
    • setBreadCrumbPopUpCustomizer

      @Deprecated public void setBreadCrumbPopUpCustomizer(PopupMenuCustomizer popUpCustomizer)
      Deprecated.
      Please use instead the method ((WSAuthorComponentEditorPage)getWSEditorAccess().getCurrentPage()).setBreadCrumbPopUpCustomizer();
      The Pop-up customizer can be used to add/remove actions from the pop-up menu in the Author bread crumb before showing it. If everything is removed then the menu will not be shown.
      Parameters:
      popUpCustomizer - The pop Up Customizer.
    • createExtensionActionsToolbars

      @Deprecated public List<JToolBar> createExtensionActionsToolbars()
      Deprecated.
      Please use instead the method ((WSAuthorComponentEditorPage)getWSEditorAccess().getCurrentPage()).createExtensionActionsToolbars();
      Create toolbars with all the actions defined at the framework level in exactly the same order in which they have been added to the toolbars from the Document Type Edit dialog. The toolbars will look almost identical with the ones which appear when the XML is opened in an Oxygen standalone version.
      Returns:
      toolbars with all the actions defined at the framework level.
      Since:
      14.1
    • getAuthorExtensionActions

      @Deprecated public Map<String,AbstractAction> getAuthorExtensionActions()
      Deprecated.
      Please use instead the method ((WSAuthorEditorPage)getWSEditorAccess().getCurrentPage()).getActionsProvider().getAuthorExtensionActions().
      Gets the map of author extension actions.

      This should get called after each load as the extension actions depend on the loaded document type.

      Returns:
      The map with (action id, AbstractAction) pairs with the actions defined in the Author framework. Can be null if no actions available.
    • getAuthorCommonActions

      @Deprecated public Map<String,AbstractAction> getAuthorCommonActions()
      Deprecated.
      Please use instead the method ((WSAuthorEditorPage)getWSEditorAccess().getCurrentPage()).getActionsProvider().getAuthorCommonActions().
      Get the map of author common actions (undo, redo, cut, copy, paste, etc).
      Returns:
      The map with (action id, AbstractAction) pairs with the actions defined for working in the Author.
    • getAuthorAccess

      @Deprecated public AuthorAccess getAuthorAccess()
      Deprecated.
      Please use instead the method ((WSAuthorEditorPage)getWSEditorAccess().getCurrentPage()).getAuthorAccess().
      Get the author access used to perform various operations on the Author Page.
      Returns:
      The author access.