Class DefaultContainerSelector
- java.lang.Object
-
- net.sf.jguiraffe.gui.builder.components.DefaultContainerSelector
-
- All Implemented Interfaces:
ContainerSelector
public class DefaultContainerSelector extends Object implements ContainerSelector
A default implementation of the
ContainerSelectorinterface.This implementation simply returns the passed in container tag. This is appropriate for most use cases because the components defined in the body of a container tag have to be added to the data managed by this tag. Only in very special circumstances - e.g. if a tag has to be executed in an alternative context - a different behavior is needed.
- Since:
- 1.3
- Version:
- $Id$
- Author:
- Oliver Heger
-
-
Constructor Summary
Constructors Constructor Description DefaultContainerSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompositegetComposite(Composite tag)Returns theCompositeto be used for the specified tag implementing theCompositeinterface.
-
-
-
Method Detail
-
getComposite
public Composite getComposite(Composite tag)
Returns theCompositeto be used for the specified tag implementing theCompositeinterface. This implementation returns the passed inContainerTag.- Specified by:
getCompositein interfaceContainerSelector- Parameters:
tag- the tag implementingComposite- Returns:
- the
Compositeto be used for this tag
-
-