|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.group.impl.AbstractExpansionPointBuilder
public abstract class AbstractExpansionPointBuilder
Implementation of ExpansionPointBuilder. This class handles most of the builder
functionality, sub classes must override applyChanges() and ExpansionPointBuilder.discard()
to enact the builder changes.
| Constructor Summary | |
|---|---|
AbstractExpansionPointBuilder(java.util.List<Contribution> contributions)
Creates a new instance that is initialised with the specified contributions. |
|
| Method Summary | |
|---|---|
void |
add(ActionCommand command)
Adds the specified command to the expansion point. |
void |
add(CommandGroup group)
Adds the specified group to the expansion point. |
void |
addEmbedded(CommandGroup group,
java.util.Comparator<CommandGroup> comparator)
Adds the specified group as an embedded member of the parent group. |
void |
addEmbedded(CommandGroup group,
java.lang.String context)
Adds the specified group as an embedded member of the parent group. |
void |
addInline(CommandGroup group)
Adds the specified group as an inline member of the expansion point. |
void |
applyChanges()
Applies the current builder state to the group and discards the builder. |
protected abstract void |
applyChanges(java.util.ArrayList<Contribution> contributions)
Invoked to apply the specified contribution list to the group. |
void |
clear()
Clears the expansion point. |
void |
remove(ActionCommand command)
Removes the specified command from the expansion point. |
void |
remove(CommandGroup command)
Removes the specified group from the expansion point. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.pietschy.command.group.ExpansionPointBuilder |
|---|
discard |
| Constructor Detail |
|---|
public AbstractExpansionPointBuilder(java.util.List<Contribution> contributions)
contributions - the existing expansion point members.| Method Detail |
|---|
public void add(ActionCommand command)
ExpansionPointBuilder
add in interface ExpansionPointBuildercommand - the command to add.public void add(CommandGroup group)
ExpansionPointBuilder
add in interface ExpansionPointBuildergroup - the group to add.public void addInline(CommandGroup group)
ExpansionPointBuilderThe group will use it's current binding to locate the actual group instance.
addInline in interface ExpansionPointBuildergroup - the group to add.
public void addEmbedded(CommandGroup group,
java.lang.String context)
ExpansionPointBuilderExpansionPointBuilder.add(CommandGroup).
addEmbedded in interface ExpansionPointBuildergroup - the group to be embedded.#addEmbedded(CommandGroup, Comparator)
public void addEmbedded(CommandGroup group,
java.util.Comparator<CommandGroup> comparator)
ExpansionPointBuilderExpansionPointBuilder.add(CommandGroup).
addEmbedded in interface ExpansionPointBuildergroup - the group to be embedded.#addEmbedded(CommandGroup, Comparator) public void remove(ActionCommand command)
ExpansionPointBuilder
remove in interface ExpansionPointBuildercommand - the command to remove.public void remove(CommandGroup command)
ExpansionPointBuilder
remove in interface ExpansionPointBuildercommand - the group to remove.public void clear()
ExpansionPointBuilder
clear in interface ExpansionPointBuilderpublic void applyChanges()
ExpansionPointBuilder
applyChanges in interface ExpansionPointBuilderprotected abstract void applyChanges(java.util.ArrayList<Contribution> contributions)
contributions - the new contribution list to use.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||