edu.rice.cs.drjava.ui.config
Class StringOptionComponent

java.lang.Object
  |
  +--edu.rice.cs.drjava.ui.config.OptionComponent
        |
        +--edu.rice.cs.drjava.ui.config.StringOptionComponent

public class StringOptionComponent
extends OptionComponent

Graphical form of a StringOption.

Version:
$Id: StringOptionComponent.java,v 1.8 2002/09/02 21:24:13 csreis Exp $

Field Summary
private  JTextField _jtf
           
 
Fields inherited from class edu.rice.cs.drjava.ui.config.OptionComponent
_label, _option, _parent
 
Constructor Summary
StringOptionComponent(StringOption opt, String text, Frame parent)
           
 
Method Summary
 JComponent getComponent()
          Return's this OptionComponent's configurable component.
 void setValue(Object x0)
          Sets the value that is currently displayed by this component.
 void setValue(String value)
          Displays the given value.
 boolean updateConfig()
          Updates the config object with the new setting.
 
Methods inherited from class edu.rice.cs.drjava.ui.config.OptionComponent
getLabel, getLabelText, getOption, resetToCurrent, resetToDefault, showErrorMessage, showErrorMessage
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

_jtf

private JTextField _jtf
Constructor Detail

StringOptionComponent

public StringOptionComponent(StringOption opt,
                             String text,
                             Frame parent)
Method Detail

updateConfig

public boolean updateConfig()
Updates the config object with the new setting.
Overrides:
updateConfig in class OptionComponent
Returns:
true if the new value is set successfully

setValue

public void setValue(String value)
Displays the given value.

getComponent

public JComponent getComponent()
Return's this OptionComponent's configurable component.
Overrides:
getComponent in class OptionComponent

setValue

public void setValue(Object x0)
Description copied from class: OptionComponent
Sets the value that is currently displayed by this component.
Overrides:
setValue in class OptionComponent