Class com.symantec.itools.vcafe.openapi.ComponentLibrary
All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class com.symantec.itools.vcafe.openapi.ComponentLibrary
Object
   |
   +----com.symantec.itools.vcafe.openapi.ComponentLibrary
  -  public abstract class ComponentLibrary
  
-  extends Object
  
-  implements VisualRepository
   
The API used to represent and access the Component Library in
 Visual Cafe.
  -  Version:
  
 -  1.0
  
 -  Author:
  
 -  Symantec Internet Tools Division
  
 -  Since:
  
 -  VCafe 3.0
    
 -  See Also:
    
 -  VisualRepository, getComponentLibrary
 
  
  -  
	com.symantec.itools.vcafe.openapi.ComponentLibrary()
   -  
 
  
  -  
	addClassToLibrary(File)
   -   Adds a class file to the Component Library in Visual Cafe.
  
 -  
	addJarToLibrary(File)
   -   Adds a jar file to the Component Library in Visual Cafe.
  
 -  
	addObject(VisualObject, VisualObject, VisualObject)
   -   Add a 
VisualObject to the repository.
   -  
	addObjectBefore(VisualObject, VisualObject, VisualObject)
   -   Add a 
VisualObject to the repository
 
   -  
	getChildren(VisualObject)
   -   Obtain the list of children 
VisualObjects of a given VisualObject
 in the repository tree.
   -  
	getObject(int)
   -   Obtain a 
VisualObject with the given id.
   -  
	getObjects()
   -   Obtain the list of all top level objects in the repository (children of
 the Root Object).
  
 -  
	getRootObject()
   -   Obtain the root 
VisualObject in the repository tree.
   -  
	insertGroup(String, VisualObject)
   -   Adds a group to the Component Library.
  
 -  
	insertObject(VisualObject, VisualObject, int)
   -   Insert a 
VisualObject at a particular location in the repository
 
   -  
	removeObject(VisualObject)
   -   Remove a given 
VisualObject from the repository.
 
  
ComponentLibrary
public ComponentLibrary()
  
addClassToLibrary
public abstract boolean addClassToLibrary(File classFile)
  -  Adds a class file to the Component Library in Visual Cafe.
 This performs the same action as using the Visual Cafe menus to insert a Component into
 the library (Insert -> Component into Library).
 Errors are reported in Visual Cafe's message window.
 Could fail if the classFile isn't actually a class file, or if the classFile isn't on the classpath.
  
 
 
    -  Parameters:
    
 -  classFile -       the class file to be added.
    
 -  Returns:
    
 -  
true if the class file was successfully added, false otherwise.
   
 
 
addJarToLibrary
public abstract void addJarToLibrary(File jarFile)
  -  Adds a jar file to the Component Library in Visual Cafe.
 This performs the same action as using the Visual Cafe menus to insert a Component into
 the library (Insert -> Component into Library).
 Errors are reported in Visual Cafe's message window.
  
 
 
    -  Parameters:
    
 -  jarFile -       the jar file to be added.
  
 
 
 
insertGroup
public abstract com.symantec.itools.vcafe.openapi.VisualObject insertGroup(String name,
                                                                           VisualObject insertionLocation)
  -  Adds a group to the Component Library.  If a group with the given name at insertionLocation
 already exists, it is returned instead of a new one.
  
 
 
    -  Parameters:
    
 -  name - 			the name for the new group.
    
-  insertionLocation - where to insert the group.  If null, the group is inserted
							at the root of the component library. If insertionLocation is
							a group, the new group is created within it.  Otherwise, the new
							group is created after insertionLocation.
    
  -  Returns:
    
 -  the new group.
  
 
 
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index