org.springframework.richclient.command.support
Class SimpleGroupContainerPopulator

java.lang.Object
  extended by org.springframework.richclient.command.support.SimpleGroupContainerPopulator
All Implemented Interfaces:
GroupContainerPopulator
Direct Known Subclasses:
ButtonBarGroupContainerPopulator, ButtonStackGroupContainerPopulator

public class SimpleGroupContainerPopulator
extends Object
implements GroupContainerPopulator

A default implementation of the GroupContainerPopulator interface.


Constructor Summary
SimpleGroupContainerPopulator(Container container)
          Creates a new SimpleGroupContainerPopulator that will populate the given container.
 
Method Summary
 void add(Component c)
          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()
          Default implementation, no action is performed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleGroupContainerPopulator

public SimpleGroupContainerPopulator(Container container)
Creates a new SimpleGroupContainerPopulator that will populate the given container.

Parameters:
container - The container to be populated. Must not be null.
Throws:
IllegalArgumentException - if container is null.
Method Detail

getContainer

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

Specified by:
getContainer in interface GroupContainerPopulator
Returns:
The underlying container, never null.

add

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

Specified by:
add in interface GroupContainerPopulator
Parameters:
c - The component to be added. Must not be null.

addSeparator

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

Specified by:
addSeparator in interface GroupContainerPopulator

onPopulated

public void onPopulated()
Default implementation, no action is performed.

Specified by:
onPopulated in interface GroupContainerPopulator


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