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 interface
static interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate EventListenerList
Stores the listeners on this model.private String
private 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 TypeMethodDescriptionvoid
addCommand
(Command command) void
Adds aCommandGroupListener
to the model.void
private void
fireAllCommandsRemoved
(List<Command> commands) private void
fireCommandAdded
(Command command) private void
fireCommandRemoved
(Command command) getTitle()
void
void
removeCommand
(Command command) void
Removes aCommandGroupListener
from the model.void
void
-
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 aCommandGroupListener
to the model.- Parameters:
l
- the listener to add
-
removeCommandGroupListener
Removes aCommandGroupListener
from the model.- Parameters:
l
- the listener to remove
-
fireCommandAdded
-
fireCommandRemoved
-
fireAllCommandsRemoved
-
addPropertyChangeListener
- Specified by:
addPropertyChangeListener
in interfacePropertyChangeAware
-
removePropertyChangeListener
- Specified by:
removePropertyChangeListener
in interfacePropertyChangeAware
-