📄 event.java
字号:
/*
Copyright 2004 Jenkov Development
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package com.jenkov.prizetags.calendar.impl;
import com.jenkov.prizetags.calendar.itf.IEvent;
import java.util.Date;
public class Event implements IEvent{
protected long eventId = -1;
protected String name = null;
protected String description = null;
protected Date startDate = null;
protected Date endDate = null;
protected long duration = 0;
protected int priority = 0;
protected String createdBy = null;
protected long createdByUserId = -1;
protected int eventStatusId = -1;
protected String eventStatusText = null;
protected int userStatusId = -1;
protected String userStatusText = null;
protected int confidentialityLevel = 0;
public long getId() {
return eventId;
}
public void setId(long eventId) {
this.eventId = eventId;
}
public int getUserStatusId() {
return userStatusId;
}
public void setUserStatusId(int userStatusId) {
this.userStatusId = userStatusId;
}
public String getUserStatusText() {
return userStatusText;
}
public void setUserStatusText(String userStatusText) {
this.userStatusText = userStatusText;
}
public void setStatusId(int status) {
this.eventStatusId = status;
}
public int getStatusId() {
return this.eventStatusId;
}
public String getStatus() {
return eventStatusText;
}
public void setStatus(String text) {
this.eventStatusText = text;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Date getStartDate() {
return startDate;
}
public void setStartDate(Date startDate) {
this.startDate = startDate;
}
public Date getEndDate() {
return endDate;
}
public void setEndDate(Date endDate) {
this.endDate = endDate;
}
public long getDuration() {
return duration;
}
public void setDuration(long duration) {
this.duration = duration;
}
public int getPriority() {
return priority;
}
public void setPriority(int priority) {
this.priority = priority;
}
public String getCreatedBy() {
return createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
public long getCreatedByUserId() {
return createdByUserId;
}
public void setCreatedByUserId(long createdByUserId) {
this.createdByUserId = createdByUserId;
}
public int getConfidentialityLevel() {
return confidentialityLevel;
}
public void setConfidentialityLevel(int confidentialityLevel) {
this.confidentialityLevel = confidentialityLevel;
}
public String toString(){
return getName();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -