| |
|
| javax.swing.JTextField net.sourceforge.squirrel_sql.fw.gui.IntegerField
IntegerField | public class IntegerField extends JTextField (Code) | | This class is a TextField that only allows integer
values to be entered into it.
author: Colin Bell |
Method Summary | |
protected Document | createDefaultModel() Create a new document model for this control that only accepts
integral values. | public int | getInt() Retrieve the contents of this field as an int. | public void | setInt(int value) Set the contents of this field to the passed int. |
IntegerField | public IntegerField()(Code) | | Default ctor.
|
IntegerField | public IntegerField(int cols)(Code) | | Ctor specifying the field width.
Parameters: cols - Number of columns. |
createDefaultModel | protected Document createDefaultModel()(Code) | | Create a new document model for this control that only accepts
integral values.
The new document model. |
getInt | public int getInt()(Code) | | Retrieve the contents of this field as an int.
the contents of this field as an int. |
setInt | public void setInt(int value)(Code) | | Set the contents of this field to the passed int.
Parameters: value - The new value for this field. |
|
|
|