|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 property is defined. |
void |
setDynamicProperty(java.lang.String name,
java.lang.Object value)
Sets a property with the specified name and value. |
Method Detail |
---|
boolean hasDynamicProperty(java.lang.String name)
java.lang.Object getDynamicProperty(java.lang.String name)
void setDynamicProperty(java.lang.String name, java.lang.Object value) throws WrongValueException
If a component supports only String-type values, it could use org.zkoss.lang.Objects.toString() to convert the value to a String instance.
WrongValueException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |