Class CommandGroup
java.lang.Object
org.pushingpixels.radiance.component.api.common.model.CommandGroup
- All Implemented Interfaces:
ContentModel, PropertyChangeAware
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate EventListenerListStores the listeners on this model.private Stringprivate final WeakPropertyChangeSupport -
Constructor Summary
ConstructorsConstructorDescriptionCommandGroup(String title, List<Command> commands) CommandGroup(String title, Command... commands) CommandGroup(List<Command> commands) CommandGroup(Command... commands) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCommand(Command command) voidAdds aCommandGroupListenerto the model.voidprivate voidfireAllCommandsRemoved(List<Command> commands) private voidfireCommandAdded(Command command) private voidfireCommandRemoved(Command command) getTitle()voidvoidremoveCommand(Command command) voidRemoves aCommandGroupListenerfrom the model.voidvoid
-
Field Details
-
title
-
commands
-
listenerList
Stores the listeners on this model. -
weakPropertyChangeSupport
-
-
Constructor Details
-
CommandGroup
-
CommandGroup
-
CommandGroup
-
CommandGroup
-
-
Method Details
-
getTitle
-
setTitle
-
getCommands
-
findFirstMatch
-
addCommand
-
removeCommand
-
removeAllCommands
public void removeAllCommands() -
addCommandGroupListener
Adds aCommandGroupListenerto the model.- Parameters:
l- the listener to add
-
removeCommandGroupListener
Removes aCommandGroupListenerfrom the model.- Parameters:
l- the listener to remove
-
fireCommandAdded
-
fireCommandRemoved
-
fireAllCommandsRemoved
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListenerin interfacePropertyChangeAware
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListenerin interfacePropertyChangeAware
-