org.skunk.dav.client.gui.editor
Class ImageViewer

java.lang.Object
  |
  +--org.skunk.dav.client.gui.editor.AbstractDAVEditor
        |
        +--org.skunk.dav.client.gui.editor.ImageViewer
All Implemented Interfaces:
Buffer, DAVEditor

public class ImageViewer
extends AbstractDAVEditor


Constructor Summary
ImageViewer(DAVFile file)
           
 
Method Summary
 javax.swing.JComponent getComponent()
           
 DAVEditorUndoManager getUndoManager()
           
 boolean isWriteable()
           
 void load()
          loads the contents of the editor's DAVFile into the editor.
 void setWriteable(boolean writeable)
          sets the writeable flag on the editor
 
Methods inherited from class org.skunk.dav.client.gui.editor.AbstractDAVEditor
addEditListener, docking, getDAVFile, getName, getResourceBody, getResourceName, handleNulledFile, isDirty, removeEditListener, save, saveAs, saveAs, setDAVFile, setDirty, setName, setResourceBody, setResourceName, undocking
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageViewer

public ImageViewer(DAVFile file)
Method Detail

getUndoManager

public DAVEditorUndoManager getUndoManager()
Following copied from interface: org.skunk.dav.client.gui.editor.DAVEditor
Returns:
the undo manager for this editor. May be null.

getComponent

public javax.swing.JComponent getComponent()
Overrides:
getComponent in class AbstractDAVEditor
Following copied from interface: org.skunk.dav.client.gui.Buffer
Returns:
the buffer's visual component

isWriteable

public boolean isWriteable()
Overrides:
isWriteable in class AbstractDAVEditor
Following copied from interface: org.skunk.dav.client.gui.editor.DAVEditor
Returns:
whether the editor will accept input

setWriteable

public void setWriteable(boolean writeable)
Description copied from interface: DAVEditor
sets the writeable flag on the editor
Overrides:
setWriteable in class AbstractDAVEditor
Following copied from interface: org.skunk.dav.client.gui.editor.DAVEditor
Parameters:
writeable - the new value of the writeable flag

load

public void load()
Description copied from interface: DAVEditor
loads the contents of the editor's DAVFile into the editor.
Overrides:
load in class AbstractDAVEditor
Following copied from interface: org.skunk.dav.client.gui.editor.DAVEditor
Throws:
CannotLoadException - if it cannot load the file.