Nekit
v 0.9

com.nekhem.nekit
Interface NekitEditorOwner

All Known Implementing Classes:
NekitApplet

public interface NekitEditorOwner

Every class that creates an object NekitEditor should supply a class that implements this interface. This is to warrant that NekitEditor can do some basic operations.

See Also:
NekitEditor

Method Summary
 void close()
          The editor needs to close itself
 java.lang.String getRemoteTreeString(java.lang.String id)
          The editor asks for a XML Tree with a list of possible anchors
 void newFile()
          The user asked to upload a new File, the class should handle this request.
 boolean newFileEnabled()
          The editor needs to know if newFile is enabled
 void save(java.lang.String text)
          Save the edited HTML text
 

Method Detail

newFile

public void newFile()
The user asked to upload a new File, the class should handle this request.


newFileEnabled

public boolean newFileEnabled()
The editor needs to know if newFile is enabled

Returns:
true if the 'newFile' operation is enabled

close

public void close()
The editor needs to close itself


save

public void save(java.lang.String text)
Save the edited HTML text

Parameters:
text - The edited HTML text

getRemoteTreeString

public java.lang.String getRemoteTreeString(java.lang.String id)
The editor asks for a XML Tree with a list of possible anchors

Parameters:
id - the id of the list (for now it can be "internalAnchor" or "fileAnchor")
Returns:
The XML Tree in the form: <root><folder id="" name=""><file id="" name=""/></folder></root>

Nekit
v 0.9

Submit a bug or feature
Nekhem Technologies