|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.registry.RegisteredComponentFactory
org.formaria.editor.project.pages.components.EditorRegisteredComponentFactory
public class EditorRegisteredComponentFactory
An extension of the basic registered compopnent factory that stores and processes design time information about the components
Copyright (c) Formaria Ltd., 2002-2007
$Revision: 1.18 $
License: see License.txt
| Field Summary | |
|---|---|
protected ComponentHelper |
componentHelpers
|
protected java.util.Hashtable<java.lang.String,java.net.URL> |
jarNames
|
protected java.util.Hashtable<java.lang.String,java.lang.String> |
jarPaths
|
protected XmlElement |
projectXml
|
| Fields inherited from class org.formaria.registry.RegisteredComponentFactory |
|---|
changeCounter, configFiles, currentProject, localChangeCounter, propertiesRegister, urlBase |
| Constructor Summary | |
|---|---|
EditorRegisteredComponentFactory(Project project)
|
|
| Method Summary | |
|---|---|
ComponentAdapter |
addComponentAdapter(java.lang.String owner,
java.lang.String componentName,
java.lang.String iconName,
java.lang.String clazz,
java.lang.String ui,
boolean allowsChildren,
java.net.URL[] urls,
XmlElement xml)
Create a new component adapter |
boolean |
addComponentEntry(XmlElement xml)
Add a new registration of a component to the project's component registration. |
static java.lang.String |
getComponentConfigFile(java.lang.String key)
Get the name of the file that describes the registered components |
java.util.Hashtable |
getComponents()
|
java.util.Hashtable |
getConfigFiles()
Get the configuration files |
java.util.Hashtable<java.lang.String,java.lang.String> |
getJarPaths()
Get the list of jar file paths/names |
static java.io.File |
getStorageDirectory()
Get the directory name to which the library will be extracted. |
static java.lang.String |
getUserRegistrationFileName()
Get the name of the user component registration |
void |
read()
Read the component registry. |
void |
read(java.lang.String key,
java.io.Reader reader)
Read the component registry. |
void |
registerHelpers(ComponentHelper helpers)
Register all the helpers for the package |
static void |
setComponentConfigFile(java.lang.String key,
java.lang.String configFile)
Set the name of the file that describes the registered components |
| Methods inherited from class org.formaria.registry.RegisteredComponentFactory |
|---|
addComponentAdapter, addConfigFile, addElement, addReflectionAdapter, checkRegistration, constructComponent, doRead, doRead, doRead, getComponentAdapter, read, setPackageName, update, updateConfig |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Hashtable<java.lang.String,java.lang.String> jarPaths
protected java.util.Hashtable<java.lang.String,java.net.URL> jarNames
protected ComponentHelper componentHelpers
protected XmlElement projectXml
| Constructor Detail |
|---|
public EditorRegisteredComponentFactory(Project project)
| Method Detail |
|---|
public java.util.Hashtable getComponents()
public java.util.Hashtable<java.lang.String,java.lang.String> getJarPaths()
public ComponentAdapter addComponentAdapter(java.lang.String owner,
java.lang.String componentName,
java.lang.String iconName,
java.lang.String clazz,
java.lang.String ui,
boolean allowsChildren,
java.net.URL[] urls,
XmlElement xml)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic void registerHelpers(ComponentHelper helpers)
PackageHelper
registerHelpers in interface PackageHelperhelpers - the container for the registered helperspublic java.util.Hashtable getConfigFiles()
public static java.lang.String getComponentConfigFile(java.lang.String key)
public static void setComponentConfigFile(java.lang.String key,
java.lang.String configFile)
configFile - the file name of the component config filepublic void read()
read in class RegisteredComponentFactory
public void read(java.lang.String key,
java.io.Reader reader)
read in class RegisteredComponentFactorykey - the name by which the configuration file is referencedreader - the reader from which to read the filepublic boolean addComponentEntry(XmlElement xml)
xml - the xml registration
public static java.io.File getStorageDirectory()
public static java.lang.String getUserRegistrationFileName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||