org.springframework.richclient.command
Interface GroupContainerPopulator

All Known Implementing Classes:
ButtonBarGroupContainerPopulator, ButtonStackGroupContainerPopulator, SimpleGroupContainerPopulator

public interface GroupContainerPopulator

A strategy interface for adding components to an underlying Container.

Author:
Keith Donald
See Also:
Container

Method Summary
 void add(Component component)
          Adds the given component to the underlying container.
 void addSeparator()
          Adds a separator to the underlying container.
 Container getContainer()
          Returns the underlying container that this instance is responsible for populating.
 void onPopulated()
          Called to perform any required actions once the container has been populated.
 

Method Detail

getContainer

Container getContainer()
Returns the underlying container that this instance is responsible for populating.

Returns:
The underlying container, never null.

add

void add(Component component)
Adds the given component to the underlying container.

Parameters:
component - The component to be added. Must not be null.
Throws:
IllegalArgumentException - if component is null.

addSeparator

void addSeparator()
Adds a separator to the underlying container.


onPopulated

void onPopulated()
Called to perform any required actions once the container has been populated.



Copyright © 2004-2008 The Spring Framework. All Rights Reserved.