|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.AbstractComponent org.zkoss.zk.ui.sys.StubComponent org.zkoss.zk.ui.sys.StubsComponent
public class StubsComponent
Represents a tree of StubComponent
that are merged into
a single component.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent |
---|
AbstractComponent.Children |
Field Summary |
---|
Fields inherited from interface org.zkoss.zk.ui.Component |
---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
Fields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl |
---|
CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE |
Constructor Summary | |
---|---|
StubsComponent()
|
Method Summary | |
---|---|
java.lang.String |
getId(java.lang.String uuid)
Returns ID of the given UUID, or null if not found or no ID assigned. |
java.lang.String |
getWidgetClass()
Returns the widget class, "#stubs". |
protected boolean |
isChildable()
StubsComponent represents a collection of StubComponent ,
so it does not allow any child. |
void |
onChildrenMerged(Component replaced,
boolean bListener)
Called when this component replaced the given component, and the children of the given component shall be 'merged' to this component. |
void |
onPageAttached(Page newpage,
Page oldpage)
Default: handles special event listeners. |
void |
onPageDetached(Page page)
Default: handles special event listeners. |
void |
service(Event event,
Scope scope)
Handles an event. |
java.lang.String |
toString()
|
Methods inherited from class org.zkoss.zk.ui.sys.StubComponent |
---|
replace, service |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StubsComponent()
Method Detail |
---|
public void onChildrenMerged(Component replaced, boolean bListener)
replaced
- the component that this component will replace.
java.lang.IllegalStateException
- if this method has been called twice
(we can modify the algorithm to support but not worth).public java.lang.String getId(java.lang.String uuid)
StubComponent
Notice that it searches all descendants of this componet.
getId
in class StubComponent
public void onPageAttached(Page newpage, Page oldpage)
AbstractComponent
onPageAttached
in interface ComponentCtrl
onPageAttached
in class AbstractComponent
newpage
- the new page (never null).oldpage
- the previous page, if any, or null if it didn't
belong to any page.ComponentCtrl.onPageAttached(org.zkoss.zk.ui.Page, org.zkoss.zk.ui.Page)
public void onPageDetached(Page page)
AbstractComponent
onPageDetached
in interface ComponentCtrl
onPageDetached
in class AbstractComponent
page
- the previous page (never null)ComponentCtrl.onPageDetached(org.zkoss.zk.ui.Page)
public void service(Event event, Scope scope) throws java.lang.Exception
ComponentCtrl
service
in interface ComponentCtrl
service
in class StubComponent
event
- the event to handlescope
- the scope to evaluate the zscript, if any.
(see also Page.interpret(java.lang.String, java.lang.String, org.zkoss.zk.ui.ext.Scope)
.
java.lang.Exception
public java.lang.String getWidgetClass()
getWidgetClass
in interface Component
getWidgetClass
in class StubComponent
Component.setWidgetClass(java.lang.String)
protected boolean isChildable()
StubsComponent
represents a collection of StubComponent
,
so it does not allow any child.
isChildable
in class AbstractComponent
public java.lang.String toString()
toString
in class AbstractComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |