|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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)
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. |
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)
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)
StubComponentNotice that it searches all descendants of this componet.
getId in class StubComponent
public void onPageAttached(Page newpage,
Page oldpage)
AbstractComponent
onPageAttached in interface ComponentCtrlonPageAttached in class AbstractComponentnewpage - 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 ComponentCtrlonPageDetached in class AbstractComponentpage - the previous page (never null)ComponentCtrl.onPageDetached(org.zkoss.zk.ui.Page)public java.lang.String getWidgetClass()
getWidgetClass in interface ComponentgetWidgetClass in class StubComponentComponent.setWidgetClass(java.lang.String)protected boolean isChildable()
StubsComponent represents a collection of StubComponent,
so it does not allow any child.
isChildable in class AbstractComponentpublic java.lang.String toString()
toString in class AbstractComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||