Package org.zkoss.zk.ui
Class AbstractPage
java.lang.Object
org.zkoss.zk.ui.AbstractPage
- All Implemented Interfaces:
Serializable,org.zkoss.lang.ClassResolver,Scope,IdSpace,Page,PageCtrl
- Direct Known Subclasses:
PageImpl
A skeletal implementation of
Page.- Since:
- 3.5.2
- Author:
- tomyeh
- See Also:
-
Field Summary
Fields inherited from interface org.zkoss.zk.ui.Page
APPLICATION_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Called when this page is about to be destroyed.Returns a component of the specified ID in this ID space.The same asgetFellow(String).getFellowIfAny(String compId) Returns a component of the specified ID in this ID space, or null if not found.getFellowIfAny(String compId, boolean recurse) The same asgetFellowIfAny(String).Returns all fellows in this ID space.Returns the first root component.Returns the last root component.getRoots()Returns a readonly list of the root components.booleanReturns whether there is a fellow named with the specified component ID.booleanThe same ashasFellow(String).voidRemoves all components in this page.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.zkoss.zk.ui.Page
addClassResolver, addEventListener, addFunctionMapper, addTemplate, addVariableResolver, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getComponentDefinition, getComponentDefinition, getComponentDefinitionMap, getDesktop, getEventListeners, getExpressionFactoryClass, getFunctionMapper, getId, getInterpreter, getLanguageDefinition, 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, setZScriptLanguageMethods inherited from interface org.zkoss.zk.ui.sys.PageCtrl
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, setWidgetClassMethods inherited from interface org.zkoss.zk.ui.ext.Scope
addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute
-
Constructor Details
-
AbstractPage
protected AbstractPage()
-
-
Method Details
-
getFirstRoot
Description copied from interface:PageReturns the first root component.- Specified by:
getFirstRootin interfacePage
-
getLastRoot
Description copied from interface:PageReturns the last root component.- Specified by:
getLastRootin interfacePage
-
hasFellow
Description copied from interface:IdSpaceReturns whether there is a fellow named with the specified component ID. -
hasFellow
The same ashasFellow(String). In other words, the recurse parameter is not applicable. -
getFellow
Description copied from interface:IdSpaceReturns a component of the specified ID in this ID space. Components in the same ID space are called fellows.Unlike
IdSpace.getFellowIfAny(String), it throwsComponentNotFoundExceptionif not found.- Specified by:
getFellowin interfaceIdSpace- Throws:
ComponentNotFoundException- is thrown if this component doesn't belong to any ID space
-
getFellow
The same asgetFellow(String). In other words, the recurse parameter is not applicable.- Specified by:
getFellowin interfaceIdSpacerecurse- whether to look up the parent ID space for the existence of the fellow- Throws:
ComponentNotFoundException- is thrown if this component doesn't belong to any ID space- Since:
- 5.0.0
-
getFellowIfAny
Description copied from interface:IdSpaceReturns a component of the specified ID in this ID space, or null if not found.Unlike
IdSpace.getFellow(String), it returns null if not found.- Specified by:
getFellowIfAnyin interfaceIdSpace
-
getFellowIfAny
The same asgetFellowIfAny(String). In other words, the recurse parameter is not applicable.- Specified by:
getFellowIfAnyin interfaceIdSpacerecurse- whether to look up the parent ID space for the existence of the fellow- Since:
- 5.0.0
-
getFellows
Description copied from interface:IdSpaceReturns all fellows in this ID space. The returned collection is readonly.- Specified by:
getFellowsin interfaceIdSpace
-
getRoots
Description copied from interface:PageReturns a readonly list of the root components. -
removeComponents
public void removeComponents()Description copied from interface:PageRemoves all components in this page.- Specified by:
removeComponentsin interfacePage- See Also:
-
destroy
public void destroy()Description copied from interface:PageCtrlCalled when this page is about to be destroyed. It is called by desktop, after removing it from the desktop.
-