|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectc408h006.Connection
Connection to a file within the OmniEditor System.
Constructor Summary | |
Connection(java.lang.String fileName)
Constructs an instance of this class. |
Method Summary | |
int |
addUser()
Adds a new user to the list of users using this connection and returns that user's ID. |
java.lang.String |
disConnect(int id)
Disconnect a User from the OmniEditor system. |
java.lang.String |
download(Command c)
Save the file to the WebService. |
java.lang.String |
getFileName()
Returns the name of the file that this connection is linked to. |
FileState |
getFileState(int id)
Return the current state of the file. |
java.lang.String |
mark(Command c)
Mark the current position with the file. |
java.lang.String |
move(Command c)
Move the user's cursor position. |
java.lang.String |
performCommand(Command c)
Performs the necessary action on the file as requested by the user and returns a string message which indicates whether the action was performed succesfully. |
java.lang.String |
select(Command c)
Selects a block of text specified from the mark position to end position specified by the user. |
java.lang.String |
upload(Command c)
Opens the file for use for editing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Connection(java.lang.String fileName)
fileName
- The name of the file to connect toMethod Detail |
public java.lang.String getFileName()
public int addUser()
public java.lang.String performCommand(Command c)
c
- A command object which contains the command that the user wants
to perform on the file
public java.lang.String download(Command c)
c
- A Command object which contains the name of the file to be saved
public java.lang.String upload(Command c)
c
- A Command object which contains the user's ID
public java.lang.String move(Command c)
c
- A Command object which contains the user's ID and the position to move to
public java.lang.String mark(Command c)
c
- A Command object which contains the user's ID and the position to mark
public java.lang.String select(Command c)
c
- A Command object which contains the end position and the user's ID
public FileState getFileState(int id)
id
- The id of the User who is requesting the FileState
public java.lang.String disConnect(int id)
id
- The id of the User to disconnect
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |