com.jmo.mailmessager
Class MailMessagerController

java.lang.Object
  extended by java.lang.Thread
      extended by com.jmo.mailmessager.MailMessagerController
All Implemented Interfaces:
java.lang.Runnable

public class MailMessagerController
extends java.lang.Thread

Responsible for primary thread managing the app.

Version:
0.0.1
Author:
John Morales
See Also:
MailMessagerTray, MailMessagerEmailFinder, MailMessagerXMLEngine, MailMessagerStatusBar, MailMessagerIconAnimator, MailMessagerEncrypter, MailMessagerAddGui, MailAccount

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
MailMessagerController()
          Creates new MailMessagerController and starts the app
 
Method Summary
static MailMessagerIconAnimator getIconThreadInstance()
          Returns Controller's instance of IconAnimator thread.
static MailAccount[] getMailAccounts()
          Returns the current array of saved MailAccounts
static long getMailPollTime()
          Returns the current array of saved MailAccounts
static java.lang.Thread getMainThreadInstance()
          Returns Controller's instance of the primary thread
static boolean isRefresh()
          Returns refresh status of Controller
static void isRefresh(boolean Refresh)
          Sets Controller's refresh status
static void main(java.lang.String[] args)
          Go!
 void run()
          Primary thread running the application
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MailMessagerController

public MailMessagerController()
Creates new MailMessagerController and starts the app

Method Detail

run

public void run()
Primary thread running the application

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

isRefresh

public static boolean isRefresh()
Returns refresh status of Controller

Returns:
True if primary thread will be restarted, False otherwise

isRefresh

public static void isRefresh(boolean Refresh)
Sets Controller's refresh status

Parameters:
Refresh -

getMainThreadInstance

public static java.lang.Thread getMainThreadInstance()
Returns Controller's instance of the primary thread

Returns:
MainThread

getMailAccounts

public static MailAccount[] getMailAccounts()
Returns the current array of saved MailAccounts

Returns:
MailAccount[] array from settings.xml

getMailPollTime

public static long getMailPollTime()
Returns the current array of saved MailAccounts

Returns:
MailAccount[] array from settings.xml

getIconThreadInstance

public static MailMessagerIconAnimator getIconThreadInstance()
Returns Controller's instance of IconAnimator thread.

Returns:
oIconThread

main

public static void main(java.lang.String[] args)
Go!

Parameters:
args - - no arguments taken.