|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.AbstractPage
public abstract class AbstractPage
A skeletal implementation of Page
.
Field Summary |
---|
Fields inherited from interface org.zkoss.zk.ui.Page |
---|
APPLICATION_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE |
Constructor Summary | |
---|---|
protected |
AbstractPage()
|
Method Summary | |
---|---|
void |
destroy()
Called when this page is about to be detroyed. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.zkoss.zk.ui.ext.Scope |
---|
addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute |
Methods 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, setWidgetClass |
Constructor Detail |
---|
protected AbstractPage()
Method Detail |
---|
public Component getFirstRoot()
Page
getFirstRoot
in interface Page
public Component getLastRoot()
Page
getLastRoot
in interface Page
public boolean hasFellow(java.lang.String compId)
IdSpace
hasFellow
in interface IdSpace
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 getFellowIfAny(java.lang.String compId)
IdSpace
Unlike IdSpace.getFellow(String)
, it returns null if not found.
getFellowIfAny
in interface IdSpace
public java.util.Collection<Component> getFellows()
IdSpace
getFellows
in interface IdSpace
public 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 fellow
ComponentNotFoundException
- is thrown if
this component doesn't belong to any ID spacepublic 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 boolean hasFellow(java.lang.String compId, boolean recurse)
hasFellow(String)
.
In other words, the recurse parameter is not applicable.
hasFellow
in interface IdSpace
recurse
- whether to look up the parent ID space for the
existence of the fellowpublic java.util.Collection<Component> getRoots()
Page
getRoots
in interface Page
public void removeComponents()
Page
removeComponents
in interface Page
Execution.createComponents(String,Component,Map)
public void destroy()
PageCtrl
destroy
in interface PageCtrl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |