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

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

public class LabelComponent
extends OptionComponent

Displays a label in the form of an option component, to be displayed in a config panel.

Version:
$Id: LabelComponent.java,v 1.1 2002/07/24 13:27:45 csreis Exp $

Field Summary
private  JTextArea _text
           
 
Fields inherited from class edu.rice.cs.drjava.ui.config.OptionComponent
_label, _option, _parent
 
Constructor Summary
LabelComponent(String text, Frame parent)
           
 
Method Summary
 JComponent getComponent()
          Return's this OptionComponent's configurable component.
 void setValue(Object 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

_text

private JTextArea _text
Constructor Detail

LabelComponent

public LabelComponent(String text,
                      Frame parent)
Method Detail

updateConfig

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

setValue

public void setValue(Object value)
Displays the given value. (Never changes.)
Overrides:
setValue in class OptionComponent

getComponent

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