public class SqlFieldDouble 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 |
---|---|
SqlFieldDouble(javax.swing.JTextField tf,
double defaultDouble,
java.lang.String colName) |
Constructor for SqlFieldDouble
|
SqlFieldDouble(javax.swing.JTextField tf,
java.lang.String colName) |
Constructor for SqlFieldDouble
|
Modifier and Type | Method | Description |
---|---|---|
double |
getDouble() |
Get double value
|
java.lang.String |
getSqlPutSnippet() |
Get SQL snippet
|
java.lang.String |
presentData(java.lang.String in) |
Interpret String data to a double
|
void |
resetField() |
Reset double value to default
|
void |
setDouble(double d) |
Set double value
|
void |
setDouble(java.lang.String ds) |
Set double value
|
void |
setEnableEdit(boolean enableEdit) |
Set Swing component to edit enable/disable
|
void |
setField(java.sql.ResultSet rs) |
Set double value from a ResultSet
|
java.lang.String |
toString() |
Return type and value
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEnableToggle, getSqlColNames, getSqlSnippet, getType, setEnableToggle
public SqlFieldDouble(javax.swing.JTextField tf, java.lang.String colName)
tf
- colName
- public SqlFieldDouble(javax.swing.JTextField tf, double defaultDouble, java.lang.String colName)
tf
- defaultDouble
- colName
- public double getDouble()
public java.lang.String getSqlPutSnippet()
getSqlPutSnippet
in class SqlField
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 setDouble(double d)
d
- public void setDouble(java.lang.String ds)
ds
- public void setField(java.sql.ResultSet rs)
public void setEnableEdit(boolean enableEdit)
setEnableEdit
in class SqlField
enableEdit
-