1 | class TodayAction extends AbstractColumbaAction {↵ | | 1 | class GoNextAction extends AbstractColumbaAction {↵
|
|
2 | /**↵ | | 2 | /**↵
|
3 | * @param frameMediator↵ | | 3 | * @param frameMediator↵
|
4 | * @param name↵ | | 4 | * @param name↵
|
5 | */↵ | | 5 | */↵
|
6 | public TodayAction(IFrameMediator frameMediator) {↵ | | 6 | public GoNextAction(IFrameMediator frameMediator) {↵
|
7 | super(frameMediator, "Show Today");↵ | | 7 | super(frameMediator, "Go Next");↵
|
8 | ↵ | | 8 | ↵
|
9 | putValue(AbstractColumbaAction.TOOLBAR_NAME, "Today");↵ | | 9 | putValue(AbstractColumbaAction.TOOLBAR_NAME, "Next");↵
|
10 | setShowToolBarText(false);↵ | | 10 | setShowToolBarText(false);↵
|
11 | ↵ | | 11 | ↵
|
12 | putValue(AbstractColumbaAction.LARGE_ICON, ImageLoader.getIcon(IconKeys.HOME));↵ | | 12 | putValue(AbstractColumbaAction.SMALL_ICON, ImageLoader.getSmallIcon(IconKeys.GO_NEXT));↵
|
13 | putValue(AbstractColumbaAction.SMALL_ICON, ImageLoader.getSmallIcon(IconKeys.HOME));↵ | | 13 | putValue(AbstractColumbaAction.LARGE_ICON, ImageLoader.getIcon(IconKeys.GO_NEXT));↵
|
14 | }↵ | | 14 | }↵
|
|
15 | /**↵ | | 15 | /**↵
|
16 | * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)↵ | | 16 | * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)↵
|
17 | */↵ | | 17 | */↵
|
18 | public void actionPerformed(ActionEvent e) {↵ | | 18 | public void actionPerformed(ActionEvent e) {↵
|
19 | ICalendarMediator calendarFrame = (ICalendarMediator) frameMediator;↵ | | 19 | ICalendarMediator calendarFrame = (ICalendarMediator) frameMediator;↵
|
20 | ↵ | | 20 | ↵
|
21 | calendarFrame.getCalendarView().viewToday();↵ | | 21 | calendarFrame.getCalendarView().viewNext();↵
|
|
22 | } | | 22 | }
|