wt.clients.beans
Class ClassItem

java.lang.Object
  extended bywt.clients.beans.ClassItem
All Implemented Interfaces:
Explorable, Identifiable, ReferenceHolder

public class ClassItem
extends Object
implements Explorable

This is a model class for ClassInfo objects. It implements the Explorable interface to allow displaying class hierarchies in the WTExplorer.

Supported API: false

Extendable: false

See Also:
ClassInfo, WTExplorer, ClassExplorer, Explorable

Field Summary
private  ClassInfo classInfo
           
private  ClassInfo[] descendants
           
private static IconCache iconCache
           
private  String myIdentity
           
private  String openIconResource
           
private  PropertyDescriptor[] properties
           
private  String standardIconResource
           
 
Constructor Summary
ClassItem(ClassInfo classInfo)
           
ClassItem(String className)
           
 
Method Summary
 ClassInfo getClassInfo()
           
 Explorable[] getContents()
          Gets the contained objects for this object.
private  WTContext getContext()
           
 String getIdentity()
          Gets the identifying string display for this object.
 Object getObject()
          Implemented to get the value of the Object maintained by this reference.
 Image getOpenIcon()
          Gets the image to display for this object when its node is expanded in a tree.
 Image getStandardIcon()
          Gets the image to display for this object.
 String getUniqueIdentity()
          Gets the uniquely identifying string display for this object.
 Explorable[] getUses()
          Gets the children objects for this object.
private  void initIconCache()
           
 void setClassInfo(ClassInfo classInfo)
           
 void setObject(Object obj)
          Implemented to set the value of the Object maintained by this reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

classInfo

private ClassInfo classInfo

descendants

private ClassInfo[] descendants

properties

private PropertyDescriptor[] properties

iconCache

private static IconCache iconCache

myIdentity

private String myIdentity

openIconResource

private String openIconResource

standardIconResource

private String standardIconResource
Constructor Detail

ClassItem

public ClassItem(String className)

ClassItem

public ClassItem(ClassInfo classInfo)
Method Detail

setClassInfo

public void setClassInfo(ClassInfo classInfo)

getClassInfo

public ClassInfo getClassInfo()

getIdentity

public String getIdentity()
Description copied from interface: Identifiable
Gets the identifying string display for this object. This string is for display to the user in the application. It does not have to be unique.

Specified by:
getIdentity in interface Identifiable
Returns:
the string to display for this object .

getUniqueIdentity

public String getUniqueIdentity()
Description copied from interface: Identifiable
Gets the uniquely identifying string display for this object. This string should be unique for all objects. It is not meant for display, rather it is used internally for object identification.

Specified by:
getUniqueIdentity in interface Identifiable
Returns:
the uniquely identifying string to display for this object.

getUses

public Explorable[] getUses()
                     throws WTException
Description copied from interface: Explorable
Gets the children objects for this object.

Specified by:
getUses in interface Explorable
Returns:
an array of the children for this object.
Throws:
WTException
See Also:
WTException

getContents

public Explorable[] getContents()
                         throws WTException
Description copied from interface: Explorable
Gets the contained objects for this object.

Specified by:
getContents in interface Explorable
Returns:
an array of the contained objects for this object.
Throws:
WTException
See Also:
WTException

getObject

public Object getObject()
Description copied from interface: ReferenceHolder
Implemented to get the value of the Object maintained by this reference.

Specified by:
getObject in interface ReferenceHolder

setObject

public void setObject(Object obj)
Description copied from interface: ReferenceHolder
Implemented to set the value of the Object maintained by this reference.

Specified by:
setObject in interface ReferenceHolder

getStandardIcon

public Image getStandardIcon()
Description copied from interface: Identifiable
Gets the image to display for this object.

Specified by:
getStandardIcon in interface Identifiable
Returns:
the image to display for this object.

getOpenIcon

public Image getOpenIcon()
Description copied from interface: Identifiable
Gets the image to display for this object when its node is expanded in a tree.

Specified by:
getOpenIcon in interface Identifiable
Returns:
the image to display for this object when expanded.

initIconCache

private void initIconCache()

getContext

private WTContext getContext()