com.arsdigita.formbuilder
Interface PersistentContainer

All Known Implementing Classes:
PersistentContainerHelper, PersistentFormSection

public interface PersistentContainer

Implemented by classes that contain persistent Bebop components. The components are added via their corresponding PersistentComponentFactory that knows how to create the component. The relationship between the container and the components is an aggregate association (in UML terminology) with multiplicity 0..N on both ends of the association.

Version:
$Id: //core-platform/dev/src/com/arsdigita/formbuilder/PersistentContainer.java#8 $
Author:
Peter Marklund

Field Summary
static String versionId
           
 
Method Summary
 void addComponent(PersistentComponentFactory componentFactory)
          Add a component last in the list of components in this container.
 void addComponent(PersistentComponentFactory componentFactory, int position)
          Add a component to the Container at the given position.
 void clearComponents()
          Delete all component associations from this container
 void moveComponent(PersistentComponentFactory componentFactory, int toPosition)
          Move component to new position.
 void removeComponent(PersistentComponentFactory componentFactory)
          Remove a component from the Container
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Method Detail

addComponent

public void addComponent(PersistentComponentFactory componentFactory)
Add a component last in the list of components in this container.


addComponent

public void addComponent(PersistentComponentFactory componentFactory,
                         int position)
Add a component to the Container at the given position.

Parameters:
position - The position to add the component at. Positions start with 1

removeComponent

public void removeComponent(PersistentComponentFactory componentFactory)
Remove a component from the Container


moveComponent

public void moveComponent(PersistentComponentFactory componentFactory,
                          int toPosition)
Move component to new position.

Parameters:
toPosition - The position to move the component to. Positions start with 1.

clearComponents

public void clearComponents()
Delete all component associations from this container



Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC