public class SqlFieldText extends SqlField
BOOL, DATE, JCOMBOBOXB, JCOMBOBOXD, JCOMBOBOXDC, JCOMBOBOXENUMB, JCOMBOBOXENUMD, JCOMBOBOXENUMDC, JCOMBOBOXENUMF, JCOMBOBOXENUMI, JCOMBOBOXENUML, JCOMBOBOXENUMP, JCOMBOBOXENUMS, JCOMBOBOXENUMTM, JCOMBOBOXENUMTS, JCOMBOBOXF, JCOMBOBOXI, JCOMBOBOXL, JCOMBOBOXP, JCOMBOBOXS, JCOMBOBOXTM, JCOMBOBOXTS, PHONENO, TEXT, TEXTDOUBLE, TEXTFLOAT, TEXTINT, TEXTLONG, TEXTPSWD, TIME, TIMESTAMP
Constructor | Description |
---|---|
SqlFieldText(javax.swing.JTextArea ta,
java.lang.String colName) |
Initialization
|
SqlFieldText(javax.swing.JTextArea ta,
java.lang.String defaultText,
java.lang.String colName) |
Initialization
|
SqlFieldText(javax.swing.JTextField tf,
java.lang.String colName) |
Initialization
|
SqlFieldText(javax.swing.JTextField tf,
java.lang.String defaultText,
java.lang.String colName) |
Initialization
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getSqlPutSnippet() |
Get Sql snippet
|
java.lang.String |
getText() |
Get text
|
boolean |
getTolower() |
Get flag to to see if set to put text to lower case automatically
|
boolean |
getToupper() |
Get flat to see if set to put text to upper case automatically
|
java.lang.String |
presentData(java.lang.String in) |
Get string returned...
|
void |
resetField() |
Reset text to default
|
void |
setEnableEdit(boolean enableEdit) |
Enable/disable editing field
|
void |
setField(java.sql.ResultSet rs) |
Set text from a ResultSet
|
void |
setText(java.lang.String t) |
Set text
|
void |
setTolower(boolean tolower) |
Set flag to put text to lower case automatically
|
void |
setToupper(boolean toupper) |
Set flag to put text to upper case automatically
|
java.lang.String |
toString() |
Get data type and data
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEnableToggle, getSqlColNames, getSqlSnippet, getType, setEnableToggle
public SqlFieldText(javax.swing.JTextArea ta, java.lang.String defaultText, java.lang.String colName)
ta
- defaultText
- colName
- public SqlFieldText(javax.swing.JTextArea ta, java.lang.String colName)
ta
- colName
- public SqlFieldText(javax.swing.JTextField tf, java.lang.String defaultText, java.lang.String colName)
tf
- defaultText
- colName
- public SqlFieldText(javax.swing.JTextField tf, java.lang.String colName)
tf
- colName
- public java.lang.String getText()
public java.lang.String getSqlPutSnippet()
getSqlPutSnippet
in class SqlField
public boolean getTolower()
public boolean getToupper()
public java.lang.String presentData(java.lang.String in)
presentData
in class SqlField
public java.lang.String toString()
public void resetField()
resetField
in class SqlField
public void setEnableEdit(boolean enableEdit)
setEnableEdit
in class SqlField
enableEdit
- public void setField(java.sql.ResultSet rs)
public void setText(java.lang.String t)
t
- public void setTolower(boolean tolower)
tolower
- public void setToupper(boolean toupper)
toupper
-