ContentModelpublic class CommandPanelContentModel extends java.lang.Object implements ContentModel
| 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 this model.
|
void |
addCommandGroup(CommandGroup commandGroupModel) |
|
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 this model.
|
void |
removeCommandGroup(CommandGroup commandGroupModel) |
|
void |
setCommandPreviewListener(Command.CommandActionPreview commandPreviewListener) |
|
void |
setSingleSelectionMode(boolean isSingleSelectionMode) |
Sets the selection mode for the panel.
|
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 void setSingleSelectionMode(boolean isSingleSelectionMode)
true is passed as
the parameter, all toggle commands in the panel are set to
belong to the same toggle group.isSingleSelectionMode - If true, all toggle commands in this
panel 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)
l - Change listener to add.removeChangeListener(ChangeListener)public void removeChangeListener(javax.swing.event.ChangeListener l)
l - Change listener to remove.addChangeListener(ChangeListener)