[Nextobjects-devel] nextobjects/nextobjects/src/org/devaki/nextobjects/workspace/models/objects Labe
Status: Alpha
Brought to you by:
eflorent
From: <efl...@us...> - 2003-06-09 19:06:14
|
Update of /cvsroot/nextobjects/nextobjects/nextobjects/src/org/devaki/nextobjects/workspace/models/objects In directory sc8-pr-cvs1:/tmp/cvs-serv2512/src/org/devaki/nextobjects/workspace/models/objects Modified Files: Label.java Log Message: Added cut/paste labels. Index: Label.java =================================================================== RCS file: /cvsroot/nextobjects/nextobjects/nextobjects/src/org/devaki/nextobjects/workspace/models/objects/Label.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Label.java 8 Jun 2003 09:28:27 -0000 1.1 --- Label.java 9 Jun 2003 19:06:08 -0000 1.2 *************** *** 24,31 **** import org.devaki.nextobjects.workspace.models.graphics.ObjectView; import org.devaki.nextobjects.workspace.models.graphics.LabelView; ! import org.devaki.nextobjects.ui.workspace.models.objects.*; /** * This class is responsible for having labels * @author eflorent */ public class Label extends BaseObject --- 24,32 ---- import org.devaki.nextobjects.workspace.models.graphics.ObjectView; import org.devaki.nextobjects.workspace.models.graphics.LabelView; ! /** * This class is responsible for having labels * @author eflorent + * TODO serialize project notes - labels. */ public class Label extends BaseObject *************** *** 38,51 **** /** * Constructor ! * @param pModel */ public Label(BaseModel pModel) { super(pModel); ! this.setName("new label"); this.setDescription("Double click to edit"); labelView = new LabelView(this); } ! /** * get the label view --- 39,63 ---- /** * Constructor ! * @param pModel the context model */ public Label(BaseModel pModel) { super(pModel); ! this.setName("project note"); this.setDescription("Double click to edit"); labelView = new LabelView(this); } ! ! /** ! * Construct a new 'Label' object ! * @param pObject the label to clone ! */ ! public Label(Label pObject) ! { ! super(pObject.getMyModel()); ! this.setName(pObject.getName()); ! this.setDescription(pObject.getDescription()); ! this.labelView = new LabelView(this); ! } /** * get the label view |