public class PageUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<BaseComponent> |
createPage(PageDefinition def,
BaseComponent parent)
Creates a Fujion Server Page from a page definition.
|
static List<BaseComponent> |
createPage(PageDefinition def,
BaseComponent parent,
Map<String,Object> args)
Creates a Fujion Server Page from a page definition.
|
static List<BaseComponent> |
createPage(String url,
BaseComponent parent)
Creates a Fujion Server Page given the URL of its page definition.
|
static List<BaseComponent> |
createPage(String url,
BaseComponent parent,
Map<String,Object> args)
Creates a Fujion Server Page given the URL of its page definition.
|
static List<BaseComponent> |
createPageFromContent(String content,
BaseComponent parent)
Creates a Fujion Server Page directly from XML.
|
static List<BaseComponent> |
createPageFromContent(String content,
BaseComponent parent,
Map<String,Object> args)
Creates a Fujion Server Page directly from XML.
|
static PageDefinition |
getPageDefinition(String url)
Given the URL of its source, retrieves the page definition from the cache.
|
static boolean |
inExecutionContext(Page page)
Returns true if the current execution context belongs to the specified page.
|
public static PageDefinition getPageDefinition(String url)
url - The URL of the page definition.public static List<BaseComponent> createPage(String url, BaseComponent parent)
url - URL of the page definition.parent - Component the will become the parent of any top level components. May be null.public static List<BaseComponent> createPage(String url, BaseComponent parent, Map<String,Object> args)
url - URL of the page definition.parent - Component the will become the parent of any top level components. May be null.args - A map of arguments that will be copied into the attribute maps of all top level
components. This may be null.public static List<BaseComponent> createPage(PageDefinition def, BaseComponent parent)
def - The page definition.parent - Component the will become the parent of any top level components. May be null.public static List<BaseComponent> createPage(PageDefinition def, BaseComponent parent, Map<String,Object> args)
def - The page definition.parent - Component the will become the parent of any top level components. May be null.args - A map of arguments that will be copied into the attribute maps of all top level
components. This may be null.public static List<BaseComponent> createPageFromContent(String content, BaseComponent parent)
content - String containing FSP markup.parent - Component the will become the parent of any top level components. May be null.public static List<BaseComponent> createPageFromContent(String content, BaseComponent parent, Map<String,Object> args)
content - String containing FSP markup.parent - Component the will become the parent of any top level components. May be null.args - A map of arguments that will be copied into the attribute maps of all top level
components. This may be null.public static boolean inExecutionContext(Page page)
page - Page instance.Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.