com.mekmaker.common
Class AbstractDesignerTreeNode

java.lang.Object
  extended by com.mekmaker.common.AbstractDesignerTreeNode
Direct Known Subclasses:
TotalWarfareBattleMechArmorTreeNode, TotalWarfareBattleMechChassisTreeNode, TotalWarfareBattleMechEngineTreeNode, TotalWarfareBattleMechHeatSinksTreeNode

public abstract class AbstractDesignerTreeNode
extends java.lang.Object


Field Summary
protected  AbstractDesignerJPanel jPanel
           
protected  AbstractDesigner myDesign
           
protected  java.lang.String name
           
 
Constructor Summary
AbstractDesignerTreeNode(AbstractDesigner myDesign)
          Creates a new instance of AbstractDesignTreeNode
 
Method Summary
 AbstractDesignerJPanel getJPanel()
          returns the panel to use for this node
 AbstractDesigner getMyDesign()
           
abstract  AbstractDesignerJPanel setupJPanel()
          override this to provide the correct panel for interacting this this component of the design.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

jPanel

protected AbstractDesignerJPanel jPanel

name

protected java.lang.String name

myDesign

protected AbstractDesigner myDesign
Constructor Detail

AbstractDesignerTreeNode

public AbstractDesignerTreeNode(AbstractDesigner myDesign)
Creates a new instance of AbstractDesignTreeNode

Method Detail

getMyDesign

public AbstractDesigner getMyDesign()

setupJPanel

public abstract AbstractDesignerJPanel setupJPanel()
override this to provide the correct panel for interacting this this component of the design.


getJPanel

public AbstractDesignerJPanel getJPanel()
returns the panel to use for this node


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object