cz.cuni.pogamut.posh
Class PoshEditorSupport

Package class diagram package PoshEditorSupport
java.lang.Object
  extended by org.openide.windows.CloneableOpenSupport
      extended by org.openide.text.CloneableEditorSupport
          extended by org.openide.text.DataEditorSupport
              extended by cz.cuni.pogamut.posh.PoshEditorSupport
All Implemented Interfaces:
org.netbeans.api.actions.Editable, org.netbeans.api.actions.Openable, org.openide.cookies.EditCookie, org.openide.cookies.EditorCookie, org.openide.cookies.EditorCookie.Observable, org.openide.cookies.LineCookie, org.openide.cookies.OpenCookie, org.openide.nodes.Node.Cookie

public class PoshEditorSupport
extends org.openide.text.DataEditorSupport
implements org.openide.cookies.OpenCookie, org.openide.cookies.EditorCookie, org.openide.cookies.EditCookie, org.openide.cookies.EditorCookie.Observable

Support for associating an editor and a Swing Document to a data object.

Author:
Honza

Nested Class Summary
 
Nested classes/interfaces inherited from class org.openide.text.DataEditorSupport
org.openide.text.DataEditorSupport.Env
 
Nested classes/interfaces inherited from class org.openide.text.CloneableEditorSupport
org.openide.text.CloneableEditorSupport.Pane
 
Nested classes/interfaces inherited from interface org.openide.cookies.EditorCookie
org.openide.cookies.EditorCookie.Observable
 
Field Summary
 
Fields inherited from class org.openide.text.CloneableEditorSupport
BEGIN_COMMIT_GROUP, EDITOR_MODE, END_COMMIT_GROUP, MARK_COMMIT_GROUP
 
Fields inherited from class org.openide.windows.CloneableOpenSupport
allEditors, env
 
Fields inherited from interface org.openide.cookies.EditorCookie.Observable
PROP_DOCUMENT, PROP_MODIFIED, PROP_OPENED_PANES
 
Constructor Summary
PoshEditorSupport(PoshDataObject dataObj)
           
 
Method Summary
protected  org.openide.windows.CloneableTopComponent createCloneableTopComponent()
           
 String messageSave()
          Get message asking if user wants to save data object.
 boolean notifyModified()
           
protected  void notifyUnmodified()
           
 void onCloseDiscard()
           
 void setModified()
           
 
Methods inherited from class org.openide.text.DataEditorSupport
annotateName, canClose, create, create, createStyledDocument, documentID, findDataObject, getDataObject, initializeCloneableEditor, loadFromStreamToKit, messageHtmlName, messageLine, messageName, messageOpened, messageOpening, messageToolTip, notifyClosed, openDocument, saveAs, saveDocument, saveFromKitToStream, toolTip
 
Methods inherited from class org.openide.text.CloneableEditorSupport
addChangeListener, addPropertyChangeListener, asynchronousOpen, close, createCloneableEditor, createEditorKit, createPane, createPositionRef, createUndoRedoManager, firePropertyChange, getDocument, getEditorKit, getInputStream, getLineSet, getOpenedPanes, getUndoRedo, isDocumentLoaded, isModified, open, openAt, prepareDocument, print, reloadDocument, removeChangeListener, removePropertyChangeListener, setMIMEType, updateTitles, wrapEditorComponent
 
Methods inherited from class org.openide.windows.CloneableOpenSupport
close, edit, openCloneableTopComponent, view
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.netbeans.api.actions.Openable
open
 
Methods inherited from interface org.netbeans.api.actions.Editable
edit
 
Methods inherited from interface org.openide.cookies.EditorCookie.Observable
addPropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface org.openide.cookies.EditorCookie
close, getDocument, getOpenedPanes, isModified, open, openDocument, prepareDocument, saveDocument
 
Methods inherited from interface org.openide.cookies.LineCookie
getLineSet
 

Constructor Detail

PoshEditorSupport

public PoshEditorSupport(PoshDataObject dataObj)
Method Detail

createCloneableTopComponent

protected org.openide.windows.CloneableTopComponent createCloneableTopComponent()
Overrides:
createCloneableTopComponent in class org.openide.text.CloneableEditorSupport

notifyModified

public boolean notifyModified()
Overrides:
notifyModified in class org.openide.text.CloneableEditorSupport

setModified

public void setModified()
                 throws IOException
Throws:
IOException

notifyUnmodified

protected void notifyUnmodified()
Overrides:
notifyUnmodified in class org.openide.text.CloneableEditorSupport

messageSave

public String messageSave()
Get message asking if user wants to save data object. Only wrapper to weaken priviledges.

Overrides:
messageSave in class org.openide.text.DataEditorSupport
Returns:
Message to display to the user, asking if she want to save the data

onCloseDiscard

public void onCloseDiscard()


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.