|
||||||||||
| 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<Object>
edu.rice.cs.drjava.ui.config.ButtonComponent
public class ButtonComponent
Button component to perform some action. Nothing gets saved.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
|---|
OptionComponent.ChangeListener |
| Field Summary | |
|---|---|
protected JButton |
_jb
|
| Fields inherited from class edu.rice.cs.drjava.ui.config.OptionComponent |
|---|
_entireColumn, _label, _labelText, _option, _parent |
| Constructor Summary | |
|---|---|
ButtonComponent(ActionListener l,
String text,
SwingFrame parent)
Constructs a new ButtonComponent. |
|
ButtonComponent(ActionListener l,
String text,
SwingFrame parent,
String description)
Constructs a new ButtonComponent 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. |
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 |
|---|
addChangeListener, getEntireColumn, getLabel, getLabelText, getOption, notifyChangeListeners, removeChangeListener, resetToCurrent, resetToDefault, setEntireColumn, showErrorMessage, showErrorMessage, useEntireColumn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JButton _jb
| Constructor Detail |
|---|
public ButtonComponent(ActionListener l,
String text,
SwingFrame parent)
l - the listener that gets executed when the button is pressedtext - the text to display with the optionparent - the parent frame
public ButtonComponent(ActionListener l,
String text,
SwingFrame parent,
String description)
l - the listener that gets executed when the button is pressedtext - 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<Object>description - the tooltip textpublic boolean updateConfig()
updateConfig in class OptionComponent<Object>public void setValue(Object value)
setValue in class OptionComponent<Object>public JComponent getComponent()
getComponent in class OptionComponent<Object>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||