|
||||||||||
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.ExpansionPointGroupMember
public class ExpansionPointGroupMember
A collection of GroupMember
s that represent a subsection of a CommandGroup
.
Field Summary |
---|
Fields inherited from class org.springframework.richclient.command.GroupMember |
---|
logger |
Constructor Summary | |
---|---|
protected |
ExpansionPointGroupMember()
Creates a new ExpansionPointGroupMember with a default name. |
protected |
ExpansionPointGroupMember(String expansionPointName)
Creates a new ExpansionPointGroupMember with the given name. |
Method Summary | |
---|---|
protected void |
add(GroupMember member)
Attempts to add the given member to this expansion point. |
protected void |
clear()
Removes all the group members from this expansion point. |
protected void |
fill(GroupContainerPopulator containerPopulator,
Object controlFactory,
CommandButtonConfigurer configurer,
List previousButtons)
Adds each member of this expansion point to a GUI container using the given container populator. |
String |
getExpansionPointName()
Returns the name of this expansion point. |
GroupMember |
getMemberFor(String commandId)
Returns the group member that manages the command with the given id, or null if none of the members in this expansion point manage a command with that id. |
boolean |
isEmpty()
Returns true if this expansion point has no members. |
boolean |
isEndingSeparator()
Returns true if the visual representation of this expansion point will include a trailing separator. |
boolean |
isLeadingSeparator()
Returns true if the visual representation of this expansion point will include a leading separator. |
boolean |
managesCommand(String commandId)
Subclasses must implement this method to indicate whether or not they manage a command with the given id. |
void |
remove(GroupMember member)
If the given member belongs to this exponsion point, it will be removed. |
void |
setEnabled(boolean enabled)
Default implementation, performs no operation. |
void |
setEndingSeparator(boolean endingSeparator)
Sets the flag that indicates whether or not the visual representation of this expansion point will display a trailing separator. |
void |
setLeadingSeparator(boolean leadingSeparator)
Sets the flag that indicates whether or not the visual representation of this expansion point will display a leading separator. |
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 |
---|
protected ExpansionPointGroupMember()
ExpansionPointGroupMember
with a default name.
protected ExpansionPointGroupMember(String expansionPointName)
ExpansionPointGroupMember
with the given name.
expansionPointName
- The name of the expansion point. Must not be null.
IllegalArgumentException
- if expansionPointName
is null.Method Detail |
---|
public boolean isLeadingSeparator()
public void setLeadingSeparator(boolean leadingSeparator)
leadingSeparator
- Set to true to display a leading separator.public boolean isEndingSeparator()
public void setEndingSeparator(boolean endingSeparator)
endingSeparator
- Set to true to display a trailing separator.public String getExpansionPointName()
protected void add(GroupMember member)
GroupMember.onAdded()
method will be called.
member
- The member to be added. Must not be null.
IllegalArgumentException
- if member
is null.public void remove(GroupMember member)
GroupMember.onRemoved()
method will be called.
member
- The member that is to be removed.protected void clear()
protected void fill(GroupContainerPopulator containerPopulator, Object controlFactory, CommandButtonConfigurer configurer, 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.
fill
in class GroupMember
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.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.public GroupMember getMemberFor(String commandId)
commandId
- The id of the command whose managing member is to be returned.
public boolean managesCommand(String commandId)
CommandGroup
.
managesCommand
in class GroupMember
commandId
- The id of the command to be checked for. May be null.
public boolean isEmpty()
public void setEnabled(boolean enabled)
setEnabled
in class GroupMember
enabled
- The enabled flag.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |