org.tynamo.editablecontent.components
Class EditableContent

java.lang.Object
  extended by org.tynamo.editablecontent.components.EditableContent

@Import(stylesheet="EditableContent.css")
public class EditableContent
extends Object

A component that displays html-formatted textual content and allows editing it inline in a ckeditor instance. The initial value is the nested static html content if any.


Constructor Summary
EditableContent()
           
 
Method Summary
 Object dontRenderContent(org.apache.tapestry5.MarkupWriter writer)
           
 String getDefaultAuthorRole()
           
 String getDefaultContentId()
           
 boolean isDefaultReadOnly()
           
 boolean isEditable()
           
 boolean isEdited()
           
 Object onActionFromCancelLink()
           
 Object onActionFromEditLink()
           
 void onValidateFromContentEditorForm()
           
 Object renderContent(org.apache.tapestry5.MarkupWriter writer)
           
 void resetToReadMode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditableContent

public EditableContent()
Method Detail

isDefaultReadOnly

public boolean isDefaultReadOnly()

getDefaultAuthorRole

public String getDefaultAuthorRole()

getDefaultContentId

public String getDefaultContentId()

dontRenderContent

@BeforeRenderBody
public Object dontRenderContent(org.apache.tapestry5.MarkupWriter writer)

resetToReadMode

@PageReset
public void resetToReadMode()

renderContent

@AfterRenderBody
public Object renderContent(org.apache.tapestry5.MarkupWriter writer)

isEdited

public boolean isEdited()

isEditable

public boolean isEditable()

onActionFromCancelLink

public Object onActionFromCancelLink()

onActionFromEditLink

public Object onActionFromEditLink()

onValidateFromContentEditorForm

public void onValidateFromContentEditorForm()


Copyright © 2004-2012. All Rights Reserved.