|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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?)
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 |
public java.awt.Container loadFromFile(java.lang.String filename)
public java.awt.Container create(LayoutDescription description, UIFactory factory)
Uses shared UIFactory if factory == null.
public java.awt.Container createWithAutoReplace(LayoutDescription description, UIFactory factory, boolean customizePlaceHolders)
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)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |