|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an extension of the Buffer
interface for
buffers that enable the user to modify the contents
of a DAVFile
.
Method Summary | |
void |
addEditListener(EditListener ed)
adds an EditListener. |
DAVFile |
getDAVFile()
|
byte[] |
getResourceBody()
|
java.lang.String |
getResourceName()
|
DAVEditorUndoManager |
getUndoManager()
|
boolean |
isDirty()
|
boolean |
isWriteable()
|
void |
load()
loads the contents of the editor's DAVFile into the editor. |
void |
removeEditListener(EditListener ed)
removes an EditListener. |
void |
save()
saves the file being edited. |
void |
saveAs()
saves the file being edited, prompting the user for a new filename. |
void |
saveAs(java.lang.String filename)
saves the file being edited to the given filename. |
void |
setDAVFile(DAVFile file)
sets the editor's DAVFile |
void |
setDirty(boolean dirty)
sets the dirty flag on the editor. |
void |
setResourceBody(byte[] resourceBody)
sets the file contents of the editor. |
void |
setResourceName(java.lang.String resourceName)
sets the resource name |
void |
setWriteable(boolean writeable)
sets the writeable flag on the editor |
Methods inherited from interface org.skunk.dav.client.gui.Buffer |
docking, getComponent, getName, setName, undocking |
Method Detail |
public byte[] getResourceBody()
public void setResourceBody(byte[] resourceBody)
the
- new contentspublic DAVFile getDAVFile()
public void setDAVFile(DAVFile file)
file
- the new filepublic java.lang.String getResourceName()
public void setResourceName(java.lang.String resourceName)
resourceName
- the new resource namepublic boolean isDirty()
public void setDirty(boolean dirty)
dirty
- the new value of the dirty flagpublic boolean isWriteable()
public void setWriteable(boolean writeable)
writeable
- the new value of the writeable flagpublic void save()
public void saveAs()
public void saveAs(java.lang.String filename)
filename
- the new filenamepublic void load() throws CannotLoadException
CannotLoadException
- if it cannot load the file.public void addEditListener(EditListener ed)
ed
- the edit listenerpublic void removeEditListener(EditListener ed)
ed
- the edit listenerpublic DAVEditorUndoManager getUndoManager()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |