|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.Command
com.pietschy.command.group.CommandGroup
com.pietschy.command.delegate.DelegatingToggleGroup
public class DelegatingToggleGroup
DelegatingToggleGroups delegates to the ToggleCommand members of a ToggleGroup.
The following is an example:
delegatingGroup = new DelegatingToggleGroup("text-styles");
delegatingGroup.bind(commandContainer);
This group will then mirror the "text-styles" ToggleGroup.
DelegatingToggleGroups provided the functionality reqired to render toggles using the correct styles on Mac OS. This functionality can't be provided using stand alone DelegatingToggleCommand instances.
DelegatingCommand,
DelegatingToggleCommand,
DelegateMediator| Nested Class Summary | |
|---|---|
(package private) static class |
DelegatingToggleGroup.DelegatingToggleGroupBuilder
Internal builder implementation that installs DelegatingToggleCommands. |
| Field Summary |
|---|
| Fields inherited from class com.pietschy.command.Command |
|---|
internalLog, PROPERTY_ENABLED, PROPERTY_VISIBLE |
| Constructor Summary | |
|---|---|
DelegatingToggleGroup(java.lang.String id)
|
|
| Method Summary | |
|---|---|
GroupBuilder |
getBuilder()
Gets the current builder for this group. |
boolean |
isAllowableMember(Command prospectiveMember)
Checks if the specified Command can be added to this group. |
| Methods inherited from class com.pietschy.command.group.CommandGroup |
|---|
addGroupListener, bindToContainer, createButton, createButton, createMemberManager, createMenuBar, createMenuBar, createMenuBar, createMenuBar, createMenuItem, createMenuItem, createPopupMenu, createPopupMenu, createPopupMenu, createToolBar, createToolBar, createToolBar, createToolBar, getExpansionPointBuilder, getMemberCount, getMemberListSpec, getMemberManager, getPopupContext, memberIterator, rebuildMembersFromSpec, removeGroupListener, setMemberListSpec, unbindFromContainer, visit, visitMembers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DelegatingToggleGroup(java.lang.String id)
| Method Detail |
|---|
public boolean isAllowableMember(Command prospectiveMember)
CommandGroupCommand can be added to this group. By default this
method returns true but can be overriden by subclasses to control the command
types that are allowable.
isAllowableMember in class CommandGroupprospectiveMember - the command that is to be added to the group.
ToggleGroup.isAllowableMember(com.pietschy.command.Command)public GroupBuilder getBuilder()
CommandGroupGroupBuilder.applyChanges() or
GroupBuilder.discard() is called.
getBuilder in class CommandGroup
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||