org.mactor.ui.gui.project
Class ProjectTreeNode

java.lang.Object
  extended by org.mactor.ui.gui.project.ProjectTreeNode
Direct Known Subclasses:
OrganizationProjectTreeNode, XmlProjectTreeNode

public abstract class ProjectTreeNode
extends java.lang.Object


Field Summary
protected  java.util.ArrayList<ProjectTreeNode> childNodes
           
protected  java.lang.Object modelObject
           
protected  ProjectNodeType nodeType
           
protected  ProjectTreeNode parentNode
           
 
Constructor Summary
protected ProjectTreeNode(ProjectNodeType nodeType)
           
  ProjectTreeNode(ProjectNodeType nodeType, java.lang.Object modelObject)
           
 
Method Summary
 void addChild(ProjectTreeNode newChild)
           
 void addChildAfter(ProjectTreeNode node, ProjectTreeNode newChild)
           
protected abstract  ProjectTreeNode copy()
           
 void detach()
           
 java.lang.String getCaption()
           
 int getChildCount()
           
 ProjectTreeNode getChildNode(int index)
           
 java.util.List<ProjectTreeNode> getChildNodes()
           
 int getIndexOfChild(ProjectTreeNode child)
           
 java.lang.Object getModelObject()
           
 java.lang.String getName()
           
 ProjectNodeType getNodeType()
           
 ProjectTreeNode getParentNode()
           
protected abstract  void model_delete()
           
protected abstract  void model_detatch()
           
protected abstract  java.lang.String model_getName()
           
protected abstract  void model_insert_child(int index, java.lang.Object newChild)
           
protected abstract  void model_remove_child(int index)
           
protected abstract  boolean model_rename(java.lang.String newName)
           
protected abstract  void model_save()
           
 void removeChild(ProjectTreeNode child)
           
 boolean rename(java.lang.String newName)
           
 void save()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nodeType

protected ProjectNodeType nodeType

childNodes

protected java.util.ArrayList<ProjectTreeNode> childNodes

parentNode

protected ProjectTreeNode parentNode

modelObject

protected java.lang.Object modelObject
Constructor Detail

ProjectTreeNode

protected ProjectTreeNode(ProjectNodeType nodeType)

ProjectTreeNode

public ProjectTreeNode(ProjectNodeType nodeType,
                       java.lang.Object modelObject)
Method Detail

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.