public class SqlFieldBool 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 |
---|---|
SqlFieldBool(javax.swing.JCheckBox cb,
boolean defaultBool,
java.lang.String colName) |
SqlFieldBool - Constructor for JCheckBox
|
SqlFieldBool(javax.swing.JCheckBox cb,
java.lang.String colName) |
SqlFieldBool - Constructor for JCheckBox
|
SqlFieldBool(javax.swing.JRadioButton rb,
boolean defaultBool,
java.lang.String colName) |
SqlFieldBool - Constructor for JRadioButton
|
SqlFieldBool(javax.swing.JRadioButton rb,
java.lang.String colName) |
SqlFieldBool - Constructor for JRadioButton
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
getBool() |
Get boolean value
|
java.lang.String |
getBoolString() |
Get boolean String value
|
java.lang.String |
getSqlPutSnippet() |
Get SQL snippet
|
java.lang.String |
presentData(java.lang.String in) |
Interpret data entered as T or F
|
void |
resetField() |
Reset field to default boolean value.
|
void |
setBool(boolean bool) |
Set boolean value
|
void |
setBool(java.lang.String stringBool) |
Set boolean value
|
void |
setEnableEdit(boolean enableEdit) |
Set Swing component to enable/disable edit
|
void |
setField(java.sql.ResultSet rs) |
Set value from ResultSet
|
java.lang.String |
toString() |
Get type & value
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEnableToggle, getSqlColNames, getSqlSnippet, getType, setEnableToggle
public SqlFieldBool(javax.swing.JCheckBox cb, java.lang.String colName)
cb
- colName
- public SqlFieldBool(javax.swing.JCheckBox cb, boolean defaultBool, java.lang.String colName)
cb
- defaultBool
- colName
- public SqlFieldBool(javax.swing.JRadioButton rb, java.lang.String colName)
rb
- colName
- public SqlFieldBool(javax.swing.JRadioButton rb, boolean defaultBool, java.lang.String colName)
rb
- defaultBool
- colName
- public boolean getBool()
public java.lang.String getBoolString()
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 setBool(boolean bool)
bool
- public void setBool(java.lang.String stringBool)
stringBool
- public void setEnableEdit(boolean enableEdit)
setEnableEdit
in class SqlField
enableEdit
-