|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.richclient.command.GroupMember
org.springframework.richclient.command.LazyGroupMember
public class LazyGroupMember
A GroupMember
implementation that can be used as a placeholder for lazily initialized
commands.
Field Summary |
---|
Fields inherited from class org.springframework.richclient.command.GroupMember |
---|
logger |
Constructor Summary | |
---|---|
LazyGroupMember(CommandGroup parentGroup,
String lazyCommandId)
Creates a new LazyGroupMember belonging to the given command group and managing
a lazily initialized command with the given id. |
Method Summary | |
---|---|
protected void |
fill(GroupContainerPopulator parentContainerPopulator,
Object controlFactory,
CommandButtonConfigurer buttonConfigurer,
List previousButtons)
Subclasses must implement this method to use the given container populator to add a GUI control component to a GUI container. |
boolean |
managesCommand(String commandId)
Subclasses must implement this method to indicate whether or not they manage a command with the given id. |
protected void |
onAdded()
Subclasses may override to be notified when they are added to a command group. |
protected void |
onRemoved()
Subclasses may override to be notified when they are removed from the group they belong to. |
void |
setEnabled(boolean enabled)
Delegates this call to the lazily loaded member, but only if it has already been loaded. |
Methods inherited from class org.springframework.richclient.command.GroupMember |
---|
getCommand |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LazyGroupMember(CommandGroup parentGroup, String lazyCommandId)
LazyGroupMember
belonging to the given command group and managing
a lazily initialized command with the given id.
parentGroup
- The command group that this member belongs to.lazyCommandId
- The id of the command that this group member represents.
IllegalArgumentException
- if either argument is null.Method Detail |
---|
public void setEnabled(boolean enabled)
setEnabled
in class GroupMember
enabled
- The enabled flag.protected void fill(GroupContainerPopulator parentContainerPopulator, Object controlFactory, CommandButtonConfigurer buttonConfigurer, List previousButtons)
GroupMember
controlFactory
provided, but it will generally be
a control that a command can be associated with, such as a button or menu item.
fill
in class GroupMember
parentContainerPopulator
- 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.public boolean managesCommand(String commandId)
CommandGroup
.
managesCommand
in class GroupMember
commandId
- The id of the command to be checked for. May be null.
protected void onAdded()
onAdded
in class GroupMember
protected void onRemoved()
onRemoved
in class GroupMember
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |