|
||||||||||
| 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<Boolean>
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 JCheckBox |
_jcb
|
| Fields inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
|---|
_entireColumn, _label, _labelText, _option, _parent |
| Constructor Summary | |
|---|---|
BooleanOptionComponent(BooleanOption opt,
String text,
SwingFrame parent)
Constructs a new BooleanOptionComponent. |
|
BooleanOptionComponent(BooleanOption opt,
String text,
SwingFrame parent,
boolean left)
Constructs a new BooleanOptionComponent. |
|
BooleanOptionComponent(BooleanOption opt,
String text,
SwingFrame parent,
String description)
Constructs a new BooleanOptionComponent with a tooltip description. |
|
BooleanOptionComponent(BooleanOption opt,
String text,
SwingFrame parent,
String description,
boolean left)
Constructs a new BooleanOptionComponent with a tooltip description. |
|
| Method Summary | |
|---|---|
JComponent |
getComponent()
Return's this OptionComponent's configurable component. |
void |
setDescription(String description)
Sets the tooltip description text for this option. |
BooleanOptionComponent |
setEntireColumn(boolean entireColumn)
Whether the component should occupy the entire column. |
void |
setValue(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, getEntireColumn, getLabel, getLabelText, getOption, notifyChangeListeners, removeChangeListener, resetToCurrent, resetToDefault, showErrorMessage, showErrorMessage, useEntireColumn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JCheckBox _jcb
| Constructor Detail |
|---|
public BooleanOptionComponent(BooleanOption opt,
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,
String text,
SwingFrame parent,
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,
String text,
SwingFrame parent)
opt - the BooleanOption this component representstext - the text to display with the optionparent - the parent frame
public BooleanOptionComponent(BooleanOption opt,
String text,
SwingFrame parent,
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(String description)
setDescription in class OptionComponent<Boolean>description - the tooltip textpublic boolean updateConfig()
updateConfig in class OptionComponent<Boolean>public void setValue(Boolean value)
setValue in class OptionComponent<Boolean>public JComponent getComponent()
getComponent in class OptionComponent<Boolean>public BooleanOptionComponent setEntireColumn(boolean entireColumn)
setEntireColumn in class OptionComponent<Boolean>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||