org.mactor.ui.gui.project
Class ProjectTreeNode
java.lang.Object
org.mactor.ui.gui.project.ProjectTreeNode
- Direct Known Subclasses:
- OrganizationProjectTreeNode, XmlProjectTreeNode
public abstract class ProjectTreeNode
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
nodeType
protected ProjectNodeType nodeType
childNodes
protected java.util.ArrayList<ProjectTreeNode> childNodes
parentNode
protected ProjectTreeNode parentNode
modelObject
protected java.lang.Object modelObject
ProjectTreeNode
protected ProjectTreeNode(ProjectNodeType nodeType)
ProjectTreeNode
public ProjectTreeNode(ProjectNodeType nodeType,
java.lang.Object modelObject)
getName
public java.lang.String getName()
getCaption
public java.lang.String getCaption()
getChildNodes
public java.util.List<ProjectTreeNode> getChildNodes()
getModelObject
public java.lang.Object getModelObject()
getNodeType
public ProjectNodeType getNodeType()
getParentNode
public ProjectTreeNode getParentNode()
getChildNode
public ProjectTreeNode getChildNode(int index)
detach
public void detach()
throws MactorException
- Throws:
MactorException
removeChild
public void removeChild(ProjectTreeNode child)
throws MactorException
- Throws:
MactorException
addChild
public void addChild(ProjectTreeNode newChild)
throws MactorException
- Throws:
MactorException
addChildAfter
public void addChildAfter(ProjectTreeNode node,
ProjectTreeNode newChild)
throws MactorException
- Throws:
MactorException
rename
public boolean rename(java.lang.String newName)
throws MactorException
- Throws:
MactorException
save
public void save()
throws MactorException
- Throws:
MactorException
getIndexOfChild
public int getIndexOfChild(ProjectTreeNode child)
getChildCount
public int getChildCount()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
copy
protected abstract ProjectTreeNode copy()
throws MactorException
- Throws:
MactorException
model_remove_child
protected abstract void model_remove_child(int index)
model_insert_child
protected abstract void model_insert_child(int index,
java.lang.Object newChild)
model_delete
protected abstract void model_delete()
throws MactorException
- Throws:
MactorException
model_detatch
protected abstract void model_detatch()
throws MactorException
- Throws:
MactorException
model_rename
protected abstract boolean model_rename(java.lang.String newName)
throws MactorException
- Throws:
MactorException
model_getName
protected abstract java.lang.String model_getName()
model_save
protected abstract void model_save()
throws MactorException
- Throws:
MactorException
Copyright © 2008. All Rights Reserved.