public class SqlFieldFloat 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 |
---|---|
SqlFieldFloat(javax.swing.JTextField tf,
float defaultFloat,
java.lang.String colName) |
Constructor for SqlFieldFloat
|
SqlFieldFloat(javax.swing.JTextField tf,
java.lang.String colName) |
Constructor for SqlFieldFloat
|
Modifier and Type | Method | Description |
---|---|---|
float |
getFloat() |
Get float value
|
java.lang.String |
getSqlPutSnippet() |
Get SQL Snippet
|
java.lang.String |
presentData(java.lang.String in) |
Interpret String data to a float
|
void |
resetField() |
Reset float to default value
|
void |
setEnableEdit(boolean enableEdit) |
Set edit enable/disable
|
void |
setField(java.sql.ResultSet rs) |
Set float from ResultSet
|
void |
setFloat(float f) |
Set float value
|
void |
setFloat(java.lang.String fs) |
Set float value
|
java.lang.String |
toString() |
Return type and value
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEnableToggle, getSqlColNames, getSqlSnippet, getType, setEnableToggle
public SqlFieldFloat(javax.swing.JTextField tf, java.lang.String colName)
tf
- colName
- public SqlFieldFloat(javax.swing.JTextField tf, float defaultFloat, java.lang.String colName)
tf
- defaultFloat
- colName
- public float getFloat()
public java.lang.String getSqlPutSnippet()
getSqlPutSnippet
in class SqlField
public java.lang.String presentData(java.lang.String in)
presentData
in class SqlField
in
- public java.lang.String toString()
public void resetField()
resetField
in class SqlField
public void setFloat(float f)
f
- public void setFloat(java.lang.String fs)
fs
- public void setEnableEdit(boolean enableEdit)
setEnableEdit
in class SqlField
enableEdit
-