|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.virginia.dcjs.gui.field.DisplayField
gov.virginia.dcjs.gui.field.CheckBoxField
| Field Summary | |
int |
TYPE
|
| Constructor Summary | |
CheckBoxField()
|
|
CheckBoxField(javax.swing.JCheckBox field)
|
|
| Method Summary | |
int |
getCapacity()
Obtain the database capacity of the field * @return Database capacity, in characters, for the field |
java.lang.String |
getContent()
Obtain the wrapped field's content in a String format * @return String representation of the wrapped field's contents |
javax.swing.JComponent |
getField()
Obtain the JCheckBox as a component * @return Field being wrapped |
int |
getType()
Obtain the current type constant of the field * @return FieldType constant of the field |
int |
getWidth()
Obtain the current width of the field * @return Width in characters of the field |
boolean |
isContentEditable()
Determine whether or not the contents of this field can be modified * by the user. |
boolean |
isContentValid()
Obtain from the wrapper class whether or not the class it * wraps contains contents in keeping within the object's context * @return True when the containing class has acceptable content |
void |
loadText(java.lang.String text)
Add the specified text to the field in a manner consistent * with the field's data context. |
void |
setContent(java.lang.String content)
Translate the String provided into content suitable to the * wrapped class * @param content What the field is to display |
void |
setContentEditable(boolean edit)
Provide whether or not the contents of this field can be modified * by the user. |
void |
setField(javax.swing.JComponent field)
Provide the JCheckBox to be wrapped * @param field JCheckBox this object is to wrap |
void |
setText(java.lang.String name)
Allow the label-less checkbox initially constructed to get a label * @param name Label for this checkbox |
void |
setWidth(int width)
Provide the width of the field * @param width Width in characters of the field |
java.lang.String |
toString()
|
| Methods inherited from class gov.virginia.dcjs.gui.field.DisplayField |
setCapacity |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public final int TYPE
| Constructor Detail |
public CheckBoxField()
public CheckBoxField(javax.swing.JCheckBox field)
| Method Detail |
public boolean isContentValid()
public java.lang.String getContent()
getContent in class DisplayFieldpublic void setContent(java.lang.String content)
setContent in class DisplayFieldpublic javax.swing.JComponent getField()
getField in class DisplayFieldpublic void setField(javax.swing.JComponent field)
setField in class DisplayFieldpublic int getType()
FieldType constant of the field
getType in class DisplayFieldpublic int getWidth()
getWidth in class DisplayFieldpublic void setWidth(int width)
setWidth in class DisplayFieldpublic int getCapacity()
getCapacity in class DisplayFieldpublic boolean isContentEditable()
isContentEditable in class DisplayFieldpublic void setContentEditable(boolean edit)
setContentEditable in class DisplayFieldpublic void setText(java.lang.String name)
public void loadText(java.lang.String text)
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||