org.davesag.tasktracker.test
Class GuiFramesTest

java.lang.Object
  |
  +--org.pronoic.cos.client.AbstractClientApp
        |
        +--org.davesag.tasktracker.client.ClientApp
              |
              +--org.davesag.tasktracker.test.GuiFramesTest
All Implemented Interfaces:
ClientAppInterface, CosStartable

public class GuiFramesTest
extends ClientApp

This is a client aplication for entering and maintaining tasks. It is very simple and does not do any username/password authentication etc.

Version:
0.1 pre-release 30 Mar 2002
See Also:
org.davesag.tasktracker.client

Fields inherited from class org.davesag.tasktracker.client.ClientApp
BUDDY_LIST_NAME, CATEGORY_LIST_NAME, mBackgroundColour, mBuddyListPCS, mCategoriesPCS, mCategoryCache, mCaution, mCautioner, mDisplayFont, mDisplayTextColour, mProjectCache, mProjectsPCS, mTasksImWorkingOnCache, mTasksImWorkingOnPCS, mTasksIReportedCache, mTasksIReportedPCS, mTitleColour, mUser, mUserBuddiesCache, PROJECT_LIST_NAME, TASKS_I_REPORTED, TASKS_IM_WORKING_ON
 
Fields inherited from class org.pronoic.cos.client.AbstractClientApp
mCosConnector
 
Constructor Summary
GuiFramesTest()
          Constructor that sets up the Look and Feel.
 
Method Summary
 String[] getKnownCategories()
          gets an array of categories known to the system.
 String[] getKnownProjects()
          gets an array of projects.
 String[] getKnownUsers()
          gets an array of usernames of all users known to the logged in user.
 String getUsername()
          overrien to enforce a test username
 boolean isConnected()
          override isConnected to always return true.
 boolean login(String username, char[] password)
          Login will just acknowledge that the login event was recieved okay and set the caution if not.
static void main(String[] args)
          Let's see what this baby can do.
 boolean newTask(TaskTrackerEntry task)
          newTask acknowledges the newTask event and does some basic parsing of the fields.
 
Methods inherited from class org.davesag.tasktracker.client.ClientApp
authenticateUser, getKnownCategories, getKnownProjects, getTasksImWorkingOn, getTasksIReported, getUserBuddies, getUserBuddies, resetUser, setCategories, setCaution, setProjects, setTasksImWorkingOn, setTasksIReported, setUserBuddies, startup, updateTask
 
Methods inherited from class org.pronoic.cos.client.AbstractClientApp
connect, disconnect, getApplicationName, getCosConnector, initialiseLookAndFeel, isCosApplicationRunning, quit, setApplicationName, setConfigInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiFramesTest

public GuiFramesTest()
Constructor that sets up the Look and Feel.
Method Detail

login

public boolean login(String username,
                     char[] password)
Login will just acknowledge that the login event was recieved okay and set the caution if not.
Overrides:
login in class ClientApp
Parameters:
username - The username of the person you wish to log in.
password - The user's password.
Returns:
true if the login was successful, false if not.

newTask

public boolean newTask(TaskTrackerEntry task)
newTask acknowledges the newTask event and does some basic parsing of the fields.
Overrides:
newTask in class ClientApp
Parameters:
task - The TaskTrackerEntry to add to the Cos.
Returns:
true if the task was entered, false if not.
See Also:
NewTaskFrame

isConnected

public boolean isConnected()
override isConnected to always return true.
Overrides:
isConnected in class AbstractClientApp
Returns:
true always.

getUsername

public String getUsername()
overrien to enforce a test username
Overrides:
getUsername in class ClientApp
Returns:
always returns tester

getKnownUsers

public String[] getKnownUsers()
gets an array of usernames of all users known to the logged in user.
Returns:
array of usernames. just returns the an array with the names 'tester', 'tester 1' and 'tester 2'.

getKnownProjects

public String[] getKnownProjects()
gets an array of projects.
Overrides:
getKnownProjects in class ClientApp
Returns:
array of projects. just returns the an array with the words 'test project 1', 'test project 2'.

getKnownCategories

public String[] getKnownCategories()
gets an array of categories known to the system. This method has not been implemented as at Sunday 10 Feb 2002.
Overrides:
getKnownCategories in class ClientApp
Returns:
array of categories. just returns null for now.

main

public static void main(String[] args)
Let's see what this baby can do. The Main method just creates a new GuiFramesTest and opens all of the Gui Frames in this app right now. It doesn;t connect to a Cos at all, but does parse the same args as the tasktracker ClientApp for equivalence.
Parameters:
args - args[0] should be a group name and args[1] a space name. args[2] can be an optional second space.


tasktracker API version 0.1 pre-release Copyright 2002 Dave Sag. Released under the BSD Licence.