| edu.rice.cs.drjava.ui.config.KeyStrokeOptionComponent
KeyStrokeOptionComponent | public class KeyStrokeOptionComponent extends OptionComponent implements Comparable(Code) | | Graphical form of a KeyStrokeOption.
version: $Id: KeyStrokeOptionComponent.java 4255 2007-08-28 19:17:37Z mgricken $ |
compareTo | public int compareTo(Object o)(Code) | | Compares two KeyStrokeOptionComponents based on the text of their labels.
Comparison based on labels, or 1 if o is not a KeyStrokeOptionComponent |
getComponent | public JComponent getComponent()(Code) | | Return's this OptionComponent's configurable component.
|
getConfigKeyStroke | public KeyStroke getConfigKeyStroke()(Code) | | Returns the KeyStroke current set in the Config settings.
|
getKeyStroke | public KeyStroke getKeyStroke()(Code) | | Returns the currently selected KeyStroke.
|
setDescription | public void setDescription(String description)(Code) | | Sets the tooltip description text for this option.
Parameters: description - the tooltip text |
setValue | public void setValue(KeyStroke value)(Code) | | Displays the given value.
|
toString | public String toString()(Code) | | Returns a custom string representation of this option component.
|
updateConfig | public boolean updateConfig()(Code) | | Updates the config object with the new setting.
true if the new value is set successfully |
|
|