org.springframework.richclient.command
Class GlueGroupMember

java.lang.Object
  extended by org.springframework.richclient.command.GroupMember
      extended by org.springframework.richclient.command.GlueGroupMember

public class GlueGroupMember
extends GroupMember

A member of a CommandGroup that represents a 'glue' component between other members of the group.

A glue component is most often used as a filler between other components in a layout where those components cannot expand beyound a maximum height or width. As the layout area expands, the glue component will expand to take up the space.

See Also:
Box.createGlue()

Field Summary
 
Fields inherited from class org.springframework.richclient.command.GroupMember
logger
 
Constructor Summary
GlueGroupMember()
          Creates a new uninitialized GlueGroupMember.
 
Method Summary
protected  void fill(GroupContainerPopulator parentContainer, Object factory, CommandButtonConfigurer configurer, List previousButtons)
          Adds a glue component using the given container populator.
 boolean managesCommand(String commandId)
          Always returns false.
 void setEnabled(boolean enabled)
          Default implemenation, performs no operation.
 
Methods inherited from class org.springframework.richclient.command.GroupMember
getCommand, onAdded, onRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlueGroupMember

public GlueGroupMember()
Creates a new uninitialized GlueGroupMember.

Method Detail

fill

protected void fill(GroupContainerPopulator parentContainer,
                    Object factory,
                    CommandButtonConfigurer configurer,
                    List previousButtons)
Adds a glue component using the given container populator. Subclasses must implement this method to use the given container populator to add a GUI control component to a GUI container. The actual type of the GUI control will be determined by the type of the controlFactory provided, but it will generally be a control that a command can be associated with, such as a button or menu item.

Specified by:
fill in class GroupMember
Parameters:
parentContainer - The object responsible for populating a GUI container with an appropriate control component based on this instance. Must not be null.
factory - The factory for creating an appropriate GUI control that the underlying command will be associated with.
configurer - The object that is to configure the newly created control component.
previousButtons - A list of AbstractButton instances that have already been added to the container. May be null or empty.

managesCommand

public final boolean managesCommand(String commandId)
Always returns false. A glue group member does not manage any commands.

Specified by:
managesCommand in class GroupMember
Parameters:
commandId - The id of the command to be checked for. May be null.
Returns:
false always.

setEnabled

public void setEnabled(boolean enabled)
Default implemenation, performs no operation.

Specified by:
setEnabled in class GroupMember
Parameters:
enabled - The enabled flag.


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