| java.lang.Object edu.rice.cs.drjava.ui.config.OptionComponent
OptionComponent | abstract public class OptionComponent implements Serializable(Code) | | The graphical form of an Option. Provides a way to see the values of Option
while running DrJava and perform live updating of Options.
version: $Id: OptionComponent.java 4292 2007-12-27 16:00:45Z mgricken $ |
OptionComponent | public OptionComponent(String labelText, Frame parent)(Code) | | Special constructor for degenerate option components does not take an option.
Parameters: labelText - Text for descriptive label of this option. Parameters: parent - The parent frame. |
addChangeListener | public void addChangeListener(ChangeListener listener)(Code) | | Adds a change listener to this component.
Parameters: listener - listener to add |
getComponent | abstract public JComponent getComponent()(Code) | | Returns the JComponent to display for this OptionComponent.
|
notifyChangeListeners | protected void notifyChangeListeners()(Code) | | Notify all change listeners of a change.
|
removeChangeListener | public void removeChangeListener(ChangeListener listener)(Code) | | Removes a change listener to this component.
Parameters: listener - listener to remove |
resetToCurrent | public void resetToCurrent()(Code) | | Resets the entry field to reflect the actual stored value for the option.
|
resetToDefault | public void resetToDefault()(Code) | | Resets the actual value of the component to the original default.
|
setDescription | abstract public void setDescription(String description)(Code) | | Sets the detailed description text for all components in this OptionComponent.
Should be called by subclasses that wish to display a description.
Parameters: description - the description of the component |
setValue | abstract public void setValue(T value)(Code) | | Sets the value that is currently displayed by this component.
|
updateConfig | abstract public boolean updateConfig()(Code) | | Updates the appropriate configuration option with the new value
if different from the old value and legal. Any changes should be
done immediately such that current and future references to the Option
should reflect the changes.
false, if value is invalid; otherwise true. |
|
|