|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.ui.config.OptionComponent<java.lang.Boolean,javax.swing.JCheckBox>
edu.rice.cs.drjava.ui.config.BooleanOptionComponent
public class BooleanOptionComponent
Graphical form of a BooleanOption.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
|---|
OptionComponent.ChangeListener |
| Field Summary | |
|---|---|
protected javax.swing.JCheckBox |
_jcb
|
| Fields inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
|---|
_entireColumn, _guiComponent, _label, _labelText, _option, _parent |
| Constructor Summary | |
|---|---|
BooleanOptionComponent(BooleanOption opt,
java.lang.String text,
SwingFrame parent)
Constructs a new BooleanOptionComponent. |
|
BooleanOptionComponent(BooleanOption opt,
java.lang.String text,
SwingFrame parent,
boolean left)
Constructs a new BooleanOptionComponent. |
|
BooleanOptionComponent(BooleanOption opt,
java.lang.String text,
SwingFrame parent,
java.lang.String description)
Constructs a new BooleanOptionComponent with a tooltip description. |
|
BooleanOptionComponent(BooleanOption opt,
java.lang.String text,
SwingFrame parent,
java.lang.String description,
boolean left)
Constructs a new BooleanOptionComponent with a tooltip description. |
|
| Method Summary | |
|---|---|
void |
setDescription(java.lang.String description)
Sets the tooltip description text for this option. |
BooleanOptionComponent |
setEntireColumn(boolean entireColumn)
Whether the component should occupy the entire column. |
void |
setValue(java.lang.Boolean 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 |
|---|
addChangeListener, getComponent, getEntireColumn, getLabel, getLabelText, getOption, notifyChangeListeners, removeChangeListener, resetToCurrent, resetToDefault, setComponent, showErrorMessage, showErrorMessage, useEntireColumn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.swing.JCheckBox _jcb
| Constructor Detail |
|---|
public BooleanOptionComponent(BooleanOption opt,
java.lang.String text,
SwingFrame parent,
boolean left)
opt - the BooleanOption this component representstext - the text to display with the optionparent - the parent frameleft - whether the descriptive text should be on the left
public BooleanOptionComponent(BooleanOption opt,
java.lang.String text,
SwingFrame parent,
java.lang.String description,
boolean left)
opt - the BooleanOption this component representstext - the text to display with the optionparent - the parent framedescription - text to show in a tooltip overleft - whether the descriptive text should be on the left
public BooleanOptionComponent(BooleanOption opt,
java.lang.String text,
SwingFrame parent)
opt - the BooleanOption this component representstext - the text to display with the optionparent - the parent frame
public BooleanOptionComponent(BooleanOption opt,
java.lang.String text,
SwingFrame parent,
java.lang.String description)
opt - the BooleanOption this component representstext - the text to display with the optionparent - the parent framedescription - text to show in a tooltip over| Method Detail |
|---|
public void setDescription(java.lang.String description)
setDescription in class OptionComponent<java.lang.Boolean,javax.swing.JCheckBox>description - the tooltip textpublic boolean updateConfig()
updateConfig in class OptionComponent<java.lang.Boolean,javax.swing.JCheckBox>public void setValue(java.lang.Boolean value)
setValue in class OptionComponent<java.lang.Boolean,javax.swing.JCheckBox>public BooleanOptionComponent setEntireColumn(boolean entireColumn)
setEntireColumn in class OptionComponent<java.lang.Boolean,javax.swing.JCheckBox>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||