ChangeAware, ContentModelpublic class CommandPanelContentModel extends java.lang.Object implements ContentModel, ChangeAware
| Constructor | Description |
|---|---|
CommandPanelContentModel(java.util.List<CommandGroup> commands) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addChangeListener(javax.swing.event.ChangeListener l) |
Adds the specified change listener to track changes to the underlying source.
|
void |
addCommandGroup(CommandGroup commandGroupModel) |
|
Command |
findFirstMatch(CommandGroup.CommandFilter commandFilter) |
|
int |
getCommandCount() |
|
java.util.List<CommandGroup> |
getCommandGroups() |
|
Command.CommandActionPreview |
getCommandPreviewListener() |
|
boolean |
isSingleSelectionMode() |
|
void |
removeAllCommandGroups() |
|
void |
removeChangeListener(javax.swing.event.ChangeListener l) |
Removes the specified change listener from tracking changes to the underlying source.
|
void |
removeCommandGroup(CommandGroup commandGroupModel) |
|
void |
setCommandPreviewListener(Command.CommandActionPreview commandPreviewListener) |
|
void |
setSingleSelectionMode(boolean isSingleSelectionMode) |
Sets the selection mode for this model.
|
public CommandPanelContentModel(java.util.List<CommandGroup> commands)
public void addCommandGroup(CommandGroup commandGroupModel)
public void removeCommandGroup(CommandGroup commandGroupModel)
public void removeAllCommandGroups()
public java.util.List<CommandGroup> getCommandGroups()
public int getCommandCount()
public Command findFirstMatch(CommandGroup.CommandFilter commandFilter)
public void setSingleSelectionMode(boolean isSingleSelectionMode)
true is passed as
the parameter, all toggle commands in this model are set to
belong to the same toggle group.isSingleSelectionMode - If true, all toggle commands in this
model are set to belong to the same toggle group.public boolean isSingleSelectionMode()
public void setCommandPreviewListener(Command.CommandActionPreview commandPreviewListener)
public Command.CommandActionPreview getCommandPreviewListener()
public void addChangeListener(javax.swing.event.ChangeListener l)
ChangeAwareaddChangeListener in interface ChangeAwarel - Change listener to add.ChangeAware.removeChangeListener(ChangeListener)public void removeChangeListener(javax.swing.event.ChangeListener l)
ChangeAwareremoveChangeListener in interface ChangeAwarel - Change listener to remove.ChangeAware.removeChangeListener(ChangeListener)