|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.richclient.command.GroupMember
public abstract class GroupMember
A member of a CommandGroup.
A command group will generally consist of command objects but may also contain other objects such as separators or glue components used for spacing. This class is a simple wrapper around these various types of command group members.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
Class logger, available to subclasses. |
| Constructor Summary | |
|---|---|
GroupMember()
|
|
| Method Summary | |
|---|---|
protected abstract void |
fill(GroupContainerPopulator containerPopulator,
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. |
AbstractCommand |
getCommand()
Subclasses may override to return the command that they wrap. |
abstract 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. |
abstract void |
setEnabled(boolean enabled)
Subclasses may override this method to allow their underlying command to be enabled or disabled. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public GroupMember()
| Method Detail |
|---|
protected abstract void fill(GroupContainerPopulator containerPopulator,
Object controlFactory,
CommandButtonConfigurer buttonConfigurer,
List previousButtons)
controlFactory provided, but it will generally be
a control that a command can be associated with, such as a button or menu item.
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.
IllegalArgumentException - if containerPopulator, controlFactory
or buttonConfigurer are null.public abstract void setEnabled(boolean enabled)
enabled - The enabled flag.public abstract boolean managesCommand(String commandId)
CommandGroup.
commandId - The id of the command to be checked for. May be null.
public AbstractCommand getCommand()
protected void onAdded()
protected void onRemoved()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||