Hallo,
I have checked out the source code and taken a look at the class Veil. I
found the following code:
public void bind(Component component)
{
super.bind(component);
if (component != null)
{
throw new IllegalStateException(
"This behavior is
already bound to component. An instance of this behavior cannot be
reused between components. Bound component: "
+ this.component.toString());
}
this.component = component;
}
>From the code we can see, the component will be checked after binding.
If it is null, an exception will be thrown.
Well, actually, I don't get it. Since the component can not be null
after binding, the exception will be always thrown. Show me if I am
wrong.
Has anyone ever used the mini veil? Could anyone give me hand? Thanks.
Best regards!
Jing Ge