org.zkoss.zk.ui.ext
Interface DynamicPropertied

All Known Subinterfaces:
DynamicTag, Macro
All Known Implementing Classes:
HtmlMacroComponent, HtmlNativeComponent

public interface DynamicPropertied

Represents a component that supports a range of properties. It is used to simplify the design of a component, such that developers need to implement member functions (setter and getter) for each property it supports.

Author:
tomyeh

Method Summary
 java.lang.Object getDynamicProperty(java.lang.String name)
          Returns the property value of the specified name.
 boolean hasDynamicProperty(java.lang.String name)
          Returns whether a dynamic attribute is allowed.
 void setDynamicProperty(java.lang.String name, java.lang.Object value)
          Sets an attribute with a value.
 

Method Detail

hasDynamicProperty

boolean hasDynamicProperty(java.lang.String name)
Returns whether a dynamic attribute is allowed.


getDynamicProperty

java.lang.Object getDynamicProperty(java.lang.String name)
Returns the property value of the specified name.


setDynamicProperty

void setDynamicProperty(java.lang.String name,
                        java.lang.Object value)
                        throws WrongValueException
Sets an attribute with a value.

If a component supports only String-type values, it could use org.zkoss.lang.Objects.toString() to convert the value to a String instance.

Throws:
WrongValueException


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