org.zkoss.spring.bean
Class ZkComponentFactoryBean

java.lang.Object
  extended by org.zkoss.spring.bean.ZkComponentFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class ZkComponentFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanNameAware

BeanFactory that looks up a ZK component object. Exposes the components created by ZK Ajax framework for Spring bean references, e.g. access ZK components inside Spring beans as a ZK event handling bean.

Since:
1.2
Author:
henrichen
See Also:
ZkComponentProxyTargetSource

Constructor Summary
ZkComponentFactoryBean()
           
ZkComponentFactoryBean(boolean applied)
           
 
Method Summary
 void afterPropertiesSet()
           
 org.zkoss.zk.ui.event.EventListener getAfterCompose(java.lang.String controllerId)
           
 java.lang.String getBeanName()
           
 java.util.Set getControllerIds()
           
 java.util.Map getEventListeners()
           
 java.lang.Object getObject()
           
 java.lang.Class getObjectType()
           
 java.lang.String getPath()
          Return the ZK component path to look up.
 java.lang.Class getType()
          Return the component class that the found ZK component is supposed to be assignable to, if any.
 boolean isApplied()
           
 boolean isSingleton()
           
 void setAfterCompose(org.zkoss.zk.ui.event.EventListener afterCompose)
           
 void setBeanName(java.lang.String name)
           
 void setControllerIds(java.util.Set ids)
           
 void setEventListeners(java.util.Map eventListeners)
           
 void setPath(java.lang.String path)
          Specify the ZK component path to look up.
 void setType(java.lang.Class expectedType)
          Specify the component class that the found ZK component is supposed to be assignable to, if any.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZkComponentFactoryBean

public ZkComponentFactoryBean()

ZkComponentFactoryBean

public ZkComponentFactoryBean(boolean applied)
Method Detail

setControllerIds

public void setControllerIds(java.util.Set ids)

getControllerIds

public java.util.Set getControllerIds()

isApplied

public boolean isApplied()

setPath

public void setPath(java.lang.String path)
Specify the ZK component path to look up. If not specified, will use bean id to locate the ZK component.

Parameters:
path - the Component path to look up

getPath

public java.lang.String getPath()
Return the ZK component path to look up.


setType

public void setType(java.lang.Class expectedType)
Specify the component class that the found ZK component is supposed to be assignable to, if any.


getType

public java.lang.Class getType()
Return the component class that the found ZK component is supposed to be assignable to, if any.


getObject

public java.lang.Object getObject()
                           throws java.lang.Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
java.lang.Exception

getObjectType

public java.lang.Class getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.IllegalArgumentException,
                               javax.naming.NamingException
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.IllegalArgumentException
javax.naming.NamingException

setBeanName

public void setBeanName(java.lang.String name)
Specified by:
setBeanName in interface org.springframework.beans.factory.BeanNameAware

getBeanName

public java.lang.String getBeanName()

setEventListeners

public void setEventListeners(java.util.Map eventListeners)

getEventListeners

public java.util.Map getEventListeners()

setAfterCompose

public void setAfterCompose(org.zkoss.zk.ui.event.EventListener afterCompose)

getAfterCompose

public org.zkoss.zk.ui.event.EventListener getAfterCompose(java.lang.String controllerId)


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.