Class AbstractCmsEditor<T>

    • Method Detail

      • getModel

        public org.apache.wicket.model.IModel<T> getModel()
        Description copied from interface: IEditor
        Model of the Editor.
        Specified by:
        getModel in interface IEditor<T>
        Returns:
        The model that can be used to identify the editor. For publishable documents, this is the parent handle.
      • save

        public void save()
                  throws EditorException
        Default implementation that does nothing. Subclasses are expected to override this behaviour.
        Specified by:
        save in interface IEditor<T>
        Throws:
        EditorException
      • done

        public void done()
                  throws EditorException
        Default implementation that does nothing. Subclasses are expected to override this behaviour.
        Specified by:
        done in interface IEditor<T>
        Throws:
        EditorException
      • close

        public void close()
                   throws EditorException
        Description copied from interface: IEditor
        Requests that the editor be closed. In case the editor contains modified document, the implementation should ask the user what to be done with the changes to the document.
        Specified by:
        close in interface IEditor<T>
        Throws:
        EditorException - when the editor is in a state where it cannot be closed.
      • onActivated

        protected void onActivated()
        Hook called when an editor is activated, i.e. transitions from inactive to active state. When overiding, make sure to call super.onActivated() in order to keep the usage statistics working.
      • onDeactivated

        protected void onDeactivated()
        Hook called when an editor is deactivate, i.e. transitions from active to inactive state. When overriding, make sure to call super.onDeactivated().
      • publishEvent

        protected void publishEvent​(String name)
      • createUsageEvent

        protected UsageEvent createUsageEvent​(String name,
                                              org.apache.wicket.model.IModel<T> model)
      • stop

        public void stop()
      • getRendererServiceId

        protected String getRendererServiceId()
      • getForm

        public org.apache.wicket.markup.html.form.Form getForm()
        Description copied from interface: IEditor
        The Form that wraps the editor.
        Specified by:
        getForm in interface IEditor<T>
      • onClose

        protected void onClose()
      • focus

        public void focus()
        Description copied from interface: IEditor
        Requests focus on the editor.
        Specified by:
        focus in interface IEditor<T>
      • detach

        public void detach()
        Specified by:
        detach in interface org.apache.wicket.model.IDetachable
      • isTransferable

        public boolean isTransferable()
                               throws EditorException
        Description copied from interface: IEditor
        If a document has been saved as draft the document is marked as "transferable".
        Specified by:
        isTransferable in interface IEditor<T>
        Returns:
        true if the document has been saved as draft, otherwise false
        Throws:
        EditorException
      • isParentOfFrozenNode

        protected boolean isParentOfFrozenNode​(javax.jcr.Node node)
                                        throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException