|
|||||||||
| 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.IntField
public class IntField extends JTextField
| Constructor Summary |
| IntField() |
| IntField(int value) |
| IntField(int low,
int high) |
| IntField(int value,
int low,
int high) |
| Method Summary | |
| boolean | getExceptionOnError() |
| String | getFormat() |
| int | getValue() |
| void | setExceptionOnError(boolean flag) |
| void | setFormat(String format) |
| void | setValue(int n) |
| Constructor Detail |
public IntField()| Usage: | IntField field = new IntField(); |
public IntField(int value)| Usage: | IntField field = new IntField(value); | ||
| Parameter: |
|
public IntField(int low,
int high)| Usage: | IntField field = new IntField(low, high); | ||||
| Parameters: |
|
public IntField(int value,
int low,
int high)| Usage: | IntField field = new IntField(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 int getValue()| Usage: | int n = field.getValue(); |
| Returns: | The value stored in the field as a int |
public void setExceptionOnError(boolean flag)| Usage: | field.setExceptionOnError(flag); | ||
| Parameter: |
|
public void setFormat(String format)| Usage: | field.setFormat(format); | ||
| Parameter: |
|
public void setValue(int n)| Usage: | field.setValue(n); | ||
| Parameter: |
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||