public class SqlFieldInt 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 |
---|---|
SqlFieldInt(javax.swing.JLabel tl,
int defaultInteger,
java.lang.String colName) |
Initialization
|
SqlFieldInt(javax.swing.JLabel tl,
java.lang.String colName) |
Initialization
|
SqlFieldInt(javax.swing.JTextField tf,
int defaultInteger,
java.lang.String colName) |
Initialization
|
SqlFieldInt(javax.swing.JTextField tf,
java.lang.String colName) |
Initialization
|
Modifier and Type | Method | Description |
---|---|---|
int |
getInt() |
Get value
|
java.lang.String |
getSqlPutSnippet() |
Get SQLSnippet String
|
java.lang.String |
presentData(java.lang.String in) |
Get integer data in String format
|
void |
resetField() |
Reset value to default
|
void |
setEnableEdit(boolean enableEdit) |
Set field to enable/disable edit
|
void |
setField(java.sql.ResultSet rs) |
Set String to value from ResultSet
|
void |
setInt(int i) |
Set integer
|
void |
setInt(java.lang.String is) |
Set integer from String
|
java.lang.String |
toString() |
Get data type and data
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEnableToggle, getSqlColNames, getSqlSnippet, getType, setEnableToggle
public SqlFieldInt(javax.swing.JTextField tf, java.lang.String colName)
tf
- colName
- public SqlFieldInt(javax.swing.JTextField tf, int defaultInteger, java.lang.String colName)
tf
- defaultInteger
- colName
- public SqlFieldInt(javax.swing.JLabel tl, java.lang.String colName)
tl
- colName
- public SqlFieldInt(javax.swing.JLabel tl, int defaultInteger, java.lang.String colName)
tl
- defaultInteger
- colName
- public int getInt()
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 setField(java.sql.ResultSet rs)
public void setInt(int i)
i
- public void setInt(java.lang.String is)
is
- public void setEnableEdit(boolean enableEdit)
setEnableEdit
in class SqlField