THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
No Format |
---|
public class CompositeBehavior implements IBehavior, IHeaderContributor { private List<IBehavior> _behaviors; public CompositeBehavior() { _behaviors = new ArrayList<IBehavior>(); } .... public void bind(Component aComponent) { for (IBehavior behavior: createLocalizedBehaviors(aComponent) ) { behavior.bind(aComponent); add(behavior); } } /** * Callback to create further localized componentsbehaviors. * @return Array of behaviors. The bind() method is called on each behavior * returned from this method. */ protected abstract IBehavior[] createLocalizedBehaviors(Component aComponent); .... } |
...