public final class Page extends Object implements IQContextContainer
| Modifier and Type | Class and Description |
|---|---|
static class |
Page.NotificationListener<T> |
| Modifier and Type | Method and Description |
|---|---|
void |
addAfterRequestListener(IExecute x) |
void |
addBeforeRequestListener(IExecute x) |
void |
addHeaderContributor(HeaderContributor hc,
int order)
Call from within the onHeaderContributor call on a node to register any header
contributors needed by a node.
|
void |
addRemoveAfterRenderNode(NodeBase node) |
String |
allocateTestID(String initial) |
void |
appendJS(CharSequence sq)
Add a Javascript statement (MUST be a valid, semicolon-terminated statement or statement list) to
execute on return to the browser (once).
|
void |
calculateDefaultFocus(NodeBase node) |
void |
callRequestFinished() |
void |
callRequestStarted() |
void |
clearPopIn()
Remove any pending pop-in.
|
void |
controlToModel() |
protected void |
copyIdMap()
Called by all methods that change this tree.
|
NodeBase |
findNodeByID(String id) |
List<HeaderContributorEntry> |
getAddedContributors() |
List<QContextContainer> |
getAllContextContainers() |
DomApplication |
getApplication() |
Map<String,NodeBase> |
getBeforeMap() |
UrlPage |
getBody()
Return the BODY component for this page.
|
QContextContainer |
getContextContainer(String key) |
ConversationContext |
getConversation() |
<T> T |
getData(Class<T> clz) |
NodeBase |
getDefaultFocusSource() |
NodeBase |
getFocusComponent()
Return the component that currently has a focus request.
|
List<HeaderContributorEntry> |
getHeaderContributorList() |
int |
getPageExceptionCount() |
IPageParameters |
getPageParameters()
Return the readonly copy of the parameters for this page.
|
int |
getPageTag() |
NodeContainer |
getPopIn() |
int |
getRequestCounter() |
NodeBase |
getTheCurrentControl()
This tries to locate the control that the "theCurrentNode" is associated with.
|
NodeBase |
getTheCurrentNode() |
void |
inBuild() |
void |
inNull() |
void |
inRender() |
void |
internalAddContributors(List<HeaderContributorEntry> full) |
void |
internalClearDeltaFully() |
void |
internalContributorsRendered() |
void |
internalDeltaBuild()
This handles the BUILD phase for the DELTA build.
|
StringBuilder |
internalFlushAppendJS() |
StringBuilder |
internalFlushJavascriptStateChanges()
For all nodes that registered a "javascript delta", this calls that node's
NodeBase.renderJavascriptDelta(JavascriptStmt)
method, then it will reset the state for the node. |
void |
internalFullBuild()
This handles the BUILD phase for a FULL page render.
|
StringBuilder |
internalGetAppendJS() |
ConversationContext |
internalGetConversation() |
Set<NodeBase> |
internalGetJavaScriptStateChangedSet() |
void |
internalIncrementRequestCounter() |
void |
internalInitialize(IPageParameters pp,
ConversationContext cc)
Assign required data to the page.
|
Map<String,NodeBase> |
internalNodeMap() |
void |
internalRemoveFloater(FloatingDiv floater)
Callback called by a floating window when it is removed from the page.
|
void |
internalSetPhase(PagePhase phase) |
void |
internalShelve()
Call all onShelve() handlers on all attached components.
|
void |
internalUnshelve()
Call all unshelve handlers on all attached components.
|
boolean |
isAllowVectorGraphics() |
boolean |
isDestroyed() |
boolean |
isFullRenderCompleted() |
boolean |
isInjected() |
boolean |
isRenderAsXHTML() |
boolean |
isShelved() |
boolean |
isTestIDAllocated(String id) |
void |
modelToControl() |
void |
openWindow(Class<? extends UrlPage> clz,
IPageParameters pp,
WindowParameters wp)
Deprecated.
|
void |
openWindow(String windowURL,
WindowParameters wp)
Force the browser to open a new window with a user-specified URL.
|
void |
setAllowVectorGraphics(boolean allowVectorGraphics) |
<T> void |
setData(T inst) |
void |
setFocusComponent(NodeBase focusComponent) |
void |
setFullRenderCompleted(boolean fullRenderCompleted) |
void |
setInjected(boolean injected) |
void |
setPageExceptionCount(int pageExceptionCount) |
void |
setPopIn(NodeContainer pin)
This sets a new pop-in.
|
void |
setRenderAsXHTML(boolean renderAsXHTML) |
void |
setTheCurrentNode(NodeBase b) |
String |
toString() |
public void inNull()
public void inRender()
public void inBuild()
public final void internalInitialize(@Nonnull IPageParameters pp, @Nonnull ConversationContext cc)
pp - cc - @Nullable public NodeBase getTheCurrentControl()
@Nonnull public DomApplication getApplication()
@Nonnull public IPageParameters getPageParameters()
public int getRequestCounter()
public void internalIncrementRequestCounter()
public final int getPageTag()
protected final void copyIdMap()
public void internalClearDeltaFully()
public final void addHeaderContributor(@Nonnull HeaderContributor hc, int order)
hc - public void internalAddContributors(@Nonnull List<HeaderContributorEntry> full)
@Nonnull public List<HeaderContributorEntry> getHeaderContributorList()
@Nonnull public List<HeaderContributorEntry> getAddedContributors()
public void internalContributorsRendered()
public <T> void setData(@Nonnull T inst)
public void internalRemoveFloater(@Nonnull FloatingDiv floater)
floater - public void internalFullBuild()
throws Exception
Exceptionpublic void internalDeltaBuild()
throws Exception
Exceptionpublic void appendJS(@Nonnull CharSequence sq)
@Nullable public StringBuilder internalFlushAppendJS()
@Nonnull public StringBuilder internalGetAppendJS()
public void openWindow(@Nonnull String windowURL, @Nullable WindowParameters wp)
windowURL - The url to open. If this is a relative path it will get the webapp
context appended to it.wp - @Deprecated public void openWindow(@Nonnull Class<? extends UrlPage> clz, @Nullable IPageParameters pp, @Nullable WindowParameters wp)
DomUtil#createOpenWindowJS(Class, PageParameters, WindowParameters).
Open a DomUI page in a separate browser popup window. This window will create it's own WindowSession.
FIXME URGENT This code needs to CREATE the window session BEFORE referring to it!!!!clz - pp - wp - @Nullable public NodeBase getFocusComponent()
@Nonnull public ConversationContext getConversation()
@Nullable public ConversationContext internalGetConversation()
public int getPageExceptionCount()
public void setPageExceptionCount(int pageExceptionCount)
public boolean isFullRenderCompleted()
public void setFullRenderCompleted(boolean fullRenderCompleted)
public void internalShelve()
throws Exception
Exceptionpublic void internalUnshelve()
throws Exception
Exceptionpublic boolean isShelved()
@Nonnull public Set<NodeBase> internalGetJavaScriptStateChangedSet()
@Nullable public StringBuilder internalFlushJavascriptStateChanges() throws Exception
NodeBase.renderJavascriptDelta(JavascriptStmt)
method, then it will reset the state for the node. Because calls might cause other nodes to become invalid this
code loops max 10 times checking the set of delta nodes.Exceptionpublic void setPopIn(@Nullable NodeContainer pin)
pin - public void clearPopIn()
@Nullable public NodeContainer getPopIn()
public boolean isDestroyed()
public boolean isInjected()
public void setInjected(boolean injected)
@Nonnull public List<QContextContainer> getAllContextContainers()
getAllContextContainers in interface IQContextContainer@Nonnull public QContextContainer getContextContainer(@Nonnull String key)
getContextContainer in interface IQContextContainerpublic boolean isAllowVectorGraphics()
public void setAllowVectorGraphics(boolean allowVectorGraphics)
public boolean isRenderAsXHTML()
public void setRenderAsXHTML(boolean renderAsXHTML)
public void calculateDefaultFocus(NodeBase node)
Copyright © 2017 etc.to. All rights reserved.