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

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

public class BooleanOptionComponent
extends OptionComponent

Graphical form of a BooleanOption.

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

Field Summary
private  JCheckBox _jcb
           
 
Fields inherited from class edu.rice.cs.drjava.ui.config.OptionComponent
_label, _option, _parent
 
Constructor Summary
BooleanOptionComponent(BooleanOption opt, String text, Frame parent)
           
 
Method Summary
 JComponent getComponent()
          Return's this OptionComponent's configurable component.
 void setValue(Boolean value)
          Displays the given value.
 void setValue(Object x0)
          Sets the value that is currently displayed by this component.
 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

_jcb

private JCheckBox _jcb
Constructor Detail

BooleanOptionComponent

public BooleanOptionComponent(BooleanOption 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(Boolean 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