com.jgraph.example.mycellmodeleditor
Class BusinessObjectWrapper

java.lang.Object
  extended by com.jgraph.example.mycellmodeleditor.BusinessObjectWrapper

public class BusinessObjectWrapper
extends java.lang.Object

A very basic wrapper storing a reference to a custom user object with a label.

Author:
rvalyi

Constructor Summary
BusinessObjectWrapper()
           
 
Method Summary
 java.lang.String getLabel()
           
 javax.swing.tree.DefaultMutableTreeNode getValue()
           
 void setLabel(java.lang.String stringValue)
           
 void setValue(javax.swing.tree.DefaultMutableTreeNode value)
           
 java.lang.String toString()
          Used by JGraph to render the cell label
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BusinessObjectWrapper

public BusinessObjectWrapper()
Method Detail

getLabel

public java.lang.String getLabel()

setLabel

public void setLabel(java.lang.String stringValue)

getValue

public javax.swing.tree.DefaultMutableTreeNode getValue()

setValue

public void setValue(javax.swing.tree.DefaultMutableTreeNode value)

toString

public java.lang.String toString()
Used by JGraph to render the cell label

Overrides:
toString in class java.lang.Object