|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.ui.config.OptionComponent<Vector<T>,JComponent>
edu.rice.cs.drjava.ui.config.VectorOptionComponent<KeyStroke>
edu.rice.cs.drjava.ui.config.VectorKeyStrokeOptionComponent
public class VectorKeyStrokeOptionComponent
Graphical form of a VectorOption for the KeyStroke options.
| Nested Class Summary | |
|---|---|
class |
VectorKeyStrokeOptionComponent.GetKeyDialog
A dialog that allows the user to type in a keystroke to be bound to the action that was clicked. |
| Nested classes/interfaces inherited from class edu.rice.cs.drjava.ui.config.VectorOptionComponent |
|---|
VectorOptionComponent.ButtonEditor, VectorOptionComponent.ComponentCellRenderer, VectorOptionComponent.DragDropRowTableUI |
| Nested classes/interfaces inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
|---|
OptionComponent.ChangeListener |
| Field Summary | |
|---|---|
static HashMap<KeyStroke,VectorKeyStrokeOptionComponent> |
_keyToKSOC
|
private static int |
DIALOG_HEIGHT
|
| Fields inherited from class edu.rice.cs.drjava.ui.config.VectorOptionComponent |
|---|
_addButton, _buttonPanel, _buttonTable, _buttonTableModel, _columnNames, _data, _description, _maxRows, _minRows, _moveButtonEnabled, _moveDownButton, _moveUpButton, _panel, _removeButton, _table, _tableModel, _tableScrollPane |
| Fields inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
|---|
_entireColumn, _guiComponent, _label, _labelText, _option, _parent |
| Constructor Summary | |
|---|---|
VectorKeyStrokeOptionComponent(VectorOption<KeyStroke> opt,
String text,
SwingFrame parent)
|
|
VectorKeyStrokeOptionComponent(VectorOption<KeyStroke> opt,
String text,
SwingFrame parent,
String description)
Constructor that allows for a tooltip description. |
|
VectorKeyStrokeOptionComponent(VectorOption<KeyStroke> opt,
String text,
SwingFrame parent,
String description,
boolean moveButtonEnabled)
Constructor with flag for move buttons. |
|
| Method Summary | |
|---|---|
protected Action |
_getAddAction()
Gets an action that adds a component to the set of options. |
protected AbstractTableModel |
_makeTableModel()
Returns the table model. |
protected void |
_removeIndex(int i)
Also have to remove the keystroke from the map, in addition to what the superclass already does. |
void |
chooseKeyStroke()
Shows a dialog for adding a keystroke to the element. |
int |
compareTo(VectorKeyStrokeOptionComponent o)
Compare two components to have them sorted alphabetically. |
(package private) Vector<KeyStroke> |
getKeyStrokes()
|
static void |
resetCurrentKeyStrokeMap()
Reset the current keystroke map to the values in the backup map. |
| Methods inherited from class edu.rice.cs.drjava.ui.config.VectorOptionComponent |
|---|
_addValue, _makeDecoratedTableModel, _moveDownAction, _moveUpAction, _removeAction, getButtons, getTableHeight, getValue, resizeTable, setDescription, setRows, setValue, setValue, updateButtons, updateConfig |
| Methods inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
|---|
addChangeListener, getComponent, getEntireColumn, getLabel, getLabelText, getOption, notifyChangeListeners, removeChangeListener, resetToCurrent, resetToDefault, setComponent, setEntireColumn, showErrorMessage, showErrorMessage, useEntireColumn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int DIALOG_HEIGHT
public static final HashMap<KeyStroke,VectorKeyStrokeOptionComponent> _keyToKSOC
| Constructor Detail |
|---|
public VectorKeyStrokeOptionComponent(VectorOption<KeyStroke> opt,
String text,
SwingFrame parent)
public VectorKeyStrokeOptionComponent(VectorOption<KeyStroke> opt,
String text,
SwingFrame parent,
String description)
public VectorKeyStrokeOptionComponent(VectorOption<KeyStroke> opt,
String text,
SwingFrame parent,
String description,
boolean moveButtonEnabled)
| Method Detail |
|---|
public static void resetCurrentKeyStrokeMap()
protected AbstractTableModel _makeTableModel()
_makeTableModel in class VectorOptionComponent<KeyStroke>public int compareTo(VectorKeyStrokeOptionComponent o)
compareTo in interface Comparable<VectorKeyStrokeOptionComponent>Vector<KeyStroke> getKeyStrokes()
public void chooseKeyStroke()
protected void _removeIndex(int i)
_removeIndex in class VectorOptionComponent<KeyStroke>protected Action _getAddAction()
VectorOptionComponent
_getAddAction in class VectorOptionComponent<KeyStroke>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||