org.formaria.editor.netbeans.project.pages
Class PageEditorSupport

java.lang.Object
  extended by DataEditorSupport
      extended by org.formaria.editor.netbeans.project.pages.PageEditorSupport
All Implemented Interfaces:
Notifiable

public class PageEditorSupport
extends DataEditorSupport
implements Notifiable

Support for editing a data object as text.


Constructor Summary
PageEditorSupport(PageDataObject obj, java.lang.String mimeType)
          Create a new editor support.
 
Method Summary
protected  Pane createPane()
           
 boolean notifyModified()
          Called when the document is modified.
 void notifyUnmodified()
          Called when the document becomes unmodified.
 void open()
           
 void setModified()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageEditorSupport

public PageEditorSupport(PageDataObject obj,
                         java.lang.String mimeType)
Create a new editor support.

Parameters:
obj - the data object whose primary file will be edited as text
mimeType - the mime type being processed
Method Detail

open

public void open()

notifyModified

public boolean notifyModified()
Called when the document is modified. Here, adding a save cookie to the object and marking it modified.

Specified by:
notifyModified in interface Notifiable
Returns:
true if the modification is acceptable

notifyUnmodified

public void notifyUnmodified()
Called when the document becomes unmodified. Here, removing the save cookie from the object and marking it unmodified.

Specified by:
notifyUnmodified in interface Notifiable

setModified

public void setModified()

createPane

protected Pane createPane()