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 $
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
_jtf
private JTextField _jtf
StringOptionComponent
public StringOptionComponent(StringOption opt,
String text,
Frame parent)
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