|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lightdev.app.Application
com.lightdev.app.MenuApplication
com.lightdev.app.DefaultApplication
com.lightdev.app.allday.AllDay
public class AllDay
Main class of application AllDay.
Licensing this material as open source does not necessarily mean
to give it away for nothing. I always like to hear about
your comments and even without comments a short e-mail about you
using this software makes my day and lets me continue to work on
open source projects (I certainly promise to respect your privacy).
Thank you!
Application| Fields inherited from class com.lightdev.app.DefaultApplication |
|---|
ACTION_SHOW_HELP_CONTENTS |
| Fields inherited from class com.lightdev.app.MenuApplication |
|---|
menuSeparatorKey, RB_KEY_APP_MENUBAR |
| Fields inherited from class com.lightdev.app.Application |
|---|
actionSuffix, APP_HELP_NAME, imageSuffix, JAVA_HELP_EXT, labelSuffix, logger, RB_KEY_ABOUT_APP_DIALOG_TITLE, RB_KEY_LOG_APP_CAN_NOT_EXIT, RB_KEY_LOG_APP_STARTED, RB_KEY_LOG_APP_TERMINATED, RESOURCE_NOT_FOUND, resources, selectedIconSuffix, toolTipSuffix, URL_SEPARATOR |
| Constructor Summary | |
|---|---|
AllDay()
constructor |
|
| Method Summary | |
|---|---|
void |
changeYear(int changeValue)
change the year that is currently displayed |
void |
editSelectedEvent(boolean remove)
find the currently selected event and initiate an edit proces for it |
protected String |
getAppName()
get the name of this application |
DayPanel |
getDayPanel()
|
EventListPanel |
getEventListPanel()
|
YearPanel |
getYearPanel()
get the year panel of this instance of MainFrame |
protected void |
initActions()
initialize the command table of the resource menu with this application's actions |
static void |
main(String[] args)
Main method |
void |
mouseClicked(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
setEventFile(File eventFile)
set the file that has the events to be displayed by AllDay |
void |
setYear(int newYear)
set the year this instance of AllDay should display |
void |
setYearPanel(YearPanel panel)
Set this MainFrame to show a given YearPanel |
| Methods inherited from class com.lightdev.app.DefaultApplication |
|---|
findMainFrame, initMainFrame |
| Methods inherited from class com.lightdev.app.MenuApplication |
|---|
createMenu, createMenubar, createMenuItem, createToolBar, getMenuItem |
| Methods inherited from class com.lightdev.app.Application |
|---|
about, addAction, canExit, exitApplication, getAction, getBundle, getHelpBroker, getIconForCommand, getIconForName, getResource, getResourceString, log, logStackTrace, setLogging, setLogLevel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String APP_NAME
public static final String ACTION_EXIT_APP
public static final String ACTION_HELP_CONTENTS
public static final String ACTION_ABOUT_APP
public static final String ACTION_SET_YEAR
public static final String ACTION_PREV_YEAR
public static final String ACTION_NEXT_YEAR
public static final String ACTION_EDIT_PREFS
public static final String ACTION_THIS_YEAR
public static final String ACTION_NEW_EVENT
public static final String ACTION_OPEN_EVENTS
public static final String ACTION_SAVE_EVENTS
public static final String ACTION_SAVE_EVENTS_AS
public static final String ACTION_NEW_EVENTS_FILE
public static final String ACTION_EDIT_EVENT
public static final String ACTION_REMOVE_EVENT
public static final String RB_KEY_OK_BUTTON_NAME
public static final String RB_KEY_CANCEL_BUTTON_NAME
public static final String RB_KEY_HELP_BUTTON_NAME
public static final String RB_KEY_EVENTS_FILE_DESC
public static final String EVENTS_FILE_EXT
public static final int DIALOG_RESULT_OK
public static final int DIALOG_RESULT_CANCEL
public static final String LOG_APP_STARTED
public static final String LOG_APP_TERMINATED
| Constructor Detail |
|---|
public AllDay()
Application| Method Detail |
|---|
public static void main(String[] args)
public YearPanel getYearPanel()
public EventListPanel getEventListPanel()
public DayPanel getDayPanel()
public void setYearPanel(YearPanel panel)
panel - the YearPanel to show in this MainFrameprotected String getAppName()
getAppName in class Applicationprotected void initActions()
initActions in class DefaultApplicationpublic void setEventFile(File eventFile)
eventFile - File the file to get events from, or null if a new
empty event model should be createdpublic void setYear(int newYear)
newYear - int the new year to displaypublic void changeYear(int changeValue)
changeValue - int the value that should be taken to change the year, e.g.
-1 = one year less, 1 one year morepublic void editSelectedEvent(boolean remove)
remove - boolean true when the selected event should be removedpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListener
|
Copyright (c) 1989 - 2005 Ulrich Hilger | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||