org.springframework.richclient.command
Class ComponentGroupMember
java.lang.Object
org.springframework.richclient.command.GroupMember
org.springframework.richclient.command.ComponentGroupMember
public class ComponentGroupMember
- extends GroupMember
A implementation of the GroupMember
interface that can be associated
with instances of Component
s.
- Author:
- Nils Olsson
Fields inherited from class org.springframework.richclient.command.GroupMember |
logger |
Method Summary |
protected void |
fill(GroupContainerPopulator containerPopulator,
Object controlFactory,
CommandButtonConfigurer buttonConfigurer,
List previousButtons)
Asks the given container populator to add a component to its underlying
container. |
boolean |
managesCommand(String commandId)
Searches through the component and nested components in order to see if
the command with supplied id exists in this component. |
void |
setEnabled(boolean enabled)
Forwards the enabled flag to the managed component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentGroupMember
public ComponentGroupMember(Component component)
- Creates a new
ComponentGroupMember
.
- Parameters:
component
- The component that this group member represents.
setEnabled
public void setEnabled(boolean enabled)
- Forwards the enabled flag to the managed component.
- Specified by:
setEnabled
in class GroupMember
- Parameters:
enabled
- The enabled flag.
managesCommand
public boolean managesCommand(String commandId)
- Searches through the component and nested components in order to see if
the command with supplied id exists in this component.
- Specified by:
managesCommand
in class GroupMember
- Parameters:
commandId
- The id of the command to be checked for. May be null.
- Returns:
- true if the component, or any of its nested components, is a
command with the given command id.
fill
protected void fill(GroupContainerPopulator containerPopulator,
Object controlFactory,
CommandButtonConfigurer buttonConfigurer,
List previousButtons)
- Asks the given container populator to add a component to its underlying
container.
- Specified by:
fill
in class GroupMember
- Parameters:
containerPopulator
- The object responsible for populating a GUI container with
an appropriate control component based on this instance. Must not be null.controlFactory
- The factory for creating an appropriate GUI control that the underlying
command will be associated with.buttonConfigurer
- 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.
Copyright © 2004-2008 The Spring Framework. All Rights Reserved.