calendarmodel.java
来自「这个weblogging 设计得比较精巧」· Java 代码 · 共 46 行
JAVA
46 行
package org.roller.presentation.tags.calendar;import java.util.Calendar;import java.util.Date;/** * Model interface for the CalendarTag. The CalendarTag will set a day, * then use the computeUrl method to get the URLs it needs. */public interface CalendarModel { public Calendar getCalendar(); public void setDay( String month ) throws Exception; public Date getDay(); public Date getNextMonth(); public String computePrevMonthUrl(); public String computeTodayMonthUrl(); public String computeNextMonthUrl(); /** * Create URL for use on edit-weblog page, preserves the request * parameters used by the tabbed-menu tag for navigation. * * @param day Day for URL * @param valid Always return a URL, never return null * @return URL for day, or null if no weblog entry on that day */ public String computeUrl( java.util.Date day, boolean valid ); /** * Get calendar cell content or null if none. * * @param day Day for URL * @param valid Always return a URL, never return null * @return Calendar cell content or null if none. */ public String getContent( java.util.Date day );}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?