|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.hprog.code.CodeApplication
The main workhorse class for a client program
| Field Summary | |
static int |
ALIVE_PERIOD
Number of milliseconds between sending automatic keep-alives to the server |
| Constructor Summary | |
CodeApplication(java.net.URL base,
java.awt.Component _component,
javax.swing.JDesktopPane desktop,
java.lang.String _host,
int _port,
java.lang.String _handle,
java.lang.String _session,
java.lang.String _lang,
java.lang.String _desc,
boolean local)
Only constructor |
|
| Method Summary | |
void |
disableLocalInterrupt()
Configure menus to disable interrupting the local interpreter |
void |
enableLocalInterrupt()
Configure menus to enable interrupting the local interpreter |
javax.swing.JMenuBar |
getMenuBar()
Get the menu bar in use |
java.lang.String |
getText(java.lang.String fname)
Get the text of a shared source file |
void |
insertText(java.lang.String fname,
int pos,
java.lang.String text)
Insert text into a shared source file |
void |
logln(java.lang.String text)
Log a line of text to the chat window |
void |
remoteBegin()
Configure menus to begin a remote interpreter query |
void |
remoteEnd()
Configure menus to end a remote interpreter query |
void |
removeText(java.lang.String fname,
int pos,
int len)
Remove text from a shares source file |
void |
resized()
Call when the desktop has been resized |
void |
setComponent(java.awt.Component c)
Set the component considered as the container of the application |
void |
setDims()
Update stored information on the dimensions of the desktop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int ALIVE_PERIOD
| Constructor Detail |
public CodeApplication(java.net.URL base,
java.awt.Component _component,
javax.swing.JDesktopPane desktop,
java.lang.String _host,
int _port,
java.lang.String _handle,
java.lang.String _session,
java.lang.String _lang,
java.lang.String _desc,
boolean local)
base - base URL for locating files needed by interpreters_component - container component for the applicationdesktop - container pane for the application_host - hostname to which to connect_port - port number on which to connect_session - name of session to which to connect_lang - language to be used in the session (ignored if joining existing session)_desc - description of new session (ignored if joining existing session)local - load a local interpreter?| Method Detail |
public void setDims()
public void resized()
public void setComponent(java.awt.Component c)
c - the container componentpublic javax.swing.JMenuBar getMenuBar()
public void logln(java.lang.String text)
text - text to logpublic java.lang.String getText(java.lang.String fname)
fname - name of source file
public void insertText(java.lang.String fname,
int pos,
java.lang.String text)
fname - name of source filepos - character index at which to inserttext - text to insert
public void removeText(java.lang.String fname,
int pos,
int len)
fname - name of source filepos - character index at which to removelen - number of characters to removepublic void enableLocalInterrupt()
public void disableLocalInterrupt()
public void remoteBegin()
public void remoteEnd()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||