| |
|
| javax.swing.JTextField net.sourceforge.squirrel_sql.fw.gui.CharField
CharField | public class CharField extends JTextField (Code) | | This class is a TextField that only allows a single
character to be entered into it.
author: Colin Bell |
Inner Class :static class CharacterDocument extends PlainDocument | |
Method Summary | |
protected Document | createDefaultModel() Create a new document model for this control that only accepts
a single character. | public char | getChar() Retrieve the contents of this field as a char. | public void | setChar(char ch) Set the contents of this field to the passed char. |
CharField | public CharField()(Code) | | Default ctor.
|
CharField | public CharField(char ch)(Code) | | Ctor specifying the character
|
createDefaultModel | protected Document createDefaultModel()(Code) | | Create a new document model for this control that only accepts
a single character.
The new document model. |
getChar | public char getChar()(Code) | | Retrieve the contents of this field as a char. If it
is empty then return a single blank character.
the contents of this field as an char. |
setChar | public void setChar(char ch)(Code) | | Set the contents of this field to the passed char.
Parameters: value - The new value for this field. |
|
|
|