|
|||||||||
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()
Buffer
docking
in interface Buffer
public void undocking()
Buffer
undocking
in interface Buffer
public void setDAVFile(DAVFile file)
DAVEditor
setDAVFile
in interface DAVEditor
org.skunk.dav.client.gui.editor.DAVEditor
file
- the new fileprotected void handleNulledFile()
public DAVFile getDAVFile()
getDAVFile
in interface DAVEditor
org.skunk.dav.client.gui.editor.DAVEditor
public void setName(java.lang.String name)
Buffer
setName
in interface Buffer
public java.lang.String getName()
getName
in interface Buffer
org.skunk.dav.client.gui.Buffer
public byte[] getResourceBody()
getResourceBody
in interface DAVEditor
org.skunk.dav.client.gui.editor.DAVEditor
public void setResourceBody(byte[] resourceBody)
DAVEditor
setResourceBody
in interface DAVEditor
org.skunk.dav.client.gui.editor.DAVEditor
the
- new contentspublic java.lang.String getResourceName()
getResourceName
in interface DAVEditor
org.skunk.dav.client.gui.editor.DAVEditor
public void setResourceName(java.lang.String resourceName)
DAVEditor
setResourceName
in interface DAVEditor
org.skunk.dav.client.gui.editor.DAVEditor
resourceName
- the new resource namepublic boolean isDirty()
isDirty
in interface DAVEditor
org.skunk.dav.client.gui.editor.DAVEditor
public void setDirty(boolean dirty)
DAVEditor
setDirty
in interface DAVEditor
org.skunk.dav.client.gui.editor.DAVEditor
dirty
- the new value of the dirty flagpublic boolean isWriteable()
isWriteable
in interface DAVEditor
org.skunk.dav.client.gui.editor.DAVEditor
public void setWriteable(boolean writeable)
DAVEditor
setWriteable
in interface DAVEditor
org.skunk.dav.client.gui.editor.DAVEditor
writeable
- the new value of the writeable flagpublic abstract javax.swing.JComponent getComponent()
getComponent
in interface Buffer
org.skunk.dav.client.gui.Buffer
public void save()
DAVEditor
save
in interface DAVEditor
public final void saveAs()
DAVEditor
saveAs
in interface DAVEditor
public final void saveAs(java.lang.String filename)
DAVEditor
saveAs
in interface DAVEditor
org.skunk.dav.client.gui.editor.DAVEditor
filename
- the new filenamepublic abstract void load() throws CannotLoadException
DAVEditor
load
in interface DAVEditor
org.skunk.dav.client.gui.editor.DAVEditor
CannotLoadException
- if it cannot load the file.public void addEditListener(EditListener ed)
DAVEditor
addEditListener
in interface DAVEditor
org.skunk.dav.client.gui.editor.DAVEditor
ed
- the edit listenerpublic void removeEditListener(EditListener ed)
DAVEditor
removeEditListener
in interface DAVEditor
org.skunk.dav.client.gui.editor.DAVEditor
ed
- the edit listener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |