|
||||||||||
| 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<KeyStroke>
edu.rice.cs.drjava.ui.config.KeyStrokeOptionComponent
public class KeyStrokeOptionComponent
Graphical form of a KeyStrokeOption.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
|---|
OptionComponent.ChangeListener |
| Field Summary | |
|---|---|
static HashMap<KeyStroke,KeyStrokeOptionComponent> |
_keyToKSOC
|
| Fields inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
|---|
_entireColumn, _label, _labelText, _option, _parent |
| Constructor Summary | |
|---|---|
KeyStrokeOptionComponent(KeyStrokeOption opt,
String text,
SwingFrame parent)
|
|
KeyStrokeOptionComponent(KeyStrokeOption opt,
String text,
SwingFrame parent,
String description)
Constructor that allows for a tooltip description. |
|
| Method Summary | |
|---|---|
int |
compareTo(KeyStrokeOptionComponent other)
Compares two KeyStrokeOptionComponents based on the text of their labels. |
JComponent |
getComponent()
Return's this OptionComponent's configurable component. |
KeyStroke |
getConfigKeyStroke()
Returns the KeyStroke current set in the Config settings. |
KeyStroke |
getKeyStroke()
Returns the currently selected KeyStroke. |
void |
setDescription(String description)
Sets the tooltip description text for this option. |
void |
setValue(KeyStroke value)
Displays the given value. |
String |
toString()
Returns a custom string representation of this option component. |
boolean |
updateConfig()
Updates the config object with the new setting. |
| Methods inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
|---|
addChangeListener, getEntireColumn, getLabel, getLabelText, getOption, notifyChangeListeners, removeChangeListener, resetToCurrent, resetToDefault, setEntireColumn, showErrorMessage, showErrorMessage, useEntireColumn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final HashMap<KeyStroke,KeyStrokeOptionComponent> _keyToKSOC
| Constructor Detail |
|---|
public KeyStrokeOptionComponent(KeyStrokeOption opt,
String text,
SwingFrame parent)
public KeyStrokeOptionComponent(KeyStrokeOption opt,
String text,
SwingFrame parent,
String description)
| Method Detail |
|---|
public void setDescription(String description)
setDescription in class OptionComponent<KeyStroke>description - the tooltip textpublic String toString()
toString in class Objectpublic boolean updateConfig()
updateConfig in class OptionComponent<KeyStroke>public void setValue(KeyStroke value)
setValue in class OptionComponent<KeyStroke>public int compareTo(KeyStrokeOptionComponent other)
compareTo in interface Comparable<KeyStrokeOptionComponent>public KeyStroke getKeyStroke()
public KeyStroke getConfigKeyStroke()
public JComponent getComponent()
getComponent in class OptionComponent<KeyStroke>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||