public final class ControlSet extends Control
Control.Command, Control.Iterator| Constructor and Description |
|---|
ControlSet()
Constructs a new ControlSet.
|
ControlSet(Control... controls)
Constructs a new ControlSet
|
ControlSet(java.lang.String name)
Constructs a new ControlSet
|
ControlSet(java.lang.String name,
char mnemonic)
Constructs a new ControlSet
|
ControlSet(java.lang.String name,
char mnemonic,
Control... controls)
Constructs a new ControlSet
|
ControlSet(java.lang.String name,
char mnemonic,
javax.swing.ImageIcon icon)
Constructs a new ControlSet
|
ControlSet(java.lang.String name,
char mnemonic,
javax.swing.ImageIcon icon,
StateObserver enabledState)
Constructs a new ControlSet
|
ControlSet(java.lang.String name,
char mnemonic,
State enabledState,
Control... controls)
Constructs a new ControlSet
|
ControlSet(java.lang.String name,
char mnemonic,
State enabledState,
javax.swing.ImageIcon icon,
Control... controls)
Constructs a new ControlSet
|
ControlSet(java.lang.String name,
Control... controls)
Constructs a new ControlSet
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(javax.swing.Action action)
Adds the given action to this ControlSet,
adding a null action has the same effect as addSeparator()
|
void |
add(ControlSet controlSet) |
void |
addAll(ControlSet controlSet)
Adds all action found in
controlSet to this control set |
void |
addAt(javax.swing.Action action,
int index)
Adds the given action to this ControlSet at the specified index,
adding a null action has the same effect as addSeparator()
|
void |
addAt(ControlSet controlSet,
int index) |
void |
addSeparator()
Adds a separator to this control set
|
void |
addSeparatorAt(int index)
Adds a separator at the given index
|
javax.swing.Action |
get(int index) |
java.util.List<javax.swing.Action> |
getActions() |
java.util.List<ControlSet> |
getControlSets() |
boolean |
hasIcon() |
boolean |
hasName() |
boolean |
remove(javax.swing.Action action) |
void |
removeAll()
Removes all actions from this control set
|
int |
size() |
actionPerformed, doSetMnemonic, getDescription, getEnabledObserver, getIcon, getMnemonic, getName, setDescription, setEnabled, setIcon, setKeyStroke, setMnemonic, setName, toStringpublic ControlSet()
public ControlSet(java.lang.String name)
name - the control set namepublic ControlSet(java.lang.String name,
char mnemonic)
name - the control set namemnemonic - the mnemonic to assign to this control setpublic ControlSet(java.lang.String name,
char mnemonic,
javax.swing.ImageIcon icon)
name - the control set namemnemonic - the mnemonic to assign to this control seticon - the iconpublic ControlSet(java.lang.String name,
char mnemonic,
javax.swing.ImageIcon icon,
StateObserver enabledState)
name - the control set namemnemonic - the mnemonic to assign to this control seticon - the iconenabledState - the state observer dictating the enable state of this controlpublic ControlSet(Control... controls)
controls - the controls to add to this setpublic ControlSet(java.lang.String name,
Control... controls)
name - the control set namecontrols - the controls to add to this setpublic ControlSet(java.lang.String name,
char mnemonic,
Control... controls)
name - the control set namemnemonic - the mnemonic to assign to this control setcontrols - the controls to add to this setpublic ControlSet(java.lang.String name,
char mnemonic,
State enabledState,
Control... controls)
name - the control set namemnemonic - the mnemonic to assign to this control setenabledState - the state observer dictating the enable state of this controlcontrols - the controls to add to this setpublic ControlSet(java.lang.String name,
char mnemonic,
State enabledState,
javax.swing.ImageIcon icon,
Control... controls)
name - the control set namemnemonic - the mnemonic to assign to this control setenabledState - the state observer dictating the enable state of this controlicon - the iconcontrols - the controls to add to this setpublic java.util.List<ControlSet> getControlSets()
public java.util.List<javax.swing.Action> getActions()
public void add(javax.swing.Action action)
action - the action to addpublic void addAt(javax.swing.Action action,
int index)
action - the action to add at the specified indexindex - the indexpublic boolean remove(javax.swing.Action action)
action - the action to removepublic void removeAll()
public int size()
public javax.swing.Action get(int index)
index - the indexpublic void add(ControlSet controlSet)
controlSet - the control set to addpublic void addAt(ControlSet controlSet, int index)
controlSet - the control set to add at the specified indexindex - the indexpublic void addSeparator()
public void addSeparatorAt(int index)
index - the indexpublic boolean hasName()
public boolean hasIcon()
public void addAll(ControlSet controlSet)
controlSet to this control setcontrolSet - the source set