📄 activity.java
字号:
// Abstract Data Typepackage adt ;//importsimport javax.swing.*; //This is the final package name.//import com.sun.java.swing.*; //Used by JDK 1.2 Beta 4 and all//Swing releases before Swing 1.1 Beta 3.import javax.swing.border.*;import java.awt.*;import java.awt.event.*;import java.util.*;import java.io.*;import java.net.*;import Jama.*;/** * Activity class * @author Maxime MORGE <A HREF="mailto:morge@emse.fr">morge@emse.fr</A> * @version Fev 13, 2003 * @version March 26, 2003 final one * @version July 21, 2003 */public abstract class Activity implements Serializable,Cloneable{ //ATTRIBUTS // information about the activity protected String comment; protected String name; protected URL url; /** * Get the value of name. * @return value of name. */ public String getName() { return name; } /** * Set the value of name. * @param v Value to assign to name. */ public void setName(String v) { this.name = v; } /** * Get the value of url. * @return value of url. */ public URL getUrl() { return url; } /** * Set the value of url. * @param v Value to assign to url. */ public void setUrl(URL v) { this.url = v; } /** * Gets the value of comment * * @return the value of comment */ public String getComment() { return this.comment; } /** * Sets the value of comment * * @param argComment Value to assign to this.comment */ public void setComment(String argComment){ this.comment = argComment; } /** * Creates a new <code>Alternative</code> */ public Activity(){ comment = new String("Default comment..."); } /** * <code>toString</code> Returns a short string representation of this Alternative * * @return a <code>String</code> value */ public String toString(){ return this.name; } }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -