|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 |
| Fields inherited from interface org.zkoss.zk.ui.sys.PageCtrl |
|---|
ATTR_REDRAW_BY_INCLUDE |
| Constructor Summary | |
|---|---|
protected |
AbstractPage()
|
| Method Summary | |
|---|---|
void |
addFellow(Component comp)
Adds a fellow. |
void |
addRoot(Component comp)
Adds a root component to a page. |
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 the same ID space. |
Component |
getFellowIfAny(java.lang.String compId)
Returns a component of the specified ID in the same ID space, or null if not found. |
java.util.Collection |
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 |
getRoots()
Returns a readonly list of the root components. |
boolean |
hasFellow(java.lang.String compId)
Returns whether a fellow exists with the specified component ID. |
void |
moveRoot(Component comp,
Component refRoot)
Moves a root component before the reference component. |
void |
removeComponents()
Removes all components in this page. |
void |
removeFellow(Component comp)
Removes a fellow. |
void |
removeRoot(Component comp)
Detaches a root component from 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.sys.PageCtrl |
|---|
addDeferredZScript, getCacheable, getContentType, getDefaultParent, getDocType, getFirstLine, getHeaders, getOwner, getRootAttributes, init, preInit, redraw, sessionDidActivate, sessionWillPassivate, setCacheable, setContentType, setDefaultParent, setDocType, setFirstLine, setOwner, setRootAttributes |
| Constructor Detail |
|---|
protected AbstractPage()
| Method Detail |
|---|
public Component getFirstRoot()
Page
getFirstRoot in interface Pagepublic Component getLastRoot()
Page
getLastRoot in interface Pagepublic boolean hasFellow(java.lang.String compId)
IdSpace
hasFellow in interface IdSpacehasFellow in interface PageCtrlpublic Component getFellow(java.lang.String compId)
IdSpaceUnlike IdSpace.getFellowIfAny(java.lang.String), it throws an exception if not found.
getFellow in interface IdSpacepublic Component getFellowIfAny(java.lang.String compId)
IdSpaceUnlike IdSpace.getFellow(java.lang.String), it returns null if not found.
getFellowIfAny in interface IdSpacepublic java.util.Collection getFellows()
IdSpace
getFellows in interface IdSpacepublic void addFellow(Component comp)
PageCtrl
addFellow in interface PageCtrlpublic void removeFellow(Component comp)
PageCtrl
removeFellow in interface PageCtrlpublic void addRoot(Component comp)
PageCtrlIt is used internally and developers shall not invoke it explicityly.
addRoot in interface PageCtrlComponent.setPage(org.zkoss.zk.ui.Page)public void removeRoot(Component comp)
PageCtrlIt is used internally and developers shall not invoke it explicitly
removeRoot in interface PageCtrlComponent.setPage(org.zkoss.zk.ui.Page)
public void moveRoot(Component comp,
Component refRoot)
PageCtrlNote: it assumes removeRoot was called before for comp. Otherwise, nothing happens.
It is used internally and developers shall not invoke it explicitly
moveRoot in interface PageCtrlComponent.setPageBefore(org.zkoss.zk.ui.Page, org.zkoss.zk.ui.Component)public java.util.Collection getRoots()
Page
getRoots in interface Pagepublic void removeComponents()
Page
removeComponents in interface PageExecution.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 | |||||||||