shared
Class Main

java.lang.Object
  extended byshared.Main

public final class Main
extends java.lang.Object

This class contains the static main method to start the program from. This class is also responsible for handling info ans status messages and the logging option of those messages.

Author:
buetow

Constructor Summary
Main()
           
 
Method Summary
static void exit(int iCode)
          This method is called thenever the server or the client process wants to exit.
static void infoMessage(java.lang.String sMessage)
          All info messages of the calendar client and the calendar server go through this method.
static void main(java.lang.String[] args)
          This method is the start point of the whole program.
static void statusMessage(java.lang.String sMessage)
          This method is for various messages.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Method Detail

main

public static void main(java.lang.String[] args)
This method is the start point of the whole program. Its initialiting the static Config object and starts a calendar server and/or a calendar client thread depending on the "server_run" and "client_run" configuration options.

Parameters:
args - Specifies the program arguments (not used yet by the program)

infoMessage

public static void infoMessage(java.lang.String sMessage)
All info messages of the calendar client and the calendar server go through this method. They are not using System.out.* directly.

Parameters:
sMessage - Specifies the program info message.

statusMessage

public static void statusMessage(java.lang.String sMessage)
This method is for various messages. All messages will show up in the status bar of the client's main window. If there is no main window, the infoMessage method will be used instead.

Parameters:
sMessage - Specifies the message to be displayed in the status bar.

exit

public static void exit(int iCode)
This method is called thenever the server or the client process wants to exit.

Parameters:
iCode - Specifies the exit code to use for the System.exit call.