code stringlengths 3 1.18M | language stringclasses 1
value |
|---|---|
/*
* Copyright 2009 Codecarpet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Java |
package com.codecarpet.fbconnect;
public interface ISessionDelegate {
/**
* Called when a user has successfully logged in and begun a session.
*/
public void sessionDidLogin(FBSession session, Long uid);
/**
* Called when a session is about to log out.
*/
public void sessionWillLog... | Java |
/*
* Copyright 2009 Codecarpet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Java |
/*
* Copyright 2009 Codecarpet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Java |
package com.codecarpet.fbconnect;
import java.net.URL;
public interface IDialogDelegate {
/**
* Called when the dialog succeeds and is about to be dismissed.
*/
public void dialogDidSucceed(FBDialog dialog);
/**
* Called when the dialog is cancelled and is about to be dismissed.
*/... | Java |
/*
* Copyright 2009 Codecarpet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Java |
package com.codecarpet.fbconnect;
public interface IRequestDelegate {
/**
* Called just before the request is sent to the server.
*/
public void requestLoading(FBRequest request);
/**
* Called when an error prevents the request from completing successfully.
*/
public void requestDi... | Java |
/*
* Copyright 2009 Codecarpet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Java |
/*
* Copyright 2009 Codecarpet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Java |
/*
* Copyright 2009 Codecarpet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Java |
/*
* Copyright 2009 Codecarpet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Java |
/*
* Copyright 2009 Codecarpet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Java |
/*
* Copyright 2009 Codecarpet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Java |
/*
* Copyright 2009 Codecarpet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Java |
/*
* Copyright 2009 Codecarpet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Java |
/*
* Copyright 2009 Codecarpet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | Java |
/**
* List Collection is our live storage
* It holds all the lists in a hashmap
* This is always synced with the permanent storage
* Hence access for data is provided from here
* If data is modified, it is modified here.
* DataManager then updates the permanent storage with changes made here
* @author Vaarnan Dr... | Java |
/**
* @author Vaarnan Drolia
*/
package data;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import core.Log;
import core.Utility;
public class Event
{
private String name;
private EventDateTime start;
private int duration;
private int priority;
private List<String> labels;
pr... | Java |
/**
* This is an array implementation of a list
* All events are stored under some list
* If a list is not specified, a default list is specified
* List implementation will be further developed
* @author Vaarnan Drolia
*/
package data;
import java.util.ArrayList;
import core.Log;
public class EventList
{
priv... | Java |
/**
* implements Cloneable
* deals with GregorianCalendar
* This class deals with time and calendar objects
* It is important to implement time fields of an event which are crucial to a to-do manager
* @author Vaarnan Drolia
*/
package data;
import java.text.ParseException;
import java.text.SimpleDateFormat;
imp... | Java |
/**
* This class allows sync to google calendar
* @author Vaarnan Drolia
*/
package googlecalendar;
//FIXME V check this class and document better!
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import storage.UpdateListener... | Java |
/*
* Copyright (c) 2011 Denis Tulskiy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program ... | Java |
/*
* Copyright (c) 2011 Denis Tulskiy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program ... | Java |
/*
* Copyright (c) 2011 Denis Tulskiy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program ... | Java |
/*
* Copyright (c) 2011 Denis Tulskiy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program ... | Java |
/*
* Copyright (c) 2011 Denis Tulskiy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program ... | Java |
/*
* Copyright (c) 2011 Denis Tulskiy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program ... | Java |
/*
* Copyright (c) 2011 Denis Tulskiy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program ... | Java |
/*
* Copyright (c) 2011 Denis Tulskiy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program ... | Java |
/*
* Copyright (c) 2011 Denis Tulskiy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program ... | Java |
/*
* Copyright (c) 2011 Denis Tulskiy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program ... | Java |
/*
* Copyright (c) 2011 Denis Tulskiy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program ... | Java |
/*
* Copyright (c) 2011 Denis Tulskiy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program ... | Java |
/*
* Copyright (c) 2011 Denis Tulskiy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program ... | Java |
/*
* Copyright (c) 2011 Denis Tulskiy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program ... | Java |
/*
* Copyright (c) 2011 Denis Tulskiy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program ... | Java |
/*
* Copyright (c) 2011 Denis Tulskiy
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program ... | Java |
/**
* This class contains functions to parse the user input and extract information that is needed from it
* Critical to functionality
* Uses regular expressions
* DO NOT MODIFY if not absolutely sure
* @author Vaarnan Drolia
*/
package parser;
import java.util.ArrayList;
import java.util.List;
import java.util... | Java |
/**
* Used to test regular expressions
* @author Vaarnan Drolia
*/
package parser;
import java.util.Scanner;
import java.util.regex.Pattern;
import java.util.regex.Matcher;
public class TestHarness {
public static void main(String[] args){
Scanner console = new Scanner(System.in);
while (true)... | Java |
package tests;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.Collections;
import org.junit.BeforeClass;
import org.junit.Test;
import storage.DataManager;
import data.Event;
import action.Add;
import action.Overdue;
public class OverdueTests {
private static... | Java |
package tests;
import static org.junit.Assert.*;
import googlecalendar.GoogleCalendar;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import parser.Parser;
import data.Event;
import data.EventList;
public class GoogleCalendarTests
{
private static GoogleCalen... | Java |
//package tests;
//
//import static org.junit.Assert.*;
//
//import java.util.ArrayList;
//import java.util.List;
//
//
//
//
//import org.junit.After;
//import org.junit.Before;
//import org.junit.Test;
//
//import data.Event;
//import data.EventList;
//import data.EventDateTime;
//
//public class EventListTests {
//
... | Java |
package tests;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import data.EventDateTime;
public class EventTests {
@Before
public void setUp() throws Exception {
}
@Test
public void Equalstest() {
EventDateTime abc = new EventDateTime();
EventDateT... | Java |
package tests.parser;
import static org.junit.Assert.*;
import java.util.ArrayList;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import data.Event;
import parser.Parser;
public class ParserTests
{
private String[] commands;
private String[] testDays;
private String[] testDayPrefixes;... | Java |
package tests;
import static org.junit.Assert.*;
import java.util.Calendar;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import core.Utility;
import data.EventDateTime;
public class UtilityTests extends Utility
{
@Before
public void setUp() throws Exception {
}
@After
public void ... | Java |
package tests.action;
import java.util.ArrayList;
import java.util.Calendar;
import org.junit.Before;
import org.junit.Test;
import storage.DataManager;
import core.Utility;
import data.Event;
import data.EventDateTime;
import action.Add;
import action.CheckFree;
import action.Delete;
import action.Find;
public... | Java |
package tests.action;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.Collections;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import storage.DataManager;
import storage.FileDatabase;
import action.Add;
import action.Edit;
import ac... | Java |
package tests.action;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.Collections;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import action.Add;
import action.Find;
import action.Toggle;
import storage.DataManager;
import data.Ev... | Java |
package tests.action;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.Collections;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import action.Add;
import action.Find;
import data.Event;
import parser.Parse... | Java |
package tests.action;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.Collections;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import action.Add;
import action.Edit;
import action.Find;
import storage.DataManager;
import storage.F... | Java |
package tests.action;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import data.Event;
import action.Action;
import action.Delete;
public class DeleteTests {
@Before
public void setUp() throws Exception {
}
@After
publi... | Java |
package tests.storage;
import static org.junit.Assert.*;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import storage.FileHandler;
import ... | Java |
package tests.storage;
import static org.junit.Assert.*;
import java.io.File;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import data.EventList;
import storage.FileDatabase;
public class File... | Java |
package tests.storage;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import storage.DataManager;
public class DataManagerTests
{
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
... | Java |
package tests;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import core.HttpClient;
public class HttpClientTests
{
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
@Test
public void testGetMani... | Java |
package tests;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import core.Controller;
public class ControllerTests
{
private Controller controllerObj;
@Before
public void setUp() throws Exception {
controllerObj = new Controller();
}
@After
publi... | Java |
package tests;
import static org.junit.Assert.*;
import java.util.GregorianCalendar;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import data.Event;
import data.ListCollection;
public class ListCollectionTests {
@Before
public void setUp() throws Exception {
Lis... | Java |
/**This class will contain miscellaneous functions which other classes may require.
* It should almost always have only static functions which return some value
* @author Vaarnan Drolia
*/
package core;
import java.util.Calendar;
import action.Find;
import data.Event;
import data.EventDateTime;
import parser.Parser... | Java |
/**
* This class links to our online server, verifies and downloads the updated file (if any) for the product
* @author Vaarnan Drolia
*/
package core;
/*
* ====================================================================
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor... | Java |
/**
* This class runs the entire program.
* It communicates with UI and Logic and Storage to co-ordinate the running of the application
* @author Vaarnan Drolia
*/
package core;
import java.util.Stack;
import ui.View;
import storage.DataManager;
import action.Action;
public class Controller implements Runnable... | Java |
/**
* This is a Universal Logger Class
* It is used for logging all classes
* @author Harsha Narayan
* @author Vaarnan Drolia
*/
package core;
import java.util.logging.Level;
import java.util.logging.FileHandler;
import java.util.logging.LogManager;
import java.util.logging.Logger;
public class Log
{
private st... | Java |
/**
* Manipulates the UI to show the result of the action
* @author Poornima Muthukumar
* @author Vaarnan Drolia
*
*/
package core;
import java.util.Hashtable;
import action.Action;
import action.Add;
import action.CheckFree;
import action.Delete;
import action.Edit;
import action.Find;
import a... | Java |
import java.util.logging.Level;
import ui.View;
import core.Controller;
import core.Log;
public class Main
{
private static Controller cont;
private static View view;
public static void main(String args[]) {
initialize();
}
public static void initialize() {
Log.init();
Log.setLogLevel(Level.SEVERE);
... | Java |
/**
* This class is built to automatically update the users version of QuickToDo
* @author Vaarnan Drolia
*/
package action;
import java.io.File;
import core.HttpClient;
import core.Utility;
import data.Event;
public class UpdateProgram extends Action
{
/**
* this function updates the users version of the pro... | Java |
/**
* extends Action
* This class decides which type of toggle action is expected- tick or star
* This class then calls the toggleAction class which actually implements the toggle
* @author Vaarnan Drolia
*/
package action;
import java.util.ArrayList;
import java.util.Arrays;
import action.ToggleAction.TOGGLE_TY... | Java |
/**
* This class implements the toggle action
* for toggle type star- starred events will be unstarred and vice versa
* for toggle type tick- ticked events will be unticked and vice versa
* @author Vaarnan Drolia
*/
package action;
import storage.DataManager;
import data.Event;
public class ToggleAction extends ... | Java |
/**
* extends Action
* This class finds all overdue functions and passes them out as an array
*
* @author Vaarnan Drolia
*/
package action;
import parser.Parser;
import core.Utility;
import data.Event;
public class Archive extends Action
{
/**
* @param userCommand
* @return Event[] containing all done eve... | Java |
/**
* extends Action
* This class allows the user to sync with Google Calendar
* @author Vaarnan Drolia
*/
package action;
import googlecalendar.GoogleCalendar;
import parser.Parser;
import storage.DataManager;
import core.Utility;
import data.Event;
public class GoogleCalendarAction extends Action
{
/**
* @p... | Java |
/**
* extends Action
* This class finds an event or events based on a user string
* @author Poornima Muthukumar
* @author Harsha Narayan
*/
package action;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import parser.Parser;
import storage.DataManager;
import dat... | Java |
/**
* extends Action
* Get all overdue events for the user
* Useful for reminders
* @author Harsha Narayan
*/
package action;
import java.util.ArrayList;
import storage.DataManager;
import data.Event;
import data.EventDateTime;
public class Overdue extends Action {
EventDateTime eventDateTim... | Java |
/**
* Abstract class
* The action class decides which action the user intends
* It then creates an object of that action
* Execute function overwritten in each class that inherits from this
* program dynamically runs the execute function of the action object actually chosen
* @author Vaarnan Drolia
*/
pa... | Java |
/**
* extends Action
* Add class adds an event to the database
* added event is stored in a result array
* @author Vaarnan Drolia
* @author
*/
package action;
import parser.Parser;
import storage.DataManager;
import data.Event;
public class Add extends Action
{
private Event addedEvent... | Java |
/**
* extends action
* short for FIND and EXECUTE.
* Our code narrows events down as they are searched, in a google like search method
* As a result we have to make sure only when the user actually intends to select
* an action is it actually executed
* This class ensures that only when an eventId is passed, the ... | Java |
/**
* Extends FindExec
* Deletes an event from the database
* deleted event is stored in a result array
* @author Vaarnan Drolia
*/
package action;
import storage.DataManager;
import data.Event;
public class Delete extends FindExec
{
private Event eventDeleted;
private boolean undoableCheck = fal... | Java |
/**
* This event runs a default find because the user entered no keyword
* @author Vaarnan Drolia
*/
package action;
import data.Event;
import java.lang.String;
import parser.Parser;
public class Default extends Find {
/**
* returns the result of the default action
*/
@Override
public Eve... | Java |
/**
* Edits the event and updates storage
* @author Ankit Ganla
*/
package action;
import parser.Parser;
import storage.DataManager;
import data.Event;
public class Edit extends FindExec
{
private static Event eventBeingEdited = null;
private boolean undoableCheck = false;
private Event edited... | Java |
/**
* This class helps the user find a free slot of a specified duration on a given date
* It returns all free slots
* @author Harsha Narayan
* @author Vaarnan Drolia
*/
package action;
import java.util.ArrayList;
import data.Event;
import data.EventDateTime;
import action.CheckFree;
import java.u... | Java |
/**
* extends findexec
* Allows postponing of events - changing the time to a later time
* Works on a similar principle as edit, only just time is changed
* @author Ankit Ganla
*/
package action;
import java.util.Calendar;
import parser.Parser;
import storage.DataManager;
import data.Event;
import d... | Java |
/**
* This class returns all events to remind the user of his to-do's
* It sorts all events
* 1- Overdue Events
* 2- Starred Events
* 3- Regular Events
* @author Harsha Narayan
*/
package action;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util... | Java |
/**
* This functions checks if the user is free at a particuar time on a particular date
* If there are clashing events they are returned to the user
* @author Harsha Narayan
* @author Vaarnan Drolia
*/
package action;
import java.util.ArrayList;
import core.Utility;
import parser.Parser;
import storag... | Java |
package storage;
import data.Event;
public interface UpdateListener
{
public void updated(Event oldEvent, Event newEvent);
}
| Java |
/**
* class FileDatabase
* This class serves as an abstraction to separate the DataManager from the FileHandler
* It serves as a link between the live storage and the permanent storage
* All updates to permanent storage go through this
* All access to permanent storage must be called from here
*
* @author Ankit... | Java |
/**
* class FileHandler
*
* FileHandler is the class that actually stores the data in permanent storage
* Data is stored in files that are XML coded
* Filehandler is used primarily for simple reading and writing of files to XML or txt
*
* @author Ankit Ganla
* @author Vaarnan Drolia
*/
package storage;
im... | Java |
/**
* class DataManager
*
* DataManager provides functionality to action classes to perform actions that are required
* abstracts the file handling and data storage from the action classes
* allows us to easily modify the data storage without disturbing higher level functionality
*
* current functionality-
* ... | Java |
/**
*
* class which extends keyEventDispatcher which overwrites
* some of the keys of the program to provide extended control over the keys.
*/
package ui.keymanagers;
import java.awt.KeyEventDispatcher;
import java.awt.event.KeyEvent;
import javax.swing.JDialog;
/**
*
* @author Poornima Muthukumar
*
*... | Java |
/**
*
* Class to provide functionality for capturing
* global keyboard events when the program is not in focus
*
*
* @author Vaarnan Drolia
*/
package ui.keymanagers;
import java.io.File;
import javax.swing.KeyStroke;
import com.melloware.jintellitype.HotkeyListener;
import com.melloware.jintellitype.JI... | Java |
/**
* Listener interface for GlobalKeyboardGrabber
*
* @author Vaarnan Drolia
*/
package ui.keymanagers;
public interface GlobalHotKeyListener
{
/**
* function which defines the action to be performed on pressing the global hot key
*/
public void onHotKey();
}
| Java |
/**
* class View
*
* This class acts as an intermediate between controller and AppWindow.
* It initialises the window and passes the command received from the AppWindow to the controller.
*
* @author Poornima
* @author Vaarnan
*
*/
package ui;
import java.awt.EventQueue;
import java.awt.event.ActionEvent;... | Java |
/**
*
*
* class CommandBox
*
* The commandBox gets the text entered by the user
* and notifies the AppWindow or the View class to carry out the necessary task.
* It tracks keyPress and documentChanges and responds accordingly.
*
* @author Poornima
* @author vaarnan
*/
package ui;
import java.aw... | Java |
/**
* This class is used to define the uiconstants .
* @author Poornima
*/
package ui;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Point;
import java.awt.Rectangle;
import javax.swing.BorderFactory;
import javax.swing.UIManager;
import javax.swing.border.... | Java |
/**
* class EventDetailPanel
*
* This class is used to create the dialog box
* which will display complete event details when
* the user presses enter after selecting an event.
* The details are displayed in different font style and font colour to support clarity.
*
*
* @author Poornima
*/
... | Java |
/**
* HelpScreen
*
* This class is used to create the helpScreen that will be displayed to the user when he types help -enter.
* It displays an html page for help.
*
* @author Poornima
*/
package ui.popups;
import java.io.IOException;
import javax.swing.JDialog;
import javax.swing.JEditorPane... | Java |
/**
* PasswordField
*
* This class is used to create the dialogbox which will create the login screen for the user when he presses login-enter.
* It will have a username field and password field.
*
* @Poornima
*/
package ui.popups;
import java.awt.event.ActionEvent;
import java.awt.event.Act... | Java |
/**
*
* class ResultBox
* This class is used to create the pop up result box on top.
*
* @author Poornima
* @author Vaarnan
*/
package ui.popups;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Point;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swin... | Java |
/**
*
*
*/
package ui;
import java.awt.Color;
import java.awt.Component;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.Image;
import java.awt.KeyEventDispatcher;
import java.awt.KeyboardFocusManager;
import java.awt.Point;
import java.beans.PropertyChangeEvent;
import java.... | Java |
package ui;
import java.awt.*;
import java.awt.event.*;
import javax.swing.JComponent;
import javax.swing.SwingUtilities;
/**
* Thanks to Rob Camick
* http://tips4java.wordpress.com/2009/06/14/moving-windows/
*
* This class allows you to move a Component by using a mouse. The Component
* moved can be a hig... | Java |
package ui.table;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableCellRenderer;
import javax.swing.table.Table... | Java |
/**
* class EventButton
*
* this class sets the button in the table depending on the event Detail.
* if it is starred it creates a a yellow star otherwise it creates a blank star.
* Similarly it creates a green tick and blank tick to display if it is a done event or not.
*
* @author Vaarnan
*/
p... | Java |
package ui.table;
import javax.swing.JToggleButton;
import javax.swing.table.DefaultTableModel;
import data.Event;
public class EventTableModel extends DefaultTableModel
{
/**
*
*/
private static final long serialVersionUID = 1L;
Class[] types = new Class[] {
JToggleButton.class, Event.class, JToggleButto... | Java |
/**
* This class renders the label with event details to be added to the table.
*
* @author Poornima
* @author Vaarnan
*
*/
package ui.table;
import java.awt.Color;
import java.awt.Component;
import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.JToggleButton;
import javax.sw... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.