|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
anecho.JamochaMUD.MuSocket
public class MuSocket
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
MuSocket()
The constructor. |
|
| Method Summary | |
|---|---|
void |
closeSocket()
Allow other classes to close our socket |
void |
enableBackgroundPainting(boolean state)
Enable / disable the ability for the MU* component to paint background colours |
java.lang.String |
getAddress()
|
java.lang.String |
getConnectString()
Returns to string used to connect to this socket |
java.lang.String |
getMUName()
This returns the true name of the MU*, regardless of our connection |
int |
getPort()
|
JMSwingText |
getSwingTextWindow()
|
JMText |
getTextWindow()
|
long |
getTimeStamp()
|
java.lang.String |
getTitle()
getTitle does a small bit of book-keeping, returning a title based on whether we're connected to the MU* or not. |
boolean |
isAutoConnect()
Indicates whether this connection is set to auto connect |
boolean |
isConnectionActive()
Return the status of our connection: |
boolean |
isEchoState()
Return the state of our "echo" |
boolean |
isLogging()
Return our auto-logging status |
boolean |
isMCCP()
|
boolean |
isPaused()
Return the fact that our connection is either paused - |
boolean |
isSSL()
|
void |
mouseClicked(java.awt.event.MouseEvent mEvent)
|
void |
mouseEntered(java.awt.event.MouseEvent mEvent)
|
void |
mouseExited(java.awt.event.MouseEvent mEvent)
|
void |
mousePressed(java.awt.event.MouseEvent mEvent)
|
void |
mouseReleased(java.awt.event.MouseEvent mEvent)
|
void |
resetTitle()
Call this to reset the frame's title to the "standard" title. |
void |
run()
This is the main method for our thread. |
void |
sendText(java.lang.String send)
Send text out to our MU* |
void |
setActiveMU(boolean status)
Indicate that this MU active or inactive |
void |
setAddress(java.lang.String address)
The Address of our connection |
void |
setAutoConnect(boolean status)
|
void |
setConnectString(java.lang.String connStr)
|
void |
setEchoState(boolean state)
|
void |
setLogging(boolean status)
Enable or disable auto-logging |
void |
setMCCP(boolean status)
|
void |
setMUName(java.lang.String newName)
The name of our connection |
void |
setPaused(boolean option)
Set the paused status of our text area |
void |
setPort(int port)
The currentPort our connection will connect to |
void |
setSSL(boolean ssl)
|
void |
setTimeStamp(long time)
The timestamp of our connection, for internal use mostly |
void |
spoolText()
Write any "held" text out to the user's display. |
void |
telnetMessageReceived(TelnetEvent event)
Custom telnet message receiver for our TelnetEventListener |
void |
validate()
|
void |
write(java.lang.String output)
Write out given text to our text component with-out sending it to the MU*. |
void |
write(java.lang.String output,
boolean skip)
Write out given text to our text component with-out sending it to the MU*. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MuSocket()
| Method Detail |
|---|
public void mousePressed(java.awt.event.MouseEvent mEvent)
mousePressed in interface java.awt.event.MouseListenermEvent - public void mouseReleased(java.awt.event.MouseEvent mEvent)
mouseReleased in interface java.awt.event.MouseListenermEvent - public void mouseClicked(java.awt.event.MouseEvent mEvent)
mouseClicked in interface java.awt.event.MouseListenermEvent - public void mouseEntered(java.awt.event.MouseEvent mEvent)
mouseEntered in interface java.awt.event.MouseListenermEvent - public void mouseExited(java.awt.event.MouseEvent mEvent)
mouseExited in interface java.awt.event.MouseListenermEvent - public void setMUName(java.lang.String newName)
newName - public java.lang.String getTitle()
public java.lang.String getMUName()
public void resetTitle()
public void setAddress(java.lang.String address)
address - public java.lang.String getAddress()
public void setPort(int port)
port - The port number to connect topublic int getPort()
public void setSSL(boolean ssl)
ssl - public boolean isSSL()
public void setTimeStamp(long time)
time - public long getTimeStamp()
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic JMText getTextWindow()
public JMSwingText getSwingTextWindow()
public void sendText(java.lang.String send)
send - public boolean isConnectionActive()
true - Connected
false - Not connectedpublic void closeSocket()
public void setPaused(boolean option)
option - public boolean isPaused()
true
false
public void spoolText()
public void setActiveMU(boolean status)
status - public void validate()
public boolean isEchoState()
public void setEchoState(boolean state)
public void write(java.lang.String output)
output - The string to be written to the user output
public void write(java.lang.String output,
boolean skip)
output - The string to be written to the user outputskip - Indicate if the string should be processed by the output plug-inspublic void enableBackgroundPainting(boolean state)
state - true enables background colour painting
false disables background colour paintingpublic void telnetMessageReceived(TelnetEvent event)
telnetMessageReceived in interface TelnetEventListenerevent - public void setLogging(boolean status)
status - public boolean isLogging()
public void setAutoConnect(boolean status)
status - public boolean isAutoConnect()
true auto-connect is enabled
false auto-connect is not enabledpublic void setConnectString(java.lang.String connStr)
connStr - public java.lang.String getConnectString()
public void setMCCP(boolean status)
status - public boolean isMCCP()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||