|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.text.JTextComponent | +--javax.swing.JTextField | +--acm.gui.DoubleField
public class DoubleField extends JTextField
Constructor Summary |
DoubleField() |
DoubleField(double value) |
DoubleField(double low,
double high) |
DoubleField(double value,
double low,
double high) |
Method Summary | |
boolean | getExceptionOnError() |
String | getFormat() |
double | getValue() |
void | setExceptionOnError(boolean flag) |
void | setFormat(String format) |
void | setValue(double d) |
Constructor Detail |
public DoubleField()
Usage: | DoubleField field = new DoubleField(); |
public DoubleField(double value)
Usage: | DoubleField field = new DoubleField(value); | ||
Parameter: |
|
public DoubleField(double low,
double high)
Usage: | DoubleField field = new DoubleField(low, high); | ||||
Parameters: |
|
public DoubleField(double value,
double low,
double high)
Usage: | DoubleField field = new DoubleField(value, low, high); | ||||||
Parameters: |
|
Method Detail |
public boolean getExceptionOnError()
Usage: | boolean flag = console.getExceptionOnError(); |
Returns: | The current setting of the error-handling mode (false to retry on errors; true to raise an exception) |
public String getFormat()
Usage: | String format = field.getFormat(); |
Returns: | The format for this field |
public double getValue()
Usage: | double d = field.getValue(); |
Returns: | The value stored in the field as a double |
public void setExceptionOnError(boolean flag)
Usage: | field.setExceptionOnError(flag); | ||
Parameter: |
|
public void setFormat(String format)
Usage: | field.setFormat(format); | ||
Parameter: |
|
public void setValue(double d)
Usage: | field.setValue(d); | ||
Parameter: |
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |