net.xoetrope.xui
Interface XPageLoader

All Known Implementing Classes:
XuiBuilder

public interface XPageLoader

An interface used by the XPageLoader to load pages

Copyright (c) Xoetrope Ltd., 2002-2003

License: see license.txt

$Revision: 2.4 $


Method Summary
 void loadFrames(java.lang.String packageName, java.lang.String pageName, XPageDisplay pageDisplay, boolean useFrames)
          Loads a frameset
 PageSupport loadPage(java.lang.String packageName, java.lang.String pageName, boolean include)
          Loads an XPage
 void setClassLoader(java.lang.ClassLoader cl)
          Set a secondary classloader for loading the classes referenced by pages
 void setPackageName(java.lang.String packageName)
          Set the default package name to use for loading pages and components
 

Method Detail

loadPage

PageSupport loadPage(java.lang.String packageName,
                     java.lang.String pageName,
                     boolean include)
Loads an XPage

Parameters:
packageName - the package or path to the page
pageName - the page name or the name of the class implementing the page
include - the page to be loaded is being included in another page
Returns:
the page

loadFrames

void loadFrames(java.lang.String packageName,
                java.lang.String pageName,
                XPageDisplay pageDisplay,
                boolean useFrames)
Loads a frameset

Parameters:
packageName - the package or path to the page
pageName - the page name or the name of the class implementing the page
pageDisplay - the object that will display the pages and frameset
useFrames - true to setup the frameset or false to add just a single target area

setPackageName

void setPackageName(java.lang.String packageName)
Set the default package name to use for loading pages and components

Parameters:
packageName - the package or path to the page

setClassLoader

void setClassLoader(java.lang.ClassLoader cl)
Set a secondary classloader for loading the classes referenced by pages

Parameters:
cl - the class loader