@Component(tag="page", widgetClass="Page", content=AS_CHILD, childTag=@Component.ChildTag(value="*")) public final class Page extends BaseComponent implements INamespace
BaseComponent.SubComponent| Constructor and Description |
|---|
Page() |
| Modifier and Type | Method and Description |
|---|---|
static Page |
_create(String src)
Creates an uninitialized page.
|
static void |
_init(Page page,
ClientRequest request,
Synchronizer synchronizer)
Performs final initialization of a newly created page.
|
BaseComponent |
findById(String id)
Searches for a component attached to this page given its id.
|
Map<String,Object> |
getBrowserInfo()
Returns an immutable map of information provided by the browser.
|
String |
getBrowserInfo(String key)
Returns the requested attribute value from information provided by the client browser.
|
<T> T |
getBrowserInfo(String key,
Class<T> type)
Returns the requested attribute value, cast to the specified type, from information provided
by the client browser.
|
EventQueue |
getEventQueue()
Returns the event queue for this page.
|
String |
getQueryParam(String param)
Returns the named query parameter from the original request URL.
|
Map<String,String> |
getQueryParams()
Returns an immutable map containing all query parameters from the original request URL.
|
Session |
getSession()
Returns the web socket session dedicated to this page.
|
String |
getSrc()
Returns the URL of the FSP resource that created this page.
|
Synchronizer |
getSynchronizer()
Returns the synchronizer for this page.
|
String |
getTitle()
Returns the page title.
|
protected void |
onDestroy()
Cleanup page resources.
|
void |
setParent(BaseComponent parent)
A Page may not have a parent.
|
void |
setTitle(String title)
Sets the page title.
|
_attach, _initProps, addChild, addChild, addChild, addChildren, addEventForward, addEventForward, addEventListener, addEventListener, addEventListener, addEventListener, afterAddChild, afterRemoveChild, afterSetParent, areEqual, beforeAddChild, beforeRemoveChild, beforeSetParent, bringToFront, defaultify, destroy, destroyChildren, detach, finalize, findAttribute, findByName, findByName, findChildByData, findChildByLabel, fireEvent, fireEvent, getAncestor, getAncestor, getAttribute, getAttribute, getAttribute, getAttributes, getChild, getChildAt, getChildCount, getChildCount, getChildren, getChildren, getContent, getData, getData, getDefinition, getFirstChild, getId, getIndex, getLastChild, getName, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, hasAttribute, hasEventListener, hasEventListener, invoke, invoke, invokeIfAttached, isAncestor, isContainer, isContentSynced, isDead, isNamespace, notifyAncestors, notifyDescendants, nullify, onAttach, removeAttribute, removeChild, removeEventForward, removeEventForward, removeEventListener, removeEventListener, removeEventListener, removeEventListener, setAttribute, setContent, setContentSynced, setData, setIndex, setName, sub, swapChildren, sync, toString, trimify, validate, validate, validateChild, validateIsChild, validatePage, validateParent, wireControllerpublic static final String ID_PREFIX
public static Page _create(String src)
src - URL of a FSP resource that will be used to populate the page upon initialization.public static void _init(Page page, ClientRequest request, Synchronizer synchronizer)
page - The page to initialize.request - The initialization request from the client.synchronizer - The synchronizer that the page will use.public Synchronizer getSynchronizer()
public EventQueue getEventQueue()
public void setParent(BaseComponent parent)
setParent in class BaseComponentparent - The new parent.ComponentException - Always thrown.BaseComponent.setParent(org.fujion.component.BaseComponent)public String getBrowserInfo(String key)
key - The attribute key.public <T> T getBrowserInfo(String key, Class<T> type)
T - The expected return type.key - The attribute key.type - The expected return type.public Map<String,Object> getBrowserInfo()
public String getQueryParam(String param)
param - Name of query parameter.public Map<String,String> getQueryParams()
public Session getSession()
public String getSrc()
protected void onDestroy()
onDestroy in class BaseComponentBaseComponent.onDestroy()public BaseComponent findById(String id)
id - Identifier of the component sought.@Component.PropertyGetter(value="title") public String getTitle()
@Component.PropertySetter(value="title") public void setTitle(String title)
title - The page title.Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.