org.formaria.editor.project.registry
Class ClassTreeNodeItem

java.lang.Object
  extended by org.formaria.editor.project.registry.ClassTreeNodeItem

public class ClassTreeNodeItem
extends java.lang.Object

A component class utility class for registering components

Copyright (c) Formaria Ltd., 2002-2007

$Revision: 1.18 $

License: see License.txt


Nested Class Summary
 class ClassTreeNodeItem.Property
           
 
Constructor Summary
ClassTreeNodeItem(java.lang.Class clazz, boolean mode, org.formaria.editor.project.registry.JarRef jar)
          Constructs a palette item from the fully qualified bean name
 
Method Summary
 java.lang.Object createProperty(java.lang.Object[] values)
           
 java.lang.String getIconFile()
          Retrieves the icon for the beaninfo
 boolean getIsSystemClass()
          Get the isSystemClass flag which indicates if the class is loaded by the system/plugins or from user specified Jars
 org.formaria.editor.project.registry.JarRef getJarRef()
           
 java.lang.String getName()
           
 java.awt.Dimension getPreferredSize()
          Get the preferred size for a new component
 java.lang.String getUI()
          Get the name of teh Widget set.
 java.lang.Class getUserClass()
           
 java.lang.String getUserName()
          Get a user name for this bean.
 java.util.ArrayList getUserProperties()
          Get the user properties for this bean.
 void setIconFile(java.lang.String value)
          Retrieves the icon for the beaninfo
 void setIsSystemClass(boolean isSysClass)
          Set the isSystemClass flag to indicate if the class is loaded by the system/plugins or from user specified Jars
 void setJarRef(org.formaria.editor.project.registry.JarRef jr)
           
 void setPreferredSize(java.awt.Dimension size)
           
 void setUserName(java.lang.String un)
          Set a user name for this bean.
 void setUserProperties(java.util.ArrayList props)
          Set a user properties for this bean.
 java.lang.String toString()
          Get the name to dispay in the tree view
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassTreeNodeItem

public ClassTreeNodeItem(java.lang.Class clazz,
                         boolean mode,
                         org.formaria.editor.project.registry.JarRef jar)
Constructs a palette item from the fully qualified bean name

Parameters:
beanName - - The name of the bean that this item represents. i.e. javax.swing.JButton
Throws:
java.lang.ClassNotFoundException
Method Detail

setIsSystemClass

public void setIsSystemClass(boolean isSysClass)
Set the isSystemClass flag to indicate if the class is loaded by the system/plugins or from user specified Jars

Parameters:
isSysClass - the flag value

getIsSystemClass

public boolean getIsSystemClass()
Get the isSystemClass flag which indicates if the class is loaded by the system/plugins or from user specified Jars

Returns:
isSysClass

getUI

public java.lang.String getUI()
Get the name of teh Widget set.

Returns:
Swing or AWT

getIconFile

public java.lang.String getIconFile()
Retrieves the icon for the beaninfo


setIconFile

public void setIconFile(java.lang.String value)
Retrieves the icon for the beaninfo


getName

public java.lang.String getName()

getUserName

public java.lang.String getUserName()
Get a user name for this bean.

Returns:

setUserName

public void setUserName(java.lang.String un)
Set a user name for this bean.


getUserClass

public java.lang.Class getUserClass()

getUserProperties

public java.util.ArrayList getUserProperties()
Get the user properties for this bean.


setUserProperties

public void setUserProperties(java.util.ArrayList props)
Set a user properties for this bean.


toString

public java.lang.String toString()
Get the name to dispay in the tree view

Overrides:
toString in class java.lang.Object
Returns:
the name to display

createProperty

public java.lang.Object createProperty(java.lang.Object[] values)

getPreferredSize

public java.awt.Dimension getPreferredSize()
Get the preferred size for a new component

Returns:
the size

setPreferredSize

public void setPreferredSize(java.awt.Dimension size)

getJarRef

public org.formaria.editor.project.registry.JarRef getJarRef()

setJarRef

public void setJarRef(org.formaria.editor.project.registry.JarRef jr)