|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.delegate.DelegatingToggleGroup.DelegatingToggleGroupBuilder
static class DelegatingToggleGroup.DelegatingToggleGroupBuilder
Internal builder implementation that installs DelegatingToggleCommands.
| Constructor Summary | |
|---|---|
DelegatingToggleGroup.DelegatingToggleGroupBuilder(GroupBuilder delegate)
|
|
| Method Summary | |
|---|---|
void |
add(ActionCommand command)
Adds the specified command. |
void |
add(CommandGroup group)
Adds the specified group. |
void |
add(java.lang.String id)
Adds the command with the specified id. |
void |
addExpansionPoint(SeparatorMode mode)
Adds an expansion point to the group using the specified SeparatorMode. |
void |
addGlue()
Adds a glue member to the group. |
void |
addInline(CommandGroup group)
Adds the specified group as an inline member. |
void |
addInline(java.lang.String id)
Adds the group with the specified id as an inline member. |
void |
addSeparator()
Adds a separator member to the group. |
void |
applyChanges()
Applies the current builder state to the group and discards the builder. |
void |
clear()
Clears the group. |
boolean |
contains(ActionCommand command)
Checks if the builder contains the specified command. |
boolean |
contains(CommandGroup group)
Checks if the builder contains the specified group. |
boolean |
contains(java.lang.String id)
Checks if the builder contains the command or group with the specified id. |
void |
discard()
Discards the builder without updating the group. |
void |
remove(ActionCommand command)
Removes the specified command from the group. |
void |
remove(CommandGroup group)
Removes the specified command from the group. |
void |
remove(java.lang.String id)
Removes the member with the specified id. |
void |
removeExpansionPoint()
Removes the expasion point. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingToggleGroup.DelegatingToggleGroupBuilder(GroupBuilder delegate)
| Method Detail |
|---|
public void add(java.lang.String id)
GroupBuilderThe group will use it's current binding to locate the actual command instance.
add in interface GroupBuilderid - the id of the command or group to add.public void addInline(java.lang.String id)
GroupBuilderThe group will use it's current binding to locate the actual group instance.
addInline in interface GroupBuilderid - the id of the group to add.public void add(ActionCommand command)
GroupBuilder
add in interface GroupBuildercommand - the command to add.public void add(CommandGroup group)
GroupBuilder
add in interface GroupBuildergroup - the group to add.public void addInline(CommandGroup group)
GroupBuilderThe group will use it's current binding to locate the actual group instance.
addInline in interface GroupBuildergroup - the group to add.public void addGlue()
GroupBuilderBox.createGlue().
Glue members are ignored for menu bars on the Mac OS plaform.
addGlue in interface GroupBuilderpublic void addSeparator()
GroupBuilder
addSeparator in interface GroupBuilderpublic void remove(java.lang.String id)
GroupBuilder
remove in interface GroupBuilderid - the id of the command to remove.public void remove(ActionCommand command)
GroupBuilder
remove in interface GroupBuildercommand - the command to remove.public void remove(CommandGroup group)
GroupBuilder
remove in interface GroupBuildergroup - the group to remove.public boolean contains(ActionCommand command)
GroupBuilder
contains in interface GroupBuildercommand - the command to check.
true if the builder already contains the command, false otherwise.public boolean contains(CommandGroup group)
GroupBuilder
contains in interface GroupBuildergroup - the group to check.
true if the builder already contains the group, false otherwise.public boolean contains(java.lang.String id)
GroupBuilder
contains in interface GroupBuilderid - the id of the command or group to check.
true if the builder already contains the command or group, false otherwise.public void clear()
GroupBuilder
clear in interface GroupBuilderpublic void addExpansionPoint(SeparatorMode mode)
GroupBuilderSeparatorMode. The expansion
point will only render it's separators if it contains one or more members.
addExpansionPoint in interface GroupBuildermode - the separator mode to use.CommandGroup.getExpansionPointBuilder()public void removeExpansionPoint()
GroupBuilder
If not explicitly added again, the expansion point will be automatically inserted at the
end of the group with the separator mode SeparatorMode.NONE.
removeExpansionPoint in interface GroupBuilderpublic void applyChanges()
GroupBuilder
applyChanges in interface GroupBuilderpublic void discard()
GroupBuilder
discard in interface GroupBuilder
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||