|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.group.impl.AbstractCommandContribution
com.pietschy.command.group.impl.CommandContribution
com.pietschy.command.group.impl.EmbeddedContribution
public class EmbeddedContribution
A contribution that attempts to adds it's member to a matching child of the parent group. If matches aren't found, the member is added to the parent groups expansion point.
| Constructor Summary | |
|---|---|
EmbeddedContribution(CommandGroup command,
java.util.Comparator<CommandGroup> groupComparator)
Creates a new instance. |
|
| Method Summary | |
|---|---|
CommandGroup |
getCommand()
Returns the command this contribution is adding. |
void |
performAdd(CommandGroup parent,
ExpansionPointMember expansionMember)
Adds the specified this contribution the specified group. |
void |
performRemove(CommandGroup parent,
ExpansionPointMember expansionMember)
Removes the specified this contribution the specified group. |
| Methods inherited from class com.pietschy.command.group.impl.CommandContribution |
|---|
toString |
| Methods inherited from class com.pietschy.command.group.impl.AbstractCommandContribution |
|---|
isContributionFor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EmbeddedContribution(CommandGroup command,
java.util.Comparator<CommandGroup> groupComparator)
command - the command to add.groupComparator - the commarator to use embedding the command.| Method Detail |
|---|
public CommandGroup getCommand()
AbstractCommandContribution
getCommand in class AbstractCommandContribution
public void performAdd(CommandGroup parent,
ExpansionPointMember expansionMember)
Contribution
performAdd in interface ContributionperformAdd in class CommandContributionparent - the parent group.expansionMember - the expansion point member of the group.
public void performRemove(CommandGroup parent,
ExpansionPointMember expansionMember)
Contribution
performRemove in interface ContributionperformRemove in class CommandContributionparent - the parent group.expansionMember - the expansion point member of the group.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||