|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface GroupBuilder
Interface for programatically managing the members of a group.
| 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. |
| Method Detail |
|---|
void add(java.lang.String id)
The group will use it's current binding to locate the actual command instance.
id - the id of the command or group to add.void add(ActionCommand command)
command - the command to add.void add(CommandGroup group)
group - the group to add.void addInline(java.lang.String id)
The group will use it's current binding to locate the actual group instance.
id - the id of the group to add.void addInline(CommandGroup group)
The group will use it's current binding to locate the actual group instance.
group - the group to add.void addGlue()
Box.createGlue().
Glue members are ignored for menu bars on the Mac OS plaform.
void addSeparator()
void remove(java.lang.String id)
id - the id of the command to remove.void remove(ActionCommand command)
command - the command to remove.void remove(CommandGroup group)
group - the group to remove.boolean contains(ActionCommand command)
command - the command to check.
true if the builder already contains the command, false otherwise.boolean contains(CommandGroup group)
group - the group to check.
true if the builder already contains the group, false otherwise.boolean contains(java.lang.String id)
id - the id of the command or group to check.
true if the builder already contains the command or group, false otherwise.void clear()
void addExpansionPoint(SeparatorMode mode)
SeparatorMode. The expansion
point will only render it's separators if it contains one or more members.
mode - the separator mode to use.CommandGroup.getExpansionPointBuilder()void removeExpansionPoint()
If not explicitly added again, the expansion point will be automatically inserted at the
end of the group with the separator mode SeparatorMode.NONE.
void applyChanges()
void discard()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||