org.xpcards.model
Class NewProjectSource

java.lang.Object
  extended byorg.xpcards.model.ModelElement
      extended byorg.xpcards.model.ProjectSource
          extended byorg.xpcards.model.NewProjectSource
All Implemented Interfaces:
IIdentifiedInstance, java.io.Serializable

public class NewProjectSource
extends ProjectSource

Author:
Mikhail Galyutin
See Also:
Serialized Form

Constructor Summary
NewProjectSource(Project project)
           
 
Method Summary
 void commitProject()
          Save opearation, have to update modified flag
 java.lang.String getName()
           
 Project getProject()
           
 boolean isModified()
           
 boolean isOpened()
          Indicates if the project is opened in Collection
 void setModified(boolean modified)
           
 void setOpened(boolean opened)
           
 void updateProject()
          Load operation, have to update modified flag
 
Methods inherited from class org.xpcards.model.ProjectSource
equals, getChildren
 
Methods inherited from class org.xpcards.model.ModelElement
addModelElementListener, getCreated, getCreatedBy, getDescription, getId, getParent, isCommited, propagateCommitedForParents, removeModelElementListener, setCommited, setCommitedForSelfAndAncestors, setCommitedForSelfAndChildren, setCommitedForSelfAndDescendants, setCreated, setCreatedBy, setDescription, setId, setName, setParent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewProjectSource

public NewProjectSource(Project project)
Method Detail

getName

public java.lang.String getName()
Overrides:
getName in class ModelElement
Returns:
See Also:
ModelElement.getName()

isModified

public boolean isModified()
See Also:
org.xpcards.model.ProjectSource#isModified()

setModified

public void setModified(boolean modified)
See Also:
org.xpcards.model.ProjectSource#setModified(boolean)

isOpened

public boolean isOpened()
Description copied from class: ProjectSource
Indicates if the project is opened in Collection

Specified by:
isOpened in class ProjectSource
Returns:
See Also:
ProjectSource.isOpened()

setOpened

public void setOpened(boolean opened)
Specified by:
setOpened in class ProjectSource
See Also:
ProjectSource.setOpened(boolean)

updateProject

public void updateProject()
                   throws java.lang.Exception
Description copied from class: ProjectSource
Load operation, have to update modified flag

Specified by:
updateProject in class ProjectSource
Throws:
java.lang.Exception
See Also:
ProjectSource.updateProject()

commitProject

public void commitProject()
                   throws java.lang.Exception
Description copied from class: ProjectSource
Save opearation, have to update modified flag

Specified by:
commitProject in class ProjectSource
Throws:
java.lang.Exception
See Also:
ProjectSource.commitProject()

getProject

public Project getProject()
Specified by:
getProject in class ProjectSource
Returns:
See Also:
ProjectSource.getProject()


Copyright © 2004 Mikhail Galyutin. All Rights Reserved.