|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.aria.ComponentFactory
org.formaria.aria.style.StyleFactory
org.formaria.editor.project.pages.components.EditorComponentFactory
public class EditorComponentFactory
A special component factory to build customized objects for use in the editor
Copyright: Copyright (c) Formaria Ltd., 1998-2003
Company: Formaria Ltd.
| Field Summary |
|---|
| Fields inherited from class org.formaria.aria.style.StyleFactory |
|---|
styleManager |
| Fields inherited from class org.formaria.aria.ComponentFactory |
|---|
adapter, ANNOTATEDIMAGE, basePackageName, BUTTON, CHECK, COMBO, componentFactories, currentMenu, currentMenuBar, currentProject, EDIT, GROUP, HOTSPOTIMAGE, IMAGE, IMAGEMAP, LABEL, layoutHelper, LIST, MENU, MENUBAR, MENUITEM, METACONTENT, PANEL, parentH, parentPanel, parentW, PASSWORD, RADIO, requiresParent, SCROLLABLEMETACONTENT, SCROLLPANE, SPLITPANE, TABLE, TABPANEL, TEXTAREA, translator, typeNames, UNKNOWN, WMF |
| Constructor Summary | |
|---|---|
EditorComponentFactory(Project project,
java.lang.String packageName)
Create the StyleFactory and initialise with an StyleManager. |
|
| Method Summary | |
|---|---|
java.lang.Object |
addComponent(java.lang.String type,
java.lang.String nameStr,
int x,
int y,
int w,
int h,
java.lang.String txt,
java.lang.String style)
A generic factory for adding Components. |
void |
applyStyle(java.awt.Component c,
java.lang.String style,
boolean lookupComp)
Apply a style to a component, looking up the style name if necessary |
void |
applyStyle(java.lang.Object c,
java.lang.String style)
Called after a new component is created. |
protected java.lang.Object |
buildRegisteredComponent(java.lang.String type,
java.lang.String content)
A generic factory for creating registered components via the ComponentConstructor interface or component factories. |
java.lang.Object |
constructComponent(java.lang.String type,
java.lang.String content)
A generic factory for constructing Components. |
protected boolean |
isComponentProxied(java.lang.Object c)
Check to see if this component should be proxied for use in the editor |
static void |
proxyComponent(java.lang.Class c)
Adds a component to the list of proxied components |
| Methods inherited from class org.formaria.aria.style.StyleFactory |
|---|
addComponent, addComponent, addComponent, addLayout, applyStyle, applyStyle, applyStyle, applyStyle, setup |
| Methods inherited from class org.formaria.aria.ComponentFactory |
|---|
addComponent, addComponent, addComponent, addElement, addLayout, getComponentAdapter, getFactories, getLayoutHelper, getParentComponent, getTypeCode, instantiate, registerComponentFactory, setLayoutHelper, setParentComponent, setRequiresParent, setResourceBundle, setupTypeNames, translate, updateComponentFactories |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EditorComponentFactory(Project project,
java.lang.String packageName)
manager - the StyleManager to initialise with| Method Detail |
|---|
public java.lang.Object constructComponent(java.lang.String type,
java.lang.String content)
constructComponent in class ComponentFactorytype - a constant identifying the type of component to be createdcontent - the component text/content
public java.lang.Object addComponent(java.lang.String type,
java.lang.String nameStr,
int x,
int y,
int w,
int h,
java.lang.String txt,
java.lang.String style)
addComponent in class StyleFactorytype - a name identifying the type of component to be createdx - the left coordinatey - the top coordinatew - the widthh - the heightcontent - the component text/content
public void applyStyle(java.awt.Component c,
java.lang.String style,
boolean lookupComp)
c - the component to stylestyle - the style namelookupComp - true to lookup the style based on the component class
public void applyStyle(java.lang.Object c,
java.lang.String style)
applyStyle in class StyleFactoryc - Component to apply the style to.style - the name of the style to apply.
protected java.lang.Object buildRegisteredComponent(java.lang.String type,
java.lang.String content)
buildRegisteredComponent in class ComponentFactorytype - a name identifying the type of component to be createdx - the left coordinatey - the top coordinatew - the widthh - the heightcontent - the component text/content
protected boolean isComponentProxied(java.lang.Object c)
c - the component
public static void proxyComponent(java.lang.Class c)
c - the component.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||