|
||||||||||
| 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.ComboBoxField
| Field Summary | |
protected int |
CHARWIDTH
|
int |
TYPE
|
| Constructor Summary | |
ComboBoxField()
|
|
ComboBoxField(javax.swing.JComboBox box)
|
|
ComboBoxField(javax.swing.JComboBox box,
Relation items)
|
|
ComboBoxField(Relation items)
|
|
ComboBoxField(Relation items,
int key,
boolean showKey)
|
|
| Method Summary | |
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 JComboBox 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 pseudo 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 JComboBox to be wrapped * @param field JComboBox this object is to wrap |
void |
setItems(Relation items)
Populate the Combo Box list items with the contents of * the provided Relation
* @param items List items for this combo box to offer
* @deprecated Use setItems(Relation, int, boolean) instead |
void |
setItems(Relation items,
int key,
boolean showKey)
Populate the Combo Box list items with the contents of * the provided Relation
* @param items List items for this combo box to offer
* @param key Column to store in database
* @parem showKey True if the key column data is to be
* shown to the user, false to hide the key column |
void |
setWidth(int width)
Provide the width of the field * @param width Width in pseudo characters of the field |
java.lang.String |
toString()
|
| Methods inherited from class gov.virginia.dcjs.gui.field.DisplayField |
getCapacity, setCapacity |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public final int TYPE
protected final int CHARWIDTH
| Constructor Detail |
public ComboBoxField()
public ComboBoxField(javax.swing.JComboBox box)
public ComboBoxField(Relation items)
public ComboBoxField(Relation items,
int key,
boolean showKey)
public ComboBoxField(javax.swing.JComboBox box,
Relation items)
| Method Detail |
public void setItems(Relation items)
Relation
* @param items List items for this combo box to offer
* @deprecated Use setItems(Relation, int, boolean) instead
public void setItems(Relation items,
int key,
boolean showKey)
Relation
* @param items List items for this combo box to offer
* @param key Column to store in database
* @parem showKey True if the key column data is to be
* shown to the user, false to hide the key column
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 boolean isContentEditable()
isContentEditable in class DisplayFieldpublic void setContentEditable(boolean edit)
setContentEditable in class DisplayFieldpublic 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 | |||||||||