|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectanecho.JamochaMUD.plugins.TimeStamp
public class TimeStamp
TimeStamp is a class that allows the user to put a time stamp at the beginning of lines of text received in the output window. The format of the time is user-definable.
| Constructor Summary | |
|---|---|
TimeStamp()
|
|
| Method Summary | |
|---|---|
void |
activate()
This function is automatically called by JamochaMUD when the plug-in is first activated (at each JamochaMUD start-up). |
void |
deactivate()
This function is automatically called by JamochaMUD when the plug-in is set inactive from the JamochaMUD "Manage Plug-Ins" dialogue. |
boolean |
hasProperties()
If a plug-in has properties that can be configured via a GUI, this method should return true, otherwise it should return false. |
boolean |
haveConfig()
This method tells JamochaMUD whether this plugin should have its own person configuration directory where it can keep its settings. |
void |
initialiseAtLoad()
This method is called as soon as the plugin is first loaded. |
boolean |
isActive()
Allows JamochaMUD to check whether this plug-in is active and should be used. |
java.lang.String |
plugInDescription()
A basic description of the plug-in that is shown in the JamochaMUD "Manage Plugins" dialogue box |
java.lang.String |
plugInName()
This method returns the name of the plug-in |
void |
plugInProperties()
This method is called by the "Properties" option in the JamochaMUD "Manage plugins" dialogue box. |
java.lang.String |
plugInType()
This indicates what type of plugin this is, ie: input or output. |
java.lang.String |
plugMain(java.lang.String jamochaString,
MuSocket mSock)
This is the main method of the plug-in. |
protected void |
saveSettings()
This method saves the current MusicBox settings to a file. |
void |
setAtHalt()
The method is automatically called when JamochaMUD is quit by using the File -> Exit menu or the close window icon. |
void |
setSettings(JMConfig mainSettings)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeStamp()
| Method Detail |
|---|
public void setSettings(JMConfig mainSettings)
mainSettings - public java.lang.String plugInName()
plugInName in interface PlugInterfacepublic java.lang.String plugInDescription()
plugInDescription in interface PlugInterfacepublic java.lang.String plugInType()
plugInType in interface PlugInterface
public java.lang.String plugMain(java.lang.String jamochaString,
MuSocket mSock)
plugMain in interface PlugInterfacejamochaString - The string received from the MU* and to be processed.mSock - The connection that the given string belongs to.
public void plugInProperties()
plugInProperties in interface PlugInterfacepublic void initialiseAtLoad()
initialiseAtLoad in interface PlugInterfacepublic void setAtHalt()
setAtHalt in interface PlugInterfacepublic boolean haveConfig()
haveConfig in interface PlugInterfacepublic boolean hasProperties()
hasProperties in interface PlugInterfacepublic void activate()
activate in interface PlugInterfacepublic void deactivate()
deactivate in interface PlugInterfacepublic boolean isActive()
PlugInterface
isActive in interface PlugInterfaceprotected void saveSettings()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||