public abstract class AbstractPage extends java.lang.Object implements Page, PageCtrl, java.io.Serializable
Page
.APPLICATION_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE
Modifier | Constructor and Description |
---|---|
protected |
AbstractPage() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Called when this page is about to be destroyed.
|
Component |
getFellow(java.lang.String compId)
Returns a component of the specified ID in this ID space.
|
Component |
getFellow(java.lang.String compId,
boolean recurse)
The same as
getFellow(String) . |
Component |
getFellowIfAny(java.lang.String compId)
Returns a component of the specified ID in this ID space, or null
if not found.
|
Component |
getFellowIfAny(java.lang.String compId,
boolean recurse)
The same as
getFellowIfAny(String) . |
java.util.Collection<Component> |
getFellows()
Returns all fellows in this ID space.
|
Component |
getFirstRoot()
Returns the first root component.
|
Component |
getLastRoot()
Returns the last root component.
|
java.util.Collection<Component> |
getRoots()
Returns a readonly list of the root components.
|
boolean |
hasFellow(java.lang.String compId)
Returns whether there is a fellow named with the specified component ID.
|
boolean |
hasFellow(java.lang.String compId,
boolean recurse)
The same as
hasFellow(String) . |
void |
removeComponents()
Removes all components in this page.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addClassResolver, addEventListener, addFunctionMapper, addTemplate, addVariableResolver, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getComponentDefinition, getComponentDefinition, getComponentDefinitionMap, getDesktop, getEventListeners, getExpressionFactoryClass, getFunctionMapper, getId, getInterpreter, getLanguageDefinition, getListenerIterator, getLoadedInterpreters, getRequestPath, getStyle, getTemplate, getTitle, getUuid, getViewport, getXelVariable, getXelVariable, getZScriptClass, getZScriptFunction, getZScriptFunction, getZScriptLanguage, getZScriptVariable, getZScriptVariable, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFunctionMapper, hasVariableResolver, interpret, invalidate, isAlive, isComplete, isListenerAvailable, removeAttribute, removeAttribute, removeEventListener, removeFunctionMapper, removeTemplate, removeVariableResolver, resolveClass, setAttribute, setAttribute, setComplete, setExpressionFactoryClass, setId, setStyle, setTitle, setViewport, setZScriptLanguage
addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute
addAfterHeadTags, addBeforeHeadTags, addDeferredZScript, getAfterHeadTags, getAutomaticTimeout, getBeforeHeadTags, getCacheable, getContentType, getDocType, getFirstLine, getOwner, getResponseHeaders, getRootAttributes, getWidgetClass, init, preInit, redraw, sessionDidActivate, sessionWillPassivate, setAutomaticTimeout, setCacheable, setContentType, setDocType, setFirstLine, setOwner, setRootAttributes, setWidgetClass
public Component getFirstRoot()
Page
getFirstRoot
in interface Page
public Component getLastRoot()
Page
getLastRoot
in interface Page
public boolean hasFellow(java.lang.String compId)
IdSpace
public boolean hasFellow(java.lang.String compId, boolean recurse)
hasFellow(String)
.
In other words, the recurse parameter is not applicable.public Component getFellow(java.lang.String compId) throws ComponentNotFoundException
IdSpace
Unlike IdSpace.getFellowIfAny(String)
, it throws ComponentNotFoundException
if not found.
getFellow
in interface IdSpace
ComponentNotFoundException
- is thrown if
this component doesn't belong to any ID spacepublic Component getFellow(java.lang.String compId, boolean recurse) throws ComponentNotFoundException
getFellow(String)
.
In other words, the recurse parameter is not applicable.getFellow
in interface IdSpace
recurse
- whether to look up the parent ID space for the
existence of the fellowComponentNotFoundException
- is thrown if
this component doesn't belong to any ID spacepublic Component getFellowIfAny(java.lang.String compId)
IdSpace
Unlike IdSpace.getFellow(String)
, it returns null if not found.
getFellowIfAny
in interface IdSpace
public Component getFellowIfAny(java.lang.String compId, boolean recurse)
getFellowIfAny(String)
.
In other words, the recurse parameter is not applicable.getFellowIfAny
in interface IdSpace
recurse
- whether to look up the parent ID space for the
existence of the fellowpublic java.util.Collection<Component> getFellows()
IdSpace
getFellows
in interface IdSpace
public java.util.Collection<Component> getRoots()
Page
public void removeComponents()
Page
removeComponents
in interface Page
Execution.createComponents(String,Component,Map)
Copyright © 2005-2023 Potix Corporation. All Rights Reserved.