/**
* Copyright 1999-2009 The Pegadi Team
*
* 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 org.pegadi.storysketch.cells;
public class Person implements org.jgraph.graph.DefaultGraphCell.ValueChangeHandler, java.io.Serializable {
String name;
String organization;
String position;
String phone;
String email;
String address;
int mood;
boolean anonymous;
public Person() {
name = "";
organization = "";
position = "";
phone = "";
email = "";
address = "";
mood = 50;
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setOrganization(String organization) {
this.organization = organization;
}
public String getOrganization() {
return organization;
}
public void setPosition(String position) {
this.position = position;
}
public String getPosition() {
return position;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getPhone() {
return phone;
}
public void setEmail(String email) {
this.email = email;
}
public String getEmail() {
return email;
}
public void setAddress(String address) {
this.address = address;
}
public String getAddress() {
return address;
}
public void setMood(int mood) {
this.mood = mood;
}
public int getMood() {
return mood;
}
public boolean isAnonymous() {
return anonymous;
}
public void setAnonymous(boolean anonymous) {
this.anonymous = anonymous;
}
public String toString() {
if(name.length() > 0) {
return name;
} else {
return "Person uten navn";
}
}
public Object valueChanged(Object value) {
return this;
}
public Object clone() {
return new Person();
}
}