|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.skunk.dav.client.gui.editor.AbstractDAVEditor
| Constructor Summary | |
AbstractDAVEditor(DAVFile file)
|
|
| Method Summary | |
void |
addEditListener(EditListener ed)
adds an EditListener. |
void |
docking()
hook method, called when component is docked |
abstract javax.swing.JComponent |
getComponent()
|
DAVFile |
getDAVFile()
|
java.lang.String |
getName()
|
byte[] |
getResourceBody()
|
java.lang.String |
getResourceName()
|
protected void |
handleNulledFile()
|
boolean |
isDirty()
|
boolean |
isWriteable()
|
abstract 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 |
setName(java.lang.String name)
set the buffer's name |
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 |
void |
undocking()
hook method, called when component is undocked |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.skunk.dav.client.gui.editor.DAVEditor |
getUndoManager |
| Constructor Detail |
public AbstractDAVEditor(DAVFile file)
| Method Detail |
public void docking()
Bufferdocking in interface Bufferpublic void undocking()
Bufferundocking in interface Bufferpublic void setDAVFile(DAVFile file)
DAVEditorsetDAVFile in interface DAVEditororg.skunk.dav.client.gui.editor.DAVEditorfile - the new fileprotected void handleNulledFile()
public DAVFile getDAVFile()
getDAVFile in interface DAVEditororg.skunk.dav.client.gui.editor.DAVEditorpublic void setName(java.lang.String name)
BuffersetName in interface Bufferpublic java.lang.String getName()
getName in interface Bufferorg.skunk.dav.client.gui.Bufferpublic byte[] getResourceBody()
getResourceBody in interface DAVEditororg.skunk.dav.client.gui.editor.DAVEditorpublic void setResourceBody(byte[] resourceBody)
DAVEditorsetResourceBody in interface DAVEditororg.skunk.dav.client.gui.editor.DAVEditorthe - new contentspublic java.lang.String getResourceName()
getResourceName in interface DAVEditororg.skunk.dav.client.gui.editor.DAVEditorpublic void setResourceName(java.lang.String resourceName)
DAVEditorsetResourceName in interface DAVEditororg.skunk.dav.client.gui.editor.DAVEditorresourceName - the new resource namepublic boolean isDirty()
isDirty in interface DAVEditororg.skunk.dav.client.gui.editor.DAVEditorpublic void setDirty(boolean dirty)
DAVEditorsetDirty in interface DAVEditororg.skunk.dav.client.gui.editor.DAVEditordirty - the new value of the dirty flagpublic boolean isWriteable()
isWriteable in interface DAVEditororg.skunk.dav.client.gui.editor.DAVEditorpublic void setWriteable(boolean writeable)
DAVEditorsetWriteable in interface DAVEditororg.skunk.dav.client.gui.editor.DAVEditorwriteable - the new value of the writeable flagpublic abstract javax.swing.JComponent getComponent()
getComponent in interface Bufferorg.skunk.dav.client.gui.Bufferpublic void save()
DAVEditorsave in interface DAVEditorpublic final void saveAs()
DAVEditorsaveAs in interface DAVEditorpublic final void saveAs(java.lang.String filename)
DAVEditorsaveAs in interface DAVEditororg.skunk.dav.client.gui.editor.DAVEditorfilename - the new filename
public abstract void load()
throws CannotLoadException
DAVEditorload in interface DAVEditororg.skunk.dav.client.gui.editor.DAVEditorCannotLoadException - if it cannot load the file.public void addEditListener(EditListener ed)
DAVEditoraddEditListener in interface DAVEditororg.skunk.dav.client.gui.editor.DAVEditored - the edit listenerpublic void removeEditListener(EditListener ed)
DAVEditorremoveEditListener in interface DAVEditororg.skunk.dav.client.gui.editor.DAVEditored - the edit listener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||