AbstractMessageNotification.java :  » MVC » simpleframework » net » simpleframework » applets » notification » Java Open Source

Java Open Source » MVC » simpleframework 
simpleframework » net » simpleframework » applets » notification » AbstractMessageNotification.java
package net.simpleframework.applets.notification;

import java.util.Date;

/**
 * LGPLv3
 * 
 * @author (cknet@126.com, 13910090885)
 *         http://code.google.com/p/simpleframework/
 *         http://www.simpleframework.net
 */
@SuppressWarnings("serial")
public abstract class AbstractMessageNotification implements IMessageNotification {

  private String subject;

  private String textBody;

  private Date sentDate;

  @Override
  public String getSubject() {
    return subject;
  }

  public void setSubject(final String subject) {
    this.subject = subject;
  }

  @Override
  public String getTextBody() {
    return textBody;
  }

  public void setTextBody(final String textBody) {
    this.textBody = textBody;
  }

  @Override
  public Date getSentDate() {
    return sentDate == null ? new Date() : sentDate;
  }

  public void setSentDate(final Date sentDate) {
    this.sentDate = sentDate;
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.