home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
VCAFE.3.0A
/
Main.bin
/
ComponentLibrary.java
< prev
next >
Wrap
Text File
|
1998-10-25
|
2KB
|
55 lines
/*
* Copyright 1998 Symantec Corporation, All Rights Reserved.
*/
package com.symantec.itools.vcafe.openapi;
/**
* The API used to represent and access the Component Library in
* Visual Cafe.
* @see VisualRepository
* @see VisualCafe#getComponentLibrary
*
* @author Symantec Internet Tools Division
* @version 1.0
* @since VCafe 3.0
*/
public abstract class ComponentLibrary implements VisualRepository
{
/**
* 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.
*
* @param name the name for the new group.
* @param 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.
* @return the new group.
*/
public abstract VisualObject insertGroup(String name, VisualObject insertionLocation);
/**
* 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.
*
* @param jarFile the jar file to be added.
*/
public abstract void addJarToLibrary(java.io.File jarFile);
/**
* 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.
*
* @param classFile the class file to be added.
* @return <code>true</code> if the class file was successfully added, <code>false</code> otherwise.
*/
public abstract boolean addClassToLibrary(java.io.File classFile);
}