?? diaryform.java
字號:
/*
* DiaryForm.java
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* Author: Winter Lau (javayou@gmail.com)
* http://dlog4j.sourceforge.net
*/
package com.liusoft.dlog4j.formbean;
import java.sql.Date;
import java.sql.Time;
import java.util.Calendar;
import com.liusoft.dlog4j.base._BeanBase;
import com.liusoft.dlog4j.beans.DiaryBean;
/**
* 日記表單
* @author liudong
*/
public class DiaryForm extends FormBean {
protected int catalogId; //所在分類
protected String catalog;
protected int bgSound; //背景音樂
protected String author; //作者名稱
protected String authorUrl; //作者的主頁
protected String title; //日記標題
protected String content; //日記內容
protected String refUrl; //日記引用的地址
protected String weather; //當時的天氣
protected int moodLevel = DiaryBean.MOOD_LEVEL_3; //心情指數
protected String tags; //關鍵字,Tag,Keyword
protected int clientType = 0; //寫此日記的終端類別
protected int notify = 0; //當有新評論時候是否提醒
protected int bookmark = 0; //是否標志為書簽
protected Date writeDate; //自定義寫日記的日期
protected int writeHour; //自定義寫日記的小時
protected int writeMinute; //自定義寫日記的分鐘
protected int status = _BeanBase.STATUS_NORMAL;
public int getBookmark() {
return bookmark;
}
public void setBookmark(int bookmark) {
this.bookmark = bookmark;
}
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public String getAuthorUrl() {
return authorUrl;
}
public void setAuthorUrl(String authorUrl) {
this.authorUrl = authorUrl;
}
public int getClientType() {
return clientType;
}
public void setClientType(int clientType) {
this.clientType = clientType;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
public int getMoodLevel() {
return moodLevel;
}
public void setMoodLevel(int moodLevel) {
this.moodLevel = moodLevel;
}
public int getNotify() {
return notify;
}
public void setNotify(int notify) {
this.notify = notify;
}
public String getRefUrl() {
return refUrl;
}
public void setRefUrl(String refUrl) {
this.refUrl = refUrl;
}
public String getTags() {
return tags;
}
public void setTags(String tags) {
this.tags = tags;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getWeather() {
return weather;
}
public void setWeather(String weather) {
this.weather = weather;
}
public int getCatalogId() {
return catalogId;
}
public void setCatalogId(int catalogId) {
this.catalogId = catalogId;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public int getBgSound() {
return bgSound;
}
public void setBgSound(int bgSound) {
this.bgSound = bgSound;
}
public String getCatalog() {
return catalog;
}
public void setCatalog(String catalog) {
this.catalog = catalog;
}
public Date getWriteDate() {
return writeDate;
}
public void setWriteDate(Date writeDate) {
this.writeDate = writeDate;
}
public int getWriteHour() {
return writeHour;
}
public void setWriteHour(int writeHour) {
this.writeHour = writeHour;
}
public int getWriteMinute() {
return writeMinute;
}
public void setWriteMinute(int writeMinute) {
this.writeMinute = writeMinute;
}
public Time getWriteTime(){
if(writeHour<0 || writeHour > 23)
return null;
Calendar cal = Calendar.getInstance();
cal.set(Calendar.HOUR_OF_DAY, writeHour);
if(writeMinute >=0 && writeMinute <60)
cal.set(Calendar.MINUTE, writeMinute);
return new Time(cal.getTime().getTime());
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -