01: /* Constrainted.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Tue Jun 28 13:52:43 2005, Created by tomyeh
10: }}IS_NOTE
11:
12: Copyright (C) 2005 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.zul.ext;
20:
21: import org.zkoss.zul.Constraint;
22:
23: /**
24: * Decorates a component that its value is constrainted by
25: * {@link Constraint}.
26: *
27: * @author tomyeh
28: */
29: public interface Constrainted {
30: /** Sets the constraint.
31: * <p>Default: null (means no constraint all all).
32: */
33: public void setConstraint(Constraint constr);
34:
35: /** Returns the constraint, or null if no constraint at all.
36: */
37: public Constraint getConstraint();
38: }
|