Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/* StubsComponent.java
Purpose:
Description:
History:
Sat Jun 4 21:24:11 TST 2011, Created by tomyeh
Copyright (C) 2011 Potix Corporation. All Rights Reserved.
*/
package org.zkoss.zk.ui.sys;
import java.util.List;
import java.util.LinkedList;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Page;
import org.zkoss.zk.ui.ext.Scope;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.StubEvent;
import org.zkoss.zk.ui.sys.EventListenerMap;
/**
* Represents a tree of {@link StubComponent} that are merged into
* a single component.
*
* @author tomyeh
* @since 6.0.0
*/
public class StubsComponent extends StubComponent {
private String[] _uuids;
/** [0]: uuid, [1]: id */
private String[][] _idmap;
/** [0]: uuid, [1]: EventListenerMap. */
private Object[][] _evtmap;
/** Called when this component replaced the given component,
* and the children of the given component shall be 'merged' to this component.
* @param replaced the component that this component will replace.
* @exception IllegalStateException if this method has been called twice
* (we can modify the algorithm to support but not worth).
*/
public void onChildrenMerged(Component replaced, boolean bListener) {
if (_uuids != null)
throw new IllegalStateException("called twice");
final List uuids = new LinkedList();
final List idmap = new LinkedList();
final List