de.kleopatra.forms.view.builder
Interface ExtFormLoader

All Superinterfaces:
FormLoader

public interface ExtFormLoader
extends FormLoader

extended loading options: from file and from LayoutDescription.

loading from file is similar to loading from resource, except that the resource is looked up at a absolute (?) file path. Dependent resources (for placeHolders) are assumed to be in the same directory as the parent resource. Secondary resources for the presentation (f.i. icons) are searched in ResourceManager.userResourceDir.

loading from a LayoutDescription directly allows to specify the factory to use for component creation. Dependent resources (for PlaceHolders' FormDescription) are searched in ResourceManager.userResourceDir

Client code is responsible for setting the resourceDir (THINK: should be?)

Version:
$Revision: 1.1.1.1 $ - $Date: 2004/06/25 09:01:00 $
Author:
(C) Jeanette Winzenburg, Berlin

Method Summary
 java.awt.Container create(LayoutDescription description, UIFactory factory)
          create and fill a container from the LayoutDescription using the given factory.
 java.awt.Container createWithAutoReplace(LayoutDescription description, UIFactory factory, boolean customizePlaceHolders)
          create and fill a container from the LayoutDescription, using the given factory, autoreplacing all placeHolder children.
 java.awt.Container loadFromFile(java.lang.String filename)
          load, create, fill and customize a container from a resource located at a file location.
 
Methods inherited from interface de.kleopatra.forms.view.builder.FormLoader
customizeActions, load, load, loadStyleMap, loadTemplate, rebuild, rebuildAll, replaceComponent, replaceComponents, setFormIO
 

Method Detail

loadFromFile

public java.awt.Container loadFromFile(java.lang.String filename)
load, create, fill and customize a container from a resource located at a file location. Semantics are equivalent to load(..)


create

public java.awt.Container create(LayoutDescription description,
                                 UIFactory factory)
create and fill a container from the LayoutDescription using the given factory.

Uses shared UIFactory if factory == null.


createWithAutoReplace

public java.awt.Container createWithAutoReplace(LayoutDescription description,
                                                UIFactory factory,
                                                boolean customizePlaceHolders)
create and fill a container from the LayoutDescription, using the given factory, autoreplacing all placeHolder children.

Uses shared UIFactory if factory == null.

optionally customize the auto-replaced children. NOTE: The not-replaced children are not customized. This is a very special-purpose method needed when the Presentation of the children is not yet available as a resource (f.i. in a Preview during form design)



Copyright © 2003, 2004 SwingEmpire Jeanette Winzenburg. All Rights Reserved.