01: /* ValueHolderSupport.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Aug 13, 2007 1:01:24 PM 2007, Created by Dennis.Chen
10: }}IS_NOTE
11:
12: Copyright (C) 2007 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: This program is distributed under GPL Version 2.0 in the hope that
16: it will be useful, but WITHOUT ANY WARRANTY.
17: }}IS_RIGHT
18: */
19: package org.zkoss.jsf.zul.impl;
20:
21: /**
22: * Define a set of interface to support {@link javax.faces.component.ValueHolder}
23: *
24: * @author Dennis.Chen
25: */
26: public interface ValueHolderSupport {
27:
28: /**
29: * Return the attribute name of a zul component.
30: * A Handler which process this interface will set the value of {@link javax.faces.component.ValueHolder} into the attribute of ZUL Component.
31: * return null means do not set the value of ValueHolder into zul component.
32: * @return name of attribute of zul component.
33: */
34: public String getMappedAttributeName();
35:
36: /**
37: * The value from a converter or from request submitting is a String.
38: * In some ZUL Component doen't have the suitable attribute to set a String as it's value,
39: * such as Calendar, So we need Component implementation transfer String to suitable object.
40: * @param value a String value to transfer to a component suitable Object.
41: * @return the suitable Object to set to attribute of zul component.
42: */
43: public Object transferValueForAttribute(String value);
44:
45: }
|