A C D E F G H I J L M N O R S T U V W

A

add(JournalEntry) - Method in class org.workjournal.Journal
Add the given journal entry.
addListener(ActionListener) - Method in class org.workjournal.JournalEntryForm
Add a listener.
APP_PROPS_FILE - Static variable in class org.workjournal.WorkJournal
App.

C

CANCEL - Static variable in class org.workjournal.JournalEntryForm
 
cancel() - Method in class org.workjournal.JournalEntryForm
Close the form and notify listeners that the data was not saved.
clone() - Method in class org.workjournal.JournalEntry
Clone this entry.
compare(Object, Object) - Method in class org.workjournal.JournalEntryComparator
Compare one journal entry to another.
copy(JournalEntry) - Method in class org.workjournal.JournalEntry
Make this entry a copy of the given entry to this entry.
count() - Method in class org.workjournal.Journal
Get the number of journal entries.

D

DATE_FORMAT - Static variable in class org.workjournal.Formats
Basic date format: MM/dd/yyyy
DB_DATE_FORMAT - Static variable in class org.workjournal.Formats
Database date format: yyyy-MM-dd
delete(JournalEntry) - Method in class org.workjournal.Journal
Delete the given journal entry.
DOW_DATE_FORMAT - Static variable in class org.workjournal.Formats
Day-of-week date format: EEE MM/dd/yyyy

E

equals(Object) - Method in class org.workjournal.JournalEntryComparator
Determine if this comparator equals the given object.
equals(Object) - Method in class org.workjournal.JournalEntry
Determine if this entry is equal to the given object.

F

Formats - class org.workjournal.Formats.
The Formats class contains constants for formatting dates, numbers, etc.

G

get(int) - Method in class org.workjournal.Journal
Get the journal entry at the given position.
getColumnClass(int) - Method in class org.workjournal.JournalTableModel
Get the class of the given column.
getColumnCount() - Method in class org.workjournal.JournalTableModel
Get the number of columns to display.
getEndHours() - Method in class org.workjournal.JournalEntry
Get the end time as hours.
getEndHoursFormatted() - Method in class org.workjournal.JournalEntry
Get the end time hours formatted as Formats.HOURS_FORMAT.
getEndTime() - Method in class org.workjournal.JournalEntry
Get end time.
getEntry() - Method in class org.workjournal.JournalEntryForm
Get journal entry.
getEntryProxy() - Method in class org.workjournal.WorkJournal
Get the journal entry proxy.
getHours() - Method in class org.workjournal.JournalEntry
Calculate and return the work hours (start hours - end hours - meal hours)
getHoursFormatted() - Method in class org.workjournal.JournalEntry
Get work hours formatted as Formats.HOURS_FORMAT.
getId() - Method in class org.workjournal.JournalEntry
Get entry ID.
getMeals() - Method in class org.workjournal.JournalEntry
Get the meal time as hours.
getMealsFormatted() - Method in class org.workjournal.JournalEntry
Get the meal time hours formatted as Formats.HOURS_FORMAT.
getMealTime() - Method in class org.workjournal.JournalEntry
Get meal time.
getNotes() - Method in class org.workjournal.JournalEntry
Get the work notes.
getRowCount() - Method in class org.workjournal.JournalTableModel
Get the number of rows in the journal.
getStartHours() - Method in class org.workjournal.JournalEntry
Get the start time as hours.
getStartHoursFormatted() - Method in class org.workjournal.JournalEntry
Get the start time hours formatted as HOURS_FORMAT.
getStartTime() - Method in class org.workjournal.JournalEntry
Get start time.
getTitle() - Method in class org.workjournal.Report
Get title.
getValueAt(int, int) - Method in class org.workjournal.JournalTableModel
Get the value at the given row and column.
getVersion() - Method in class org.workjournal.WorkJournal
Get the application version.
getWorkDate() - Method in class org.workjournal.JournalEntry
Get the work date.
getWorkDateDbFormatted() - Method in class org.workjournal.JournalEntry
Get the work date formatted as Formats.DB_DATE_FORMAT.
getWorkDateDowFormatted() - Method in class org.workjournal.JournalEntry
Get the work date formatted as Formats.DOW_DATE_FORMAT.
getWorkDateFormatted() - Method in class org.workjournal.JournalEntry
Get the work date formatted as Formats.DATE_FORMAT.

H

HOURS_FORMAT - Static variable in class org.workjournal.Formats
Hours decimal format: ##0.00
HOURS_TIME_FORMAT - Static variable in class org.workjournal.Formats
Hours time format: HH:mm

I

indexOf(JournalEntry) - Method in class org.workjournal.Journal
Get the index of the given journal entry.

J

jbInit() - Method in class org.workjournal.ReportViewer
Initialize UI components.
Journal - class org.workjournal.Journal.
Journal is a collection of JournalEntry objects.
Journal(Connection) - Constructor for class org.workjournal.Journal
Construct a new Journal.
JournalEntry - class org.workjournal.JournalEntry.
This class represents a journal entry, which is simply a record about something that has been done, such as a period of contract work, and includes things like work date, start time, end time, etc.
JournalEntry() - Constructor for class org.workjournal.JournalEntry
Construct a new JournalEntry.
JournalEntry(long) - Constructor for class org.workjournal.JournalEntry
Construct a new JournalEntry with the given ID.
JournalEntryComparator - class org.workjournal.JournalEntryComparator.
EntryComparator is used to compare journal entries when the journal is sorted.
JournalEntryComparator() - Constructor for class org.workjournal.JournalEntryComparator
Construct a new journal entry comparator.
JournalEntryForm - class org.workjournal.JournalEntryForm.
JournalEntryForm is used to enter or edit a JournalEntry.
JournalEntryForm() - Constructor for class org.workjournal.JournalEntryForm
Construct a new form.
JournalEntryForm(Journal, JournalEntry) - Constructor for class org.workjournal.JournalEntryForm
Construct a new form with the given parent.
JournalReport - class org.workjournal.JournalReport.
JournalReport is used to run a Journal Report, which looks like this:
JournalReport() - Constructor for class org.workjournal.JournalReport
Construct a Journal Report.
JournalTable - class org.workjournal.JournalTable.
This class is an extension of JTable used for displaying a Journal in a table.
JournalTable() - Constructor for class org.workjournal.JournalTable
Create a new journal table.
JournalTableModel - class org.workjournal.JournalTableModel.
JournalTableModel is a table model that is used by JournalTable to access a Journal, which is a collection of JournalEntry objects.
JournalTableModel(Journal) - Constructor for class org.workjournal.JournalTableModel
Construct a new journal table model.

L

load() - Method in class org.workjournal.Journal
Load the entries from the database.

M

main(String[]) - Static method in class org.workjournal.WorkJournal
Run the application.

N

newId() - Method in class org.workjournal.Journal
Generate a new journal entry ID.

O

org.workjournal - package org.workjournal
 

R

refresh() - Method in class org.workjournal.JournalTable
 
removeListener(ActionListener) - Method in class org.workjournal.JournalEntryForm
Remove a listener.
Report - class org.workjournal.Report.
Report is the base class for reports.
Report(String) - Constructor for class org.workjournal.Report
Create a new report.
ReportViewer - class org.workjournal.ReportViewer.
ReportViewer is used to run and view reports.
ReportViewer() - Constructor for class org.workjournal.ReportViewer
Create a new report form.
ReportViewer(Journal, Report) - Constructor for class org.workjournal.ReportViewer
Create a new report form.
run(Journal, Hashtable, PrintWriter) - Method in class org.workjournal.Report
Run report.
run(Journal, Hashtable, PrintWriter) - Method in class org.workjournal.TimeReport
Run the time report.
run(Journal, Hashtable, PrintWriter) - Method in class org.workjournal.JournalReport
Run the report.
runReport() - Method in class org.workjournal.ReportViewer
Run the report.

S

SAVE - Static variable in class org.workjournal.JournalEntryForm
 
save() - Method in class org.workjournal.JournalEntryForm
Update the entry from the fields and save it.
setEndTime(String) - Method in class org.workjournal.JournalEntry
Set end time to given time.
setId(long) - Method in class org.workjournal.JournalEntry
Set entry ID.
setMealTime(String) - Method in class org.workjournal.JournalEntry
Set meal time to given time.
setNotes(String) - Method in class org.workjournal.JournalEntry
Set the work notes to the given notes.
setStartTime(String) - Method in class org.workjournal.JournalEntry
Set start time to given time.
setTitle(String) - Method in class org.workjournal.Report
Set title.
setWorkDate(Date) - Method in class org.workjournal.JournalEntry
Set work date to given date.
setWorkDate(String) - Method in class org.workjournal.JournalEntry
Set work date from the given string, which is assumed to be formatted according to Formats.DATE_FORMAT.
sort() - Method in class org.workjournal.Journal
Sort the journal entries using a JournalEntryComparator.

T

TIME_FORMAT - Static variable in class org.workjournal.Formats
Basic time format: hh:mm a
TimeReport - class org.workjournal.TimeReport.
TimeReport is used to run a Time Report, which look liks this:
TimeReport() - Constructor for class org.workjournal.TimeReport
Construct a Time Report.
TITLE - Static variable in class org.workjournal.WorkJournal
App.

U

update(JournalEntry) - Method in class org.workjournal.Journal
Update the given journal entry.

V

VERSION_PROPS_FILE - Static variable in class org.workjournal.WorkJournal
Version file: "version.properties".

W

WINDOW_PROPS_FILE - Static variable in class org.workjournal.WorkJournal
Window properties file: "window.properties".
WorkJournal - class org.workjournal.WorkJournal.
WorkJournal is the main class of the Work Journal application.
WorkJournal() - Constructor for class org.workjournal.WorkJournal
Construct a WorkJournal.

A C D E F G H I J L M N O R S T U V W